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
Родитель 66e5eee002
Коммит 4e47253aa0
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -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.