From 4e47253aa0e7565d617ec3811b2f90a89d8c67b4 Mon Sep 17 00:00:00 2001 From: Bob Clary Date: Wed, 28 Oct 2015 23:21:47 -0700 Subject: [PATCH] Bug 1218997 - [mozdevice] adb_android.py ADBDevice.power_on() requires root, r=gbrown. --- testing/mozbase/mozdevice/mozdevice/adb_android.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testing/mozbase/mozdevice/mozdevice/adb_android.py b/testing/mozbase/mozdevice/mozdevice/adb_android.py index 95fc90807d87..0fedf0f030d1 100644 --- a/testing/mozbase/mozdevice/mozdevice/adb_android.py +++ b/testing/mozbase/mozdevice/mozdevice/adb_android.py @@ -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.