summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@gmail.com>2015-02-19 14:29:21 +0200
committeralk3pInjection <webmaster@raspii.tech>2022-05-02 00:03:18 +0800
commite5d94a00e2e60bf9cf83dd98031162c894a8acbf (patch)
tree939b973266bd3b379ca3e342c42e69427414b674
parente02d25eacb381eea7cf98ea6ca043290798f7f26 (diff)
Don't enable ADB by default on userdebug builds
Change-Id: I33ae5c6f2787017a62e679aa0c28d4b909d45935
-rwxr-xr-xtools/post_process_props.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/post_process_props.py b/tools/post_process_props.py
index efbf614fd5..76a8fcd334 100755
--- a/tools/post_process_props.py
+++ b/tools/post_process_props.py
@@ -28,9 +28,9 @@ PROP_VALUE_MAX = 91
# Put the modifications that you need to make into the */build.prop into this
# function.
def mangle_build_prop(prop_list):
- # If ro.debuggable is 1, then enable adb on USB by default
- # (this is for userdebug builds)
- if prop_list.get_value("ro.debuggable") == "1":
+ # If ro.adb.secure is 0, then enable adb on USB by default
+ # (this is for eng builds)
+ if prop_list.get_value("ro.adb.secure") == "0":
val = prop_list.get_value("persist.sys.usb.config")
if "adb" not in val:
if val == "":