diff options
Diffstat (limited to 'tools/android/appstats.py')
-rwxr-xr-x | tools/android/appstats.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/android/appstats.py b/tools/android/appstats.py index a785417..ba53eac 100755 --- a/tools/android/appstats.py +++ b/tools/android/appstats.py @@ -19,7 +19,6 @@ sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'build', 'android')) -from pylib import android_commands from pylib.device import device_errors from pylib.device import device_utils @@ -106,7 +105,8 @@ class DeviceHelper(object): """Returns a device serial to connect to. If |preset| is specified it will return |preset| if it is connected and |None| otherwise. If |preset| is not specified it will return the first connected device.""" - devices = android_commands.GetAttachedDevices() + devices = [d.adb.GetDeviceSerial() + for d in device_utils.DeviceUtils.HealthyDevices()] if not devices: return None |