From ab313d78b63cfbdc8218ef4c4d64bb1ba021230a Mon Sep 17 00:00:00 2001 From: Tom Marshall Date: Fri, 30 Jan 2015 15:43:06 -0800 Subject: adb: Changes for factory mode * Always insecure in factory mode Change-Id: Ic5b6e83ef816240521424814d66294fd786966cd --- adb/adb_main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/adb/adb_main.cpp b/adb/adb_main.cpp index 45a2158..1ff305b 100644 --- a/adb/adb_main.cpp +++ b/adb/adb_main.cpp @@ -239,7 +239,9 @@ int adb_main(int is_daemon, int server_port) // descriptor will always be open. adbd_cloexec_auth_socket(); - if (ALLOW_ADBD_NO_AUTH && property_get_bool("ro.adb.secure", 0) == 0) { + // Override auth in factory test mode + if ((ALLOW_ADBD_NO_AUTH && property_get_bool("ro.adb.secure", 0) == 0) || + (property_get_bool("ro.boot.ftm", 0) == 1)) { auth_required = false; } -- cgit v1.1