From 840475656addb2d64c25d4918b2eace5ddab8616 Mon Sep 17 00:00:00 2001 From: "frankf@chromium.org" Date: Wed, 20 Nov 2013 20:47:46 +0000 Subject: [PATCH] [Android] Send minidump service intent as root. Also improve exception message. BUG=None NOTRY=True Review URL: https://codereview.chromium.org/76973003 git-svn-id: http://src.chromium.org/svn/trunk/src/build@236280 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- android/pylib/android_commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/android/pylib/android_commands.py b/android/pylib/android_commands.py index 5ac4a3023..6f9b99cc2 100644 --- a/android/pylib/android_commands.py +++ b/android/pylib/android_commands.py @@ -750,8 +750,9 @@ class AndroidCommands(object): (constants.PACKAGE_INFO['chrome'].package, package, constants.PACKAGE_INFO['chrome'].package)) - am_output = self.RunShellCommand(cmd) - assert am_output and 'Starting' in am_output[-1], 'Service failed to start' + am_output = self.RunShellCommandWithSU(cmd) + assert am_output and 'Starting' in am_output[-1], ( + 'Service failed to start: %s' % am_output) time.sleep(15) def BroadcastIntent(self, package, intent, *args):