Skip to content

Commit 1cd77d8

Browse files
mikeNGSteve Kondik
authored andcommitted
Don't enable ADB by default on userdebug builds
Change-Id: I33ae5c6f2787017a62e679aa0c28d4b909d45935
1 parent 7022dd5 commit 1cd77d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/post_process_props.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ def mangle_build_prop(prop, overrides):
4040
# Put the modifications that you need to make into the /default.prop into this
4141
# function. The prop object has get(name) and put(name,value) methods.
4242
def mangle_default_prop(prop):
43-
# If ro.debuggable is 1, then enable adb on USB by default
44-
# (this is for userdebug builds)
45-
if prop.get("ro.debuggable") == "1":
43+
# If ro.build.type is eng, then enable adb on USB by default
44+
if prop.get("ro.build.type") == "eng":
4645
val = prop.get("persist.sys.usb.config")
4746
if val == "":
4847
val = "adb"

0 commit comments

Comments
 (0)