From 6eda1840cb4e8d424c1c9a616333143a753b859b Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Tue, 6 Mar 2018 13:37:45 -0800 Subject: [PATCH] adbd: don't require authentication for userdebug/eng builds. By default, the build system only sets ro.adb.secure (to 1) when building user builds. Bug: http://b/73993211 Bug: http://b/74059119 Test: treehugger Change-Id: I2a683257c1027394ded90c8d2634def6003e0525 --- adb/daemon/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adb/daemon/main.cpp b/adb/daemon/main.cpp index 9b25a0776..4314dae0b 100644 --- a/adb/daemon/main.cpp +++ b/adb/daemon/main.cpp @@ -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();