diff options
Diffstat (limited to 'adb/adb_main.cpp')
-rw-r--r-- | adb/adb_main.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/adb/adb_main.cpp b/adb/adb_main.cpp index 3f88d13..45a2158 100644 --- a/adb/adb_main.cpp +++ b/adb/adb_main.cpp @@ -239,10 +239,11 @@ int adb_main(int is_daemon, int server_port) // descriptor will always be open. adbd_cloexec_auth_socket(); - property_get("ro.adb.secure", value, "0"); - auth_enabled = !strcmp(value, "1"); - if (auth_enabled) - adbd_auth_init(); + if (ALLOW_ADBD_NO_AUTH && property_get_bool("ro.adb.secure", 0) == 0) { + auth_required = false; + } + + adbd_auth_init(); // Our external storage path may be different than apps, since // we aren't able to bind mount after dropping root. |