Objective
Welcome everyone I share and recommend useful code Snippets ~ ~
Statement
Welcome reprint, but please keep the original source of the article:
CSDN:http://www.csdn.net
rainy season o mo away:http://blog.csdn.net/luckkof
Body
[Description]
How to turn on and off the ADB authentication mechanism (Google adb secure)
[Keyword]
ADB secure, ro.adb.secure, ADB RSA fingerprint authentication
[Solution]
MTK version by default to turn off the ADB address authentication mechanism, if you need to open, you can modify ALPS/BUILD/CORE/MAIN.MKIfeq (true,$ (Strip $ (enable_target_debugging)))
# Target is more debuggable and ADBD are on by default
Additional_default_properties + = ro.debuggable=1
Additional_default_properties + = ro.adb.secure=1 ==> If you want to add this feature to ENG load, add this line
# Include The debugging/testing OTA keys in this build.
Include_test_ota_keys: = True
else #!enable_target_debugging
# Target is less debuggable and adbd are off by default
Additional_default_properties + = Ro.debuggable=0
Additional_default_properties + = ro.adb.secure=1 ==> If you want to add this feature to user load, add this line
endif #!enable_target_debugging Property _get ("Ro.adb.secure", Value, "0");
auth_enabled =!strcmp (Value, "1");
if (auth_enabled)
adb_auth_init ();