| Index: build/android/host_heartbeat.py
|
| diff --git a/build/android/host_heartbeat.py b/build/android/host_heartbeat.py
|
| index 11421ce74f6d4f9ebafb5fd0052fb727f9e89763..429fca9ac1c96309e09e7dd04bbcc2401c4f74d0 100755
|
| --- a/build/android/host_heartbeat.py
|
| +++ b/build/android/host_heartbeat.py
|
| @@ -12,8 +12,7 @@
|
| import sys
|
| import time
|
|
|
| -from pylib.device import adb_wrapper
|
| -from pylib.device import device_filter
|
| +from pylib import android_commands
|
| from pylib.device import device_utils
|
|
|
| PULSE_PERIOD = 20
|
| @@ -21,11 +20,10 @@
|
| def main():
|
| while True:
|
| try:
|
| - devices = adb_wrapper.AdbWrapper.Devices(
|
| - filters=device_filter.DefaultFilters())
|
| - for d in devices:
|
| - device_utils.DeviceUtils(d).RunShellCommand(
|
| - ['touch', '/sdcard/host_heartbeat'], check_return=True)
|
| + devices = android_commands.GetAttachedDevices()
|
| + for device_serial in devices:
|
| + device_utils.DeviceUtils(device_serial).RunShellCommand(
|
| + 'touch /sdcard/host_heartbeat')
|
| except:
|
| # Keep the heatbeat running bypassing all errors.
|
| pass
|
|
|