diff options
-rwxr-xr-x | tools/post_process_props.py | 6 |
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 == "": |