Skip to content

Instantly share code, notes, and snippets.

@phhusson
Created December 8, 2017 16:30
Show Gist options
  • Save phhusson/0bffea69eee493ea54de3a753b058c54 to your computer and use it in GitHub Desktop.
Save phhusson/0bffea69eee493ea54de3a753b058c54 to your computer and use it in GitHub Desktop.
diff --git a/adb/daemon/main.cpp b/adb/daemon/main.cpp
index c0504c5..6e9ea71 100644
--- a/adb/daemon/main.cpp
+++ b/adb/daemon/main.cpp
@@ -162,10 +162,10 @@ int adbd_main(int server_port) {
// Respect ro.adb.secure in userdebug/eng builds (ALLOW_ADBD_NO_AUTH), or when the
// device is unlocked.
- if ((ALLOW_ADBD_NO_AUTH || is_device_unlocked()) &&
- !android::base::GetBoolProperty("ro.adb.secure", false)) {
+ //if ((ALLOW_ADBD_NO_AUTH || is_device_unlocked()) &&
+ // !android::base::GetBoolProperty("ro.adb.secure", false)) {
auth_required = false;
- }
+ //}
adbd_auth_init();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment