am 8ad4bb16: Turn off adb on user builds.

* commit '8ad4bb16a0d8b8ff9b4d17e860db336111bef34d':
  Turn off adb on user builds.
This commit is contained in:
Joe Onorato
2012-05-02 14:50:06 -07:00
committed by Android Git Automerger

View File

@@ -21,7 +21,6 @@ import sys
def mangle_build_prop(prop):
pass
# Put the modifications that you need to make into the /system/build.prop into this
# function. The prop object has get(name) and put(name,value) methods.
def mangle_default_prop(prop):
@@ -34,7 +33,11 @@ def mangle_default_prop(prop):
else:
val = val + ",adb"
prop.put("persist.sys.usb.config", val)
# UsbDeviceManager expects a value here. If it doesn't get it, it will
# default to "adb". That might not the right policy there, but it's better
# to be explicit.
if not prop.get("persist.sys.usb.config"):
prop.put("persist.sys.usb.config", "none");
class PropFile:
def __init__(self, lines):