Access control for adb connection of phone

元气小坏坏 提交于 2019-12-24 13:26:25

问题


I need to prevent others from accessing my phone via adb. Any way we can have password protection for adb connection?


回答1:


Since Android 4.2.2, connections to ADB are authenticated with an RSA keypair. This prevents unauthorized use of ADB where the attacker has physical access to a device.

Security Enhancements in Android 4.3




回答2:


As far as I know, there's no way to set an extra password specific to adb access.

If you have USB debugging (adb) enabled, on Android 4.3 or later you need to manually accept the host computer on your device before debugging is enabled.

So unless somebody has access and PIN/password to your phone AND the computer you already authorized for USB debugging that phone, your phone should be safe. However, there are security holes such as this which means that if you're using an old device, maybe it's time for a custom ROM based on a recent version of Android.

With earlier versions of Android, I used an app called Delayed Lock with the "helper app" add-on (ROOT required), that automatically enabled/disabled USB debugging when you unlock/lock your phone.




回答3:


As long as the "USB debugging" (check it here) is disabled and phone is locked so no one can have the access to this option, no one can use your phone for adb connection.

Refer wipe data remotely for an ill fortunate situation.



来源:https://stackoverflow.com/questions/35981651/access-control-for-adb-connection-of-phone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!