Merge "adbd: don't require authentication for userdebug/eng builds."

This commit is contained in:
Treehugger Robot 2018-03-07 21:23:57 +00:00 committed by Gerrit Code Review
commit bf62136be4
1 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,8 @@ int adbd_main(int server_port) {
adbd_cloexec_auth_socket();
#if defined(ALLOW_ADBD_NO_AUTH)
auth_required = android::base::GetBoolProperty("ro.adb.secure", true);
// If ro.adb.secure is unset, default to no authentication required.
auth_required = android::base::GetBoolProperty("ro.adb.secure", false);
#endif
adbd_auth_init();