Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1156)

Unified Diff: build/android/provision_devices.py

Issue 292313015: [Android] Switch to DeviceUtils versions of Reboot and Install. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/enable_asserts.py ('k') | build/android/pylib/device/device_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/provision_devices.py
diff --git a/build/android/provision_devices.py b/build/android/provision_devices.py
index d282737f0a177a4a095eddc9bf7973fde1a40b19..c4f8f340d5f23817464f13dc56caf042867544f4 100755
--- a/build/android/provision_devices.py
+++ b/build/android/provision_devices.py
@@ -131,7 +131,7 @@ def ProvisionDevices(options):
device.old_interface.EnableAdbRoot()
WipeDeviceData(device)
try:
- device_utils.DeviceUtils.parallel(devices).old_interface.Reboot(True)
+ device_utils.DeviceUtils.parallel(devices).Reboot(True)
except errors.DeviceUnresponsiveError:
pass
for device_serial in devices:
@@ -148,7 +148,7 @@ def ProvisionDevices(options):
device, device_settings.NETWORK_DISABLED_SETTINGS)
device.old_interface.RunShellCommandWithSU('date -u %f' % time.time())
try:
- device_utils.DeviceUtils.parallel(devices).old_interface.Reboot(True)
+ device_utils.DeviceUtils.parallel(devices).Reboot(True)
except errors.DeviceUnresponsiveError:
pass
for device_serial in devices:
@@ -186,8 +186,7 @@ def main(argv):
device = device_utils.DeviceUtils(device_serial)
WipeDeviceData(device)
try:
- (device_utils.DeviceUtils.parallel(devices)
- .old_interface.Reboot(True).pFinish(None))
+ device_utils.DeviceUtils.parallel(devices).Reboot(True)
except errors.DeviceUnresponsiveError:
pass
else:
« no previous file with comments | « build/android/enable_asserts.py ('k') | build/android/pylib/device/device_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698