| Index: build/android/adb_install_apk.py
|
| diff --git a/build/android/adb_install_apk.py b/build/android/adb_install_apk.py
|
| index b6da19ef2691bb8185080a42e5c59905a418cab1..7bc634c7deb0188d412e0e7c188bfdaa0afeffd0 100755
|
| --- a/build/android/adb_install_apk.py
|
| +++ b/build/android/adb_install_apk.py
|
| @@ -11,8 +11,6 @@ import os
|
| import sys
|
|
|
| from pylib import constants
|
| -from pylib.device import adb_wrapper
|
| -from pylib.device import device_filter
|
| from pylib.device import device_utils
|
|
|
|
|
| @@ -72,13 +70,13 @@ def main(argv):
|
| constants.SetBuildType(options.build_type)
|
| ValidateInstallAPKOption(parser, options, args)
|
|
|
| - devices = adb_wrapper.AdbWrapper.Devices(
|
| - filters=device_filter.DefaultFilters())
|
| + devices = device_utils.DeviceUtils.HealthyDevices()
|
|
|
| if options.device:
|
| - if options.device not in [d.GetDeviceSerial() for d in devices]:
|
| + device_serials = [d.adb.GetDeviceSerial() for d in devices]
|
| + if options.device not in device_serials:
|
| raise Exception('Error: %s not in attached devices %s' % (options.device,
|
| - ','.join(devices)))
|
| + ','.join(device_serials)))
|
| devices = [options.device]
|
|
|
| if not devices:
|
|
|