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

Unified Diff: build/android/pylib/android_commands.py

Issue 59813007: [Android] Enable starting the crash upload service using an intent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better logging for monkey Created 7 years, 1 month 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 | « no previous file | build/android/pylib/monkey/test_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/android_commands.py
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py
index a09461d29e89cf8510efbba5b2e2fc4380fc9de3..24e6a554da0057baeeeedde763753552c5f86a71 100644
--- a/build/android/pylib/android_commands.py
+++ b/build/android/pylib/android_commands.py
@@ -738,6 +738,19 @@ class AndroidCommands(object):
start_line = m.group(0)
return GetLogTimestamp(start_line, self.GetDeviceYear())
+ def StartCrashUploadService(self, package):
+ # TODO(frankf): We really need a python wrapper around Intent
+ # to be shared with StartActivity/BroadcastIntent.
+ cmd = (
+ 'am startservice -a %s.crash.ACTION_FIND_ALL -n '
+ '%s/%s.crash.MinidumpUploadService' %
+ (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'
+ time.sleep(15)
+
def BroadcastIntent(self, package, intent, *args):
"""Send a broadcast intent.
« no previous file with comments | « no previous file | build/android/pylib/monkey/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698