Bug 1218997 - [mozdevice] adb_android.py ADBDevice.power_on() requires root, r=gbrown.

This commit is contained in:
Bob Clary 2015-10-28 23:21:47 -07:00
parent 66e5eee002
commit 4e47253aa0

View File

@ -137,7 +137,9 @@ class ADBAndroid(ADBDevice):
* ADBError
"""
try:
self.shell_output('svc power stayon true', timeout=timeout)
self.shell_output('svc power stayon true',
timeout=timeout,
root=True)
except ADBError, e:
# Executing this via adb shell errors, but not interactively.
# Any other exitcode is a real error.