Always allow ADB on Android?

2019-08-20 12:10发布

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?

标签: android adb rsa
2条回答
Deceive 欺骗
2楼-- · 2019-08-20 12:25

No, for security you cannot automatically authorize any future device.

The best way is to check the box to save the RSA key when you authorize a device so that it will always be authorized on that particular computer.

查看更多
干净又极端
3楼-- · 2019-08-20 12:32

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.

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.

查看更多
登录 后发表回答