Loading adb/daemon/main.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -208,6 +208,10 @@ int adbd_main(int server_port) { #if defined(ALLOW_ADBD_NO_AUTH) // If ro.adb.secure is unset, default to no authentication required. auth_required = android::base::GetBoolProperty("ro.adb.secure", false); #if defined(__ANDROID_RECOVERY__) auth_required = auth_required && android::base::GetBoolProperty("ro.adb.secure.recovery", true); #endif #elif defined(__ANDROID__) if (is_device_unlocked()) { // allows no authentication when the device is unlocked. auth_required = android::base::GetBoolProperty("ro.adb.secure", false); Loading Loading
adb/daemon/main.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -208,6 +208,10 @@ int adbd_main(int server_port) { #if defined(ALLOW_ADBD_NO_AUTH) // If ro.adb.secure is unset, default to no authentication required. auth_required = android::base::GetBoolProperty("ro.adb.secure", false); #if defined(__ANDROID_RECOVERY__) auth_required = auth_required && android::base::GetBoolProperty("ro.adb.secure.recovery", true); #endif #elif defined(__ANDROID__) if (is_device_unlocked()) { // allows no authentication when the device is unlocked. auth_required = android::base::GetBoolProperty("ro.adb.secure", false); Loading