diff options
author | Tom Marshall <tdm@cyngn.com> | 2015-01-30 15:43:06 -0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-10-17 17:47:21 -0700 |
commit | ab313d78b63cfbdc8218ef4c4d64bb1ba021230a (patch) | |
tree | 745f18c169ea65588b58ab14d94e7c0b276c4e03 | |
parent | b270c1c52a7c305bbdbf3b6cfa69a3876ef24bac (diff) | |
download | system_core-ab313d78b63cfbdc8218ef4c4d64bb1ba021230a.zip system_core-ab313d78b63cfbdc8218ef4c4d64bb1ba021230a.tar.gz system_core-ab313d78b63cfbdc8218ef4c4d64bb1ba021230a.tar.bz2 |
adb: Changes for factory mode
* Always insecure in factory mode
Change-Id: Ic5b6e83ef816240521424814d66294fd786966cd
-rw-r--r-- | adb/adb_main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |