始终在Android上允许ADB吗? [英] Always allow ADB on Android?
问题描述
是否可以将Android设备设置为自动从任何计算机授权adb?我知道这对安全性来说不是一个好主意,但我需要(如果可能)。
Is it possible for me to set an Android Device to automatically authorize adb from any computer? I know this this is a bad idea in terms of security, but I need if it's possible. Is there a list deep in the Android internals with the RSA fingerprints?
推荐答案
在 userdebug
或 eng
版本,您可以使用 ro.adb.secure禁用
。或者,如果您的设备已植根,则可以将 adb
授权= 0 adbd
替换为自定义的修改后的不安全版本。
In userdebug
or eng
builds you can disable adb
authorization with ro.adb.secure=0
. Or if your device is rooted you could just replace the adbd
with a custom modified insecure version.
如果通过任何计算机,您的意思是指您附近的几台计算机-使所有这些系统使用相同的RSA密钥可能会更容易。然后将该密钥保存在设备上会使所有这些系统立即获得授权。
Alternatively, if by any computer you just mean a few computers in your immediate vicinity - it might be easier to make all these systems to use the same RSA key. Then saving that key on the device would make all these systems authorized at once.
这篇关于始终在Android上允许ADB吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!