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

Unified Diff: build/android/update_verification.py

Issue 1083403002: [Android] Remove android_commands uses from build/android/. (reland) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed Created 5 years, 8 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
« build/android/pylib/device/adb_wrapper.py ('K') | « build/android/tombstones.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/update_verification.py
diff --git a/build/android/update_verification.py b/build/android/update_verification.py
index 9539d94c3fae78ff932fee6698135f453ba04fe9..29589f330b8954c150de1a5eebdc423e76ba43c2 100755
--- a/build/android/update_verification.py
+++ b/build/android/update_verification.py
@@ -12,7 +12,8 @@ import shutil
import sys
import time
-from pylib import android_commands
+from pylib.device import adb_wrapper
+from pylib.device import device_filter
from pylib.device import device_utils
def _SaveAppData(device, package_name, from_apk=None, data_dir=None):
@@ -108,7 +109,8 @@ def main():
parser.print_help(sys.stderr)
parser.error('Unknown arguments: %s.' % args)
- devices = android_commands.GetAttachedDevices()
+ devices = adb_wrapper.AdbWrapper.Devices(
+ filters=device_filter.DefaultFilters())
if len(devices) != 1:
parser.error('Exactly 1 device must be attached.')
device = device_utils.DeviceUtils(devices[0])
« build/android/pylib/device/adb_wrapper.py ('K') | « build/android/tombstones.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698