[Telemetry] Enable adb root on devices.

The perf bots aren't hitting this explicitly anywhere and provision devices
seems like the right place for it.

This method outputs a warning, but doesn't fail hard, if root cannot be enabled,
for instance on a user build.

BUG=366697
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@266325 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
tonyg@chromium.org 2014-04-26 02:29:41 +00:00
Родитель dbd25cd946
Коммит 576c735a98
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -123,6 +123,7 @@ def ProvisionDevices(options):
devices = android_commands.GetAttachedDevices()
for device_serial in devices:
device = device_utils.DeviceUtils(device_serial)
device.old_interface.EnableAdbRoot()
install_output = GetCmdOutput(
['%s/build/android/adb_install_apk.py' % constants.DIR_SOURCE_ROOT,
'--apk',