Commit a7abcc7e authored by tonyg@chromium.org's avatar tonyg@chromium.org

Disable media transfer protocol on android devices.

The only protocol we need enabled over USB is adb. Anything else is just a
potential source of problems.

BUG=

Review URL: https://codereview.chromium.org/294253004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273089 0039d316-1c4b-4281-b951-d872f2087c98
parent a8060b70
...@@ -35,6 +35,9 @@ def ConfigureContentSettingsDict(device, desired_settings): ...@@ -35,6 +35,9 @@ def ConfigureContentSettingsDict(device, desired_settings):
logging.error('Skipping content settings configuration due to outdated sdk') logging.error('Skipping content settings configuration due to outdated sdk')
return return
device.old_interface.system_properties['persist.sys.usb.config'] = 'adb'
device.old_interface.WaitForDevicePm()
for table, key_value in sorted(desired_settings.iteritems()): for table, key_value in sorted(desired_settings.iteritems()):
settings = content_settings.ContentSettings(table, device) settings = content_settings.ContentSettings(table, device)
for key, value in key_value.iteritems(): for key, value in key_value.iteritems():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment