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

Unified Diff: build/android/adb_command_line.py

Issue 2155703002: [Android] Add --adb-path arg to adb_command_line.py. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: build/android/adb_command_line.py
diff --git a/build/android/adb_command_line.py b/build/android/adb_command_line.py
index e758b092a6438d6e9b5de36e5be744df21718b63..948bc8944492b088922fac874322c87b95d253a2 100755
--- a/build/android/adb_command_line.py
+++ b/build/android/adb_command_line.py
@@ -6,6 +6,7 @@
"""Utility for reading / writing command-line flag files on device(s)."""
import argparse
+import os
import sys
import devil_chromium
@@ -30,9 +31,11 @@ Otherwise: Writes command-line file.
help='Remote path to flags file.')
parser.add_argument('-e', '--executable', dest='executable', default='chrome',
help='Name of the executable.')
+ parser.add_argument('--adb-path', type=os.path.abspath,
+ help='Path to the adb binary.')
args, remote_args = parser.parse_known_args()
- devil_chromium.Initialize()
+ devil_chromium.Initialize(adb_path=args.adb_path)
as_root = not args.device_path.startswith('/data/local/tmp/')
« 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