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

Unified Diff: tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py

Issue 138093002: Android / telemetry: set debug app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py
diff --git a/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py b/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py
index 4ed8ec1e545120cc752beecf87e147e61395b116..1ae46f7c20bb761f84eb8876be91ef5a8f226160 100644
--- a/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py
+++ b/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py
@@ -210,6 +210,12 @@ class AndroidBrowserBackend(chrome_browser_backend.ChromeBrowserBackend):
# TODO(szym): only override DNS if WPR has privileges to proxy on port 25.
self._override_dns = self.browser_options.netsim
+ # Set the debug app if needed.
+ if self._adb.IsUserBuild():
+ logging.debug('User build device, setting debug app')
+ self._adb.RunShellCommand('am set-debug-app --persistent %s' %
+ self._backend_settings.package)
+
def _SetUpCommandLine(self):
def QuoteIfNeeded(arg):
# Escape 'key=valueA valueB' to 'key="valueA valueB"'
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698