summaryrefslogtreecommitdiff
path: root/tools/post_process_props.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/post_process_props.py')
-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 38d17a81db..c0f8ea49a1 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 == "":