Skip to content

Commit 46b69da

Browse files
Scott MertzSteve Kondik
authored andcommitted
Enable ADB by default when ro.adb.secure is not 1
* Property ro.build.type is not part of the default.prop we can't use this to decide how to apply adb by default within this function Change-Id: Ib3eb24c655353966d64c7148d7530244b628ce94
1 parent a22ccf6 commit 46b69da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/post_process_props.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ 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.build.type is eng, then enable adb on USB by default
44-
if prop.get("ro.build.type") == "eng":
43+
# If ro.adb.secure is not 1, then enable adb on USB by default
44+
# (this is for eng builds)
45+
if prop.get("ro.adb.secure") != "1":
4546
val = prop.get("persist.sys.usb.config")
4647
if val == "":
4748
val = "adb"

0 commit comments

Comments
 (0)