Merge "Do not add 'adb' to persist.sys.usb.config if already there"
This commit is contained in:
@@ -37,6 +37,7 @@ def mangle_default_prop(prop):
|
|||||||
# (this is for userdebug builds)
|
# (this is for userdebug builds)
|
||||||
if prop.get("ro.debuggable") == "1":
|
if prop.get("ro.debuggable") == "1":
|
||||||
val = prop.get("persist.sys.usb.config")
|
val = prop.get("persist.sys.usb.config")
|
||||||
|
if "adb" not in val:
|
||||||
if val == "":
|
if val == "":
|
||||||
val = "adb"
|
val = "adb"
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user