Index: build/android/host_heartbeat.py |
diff --git a/build/android/host_heartbeat.py b/build/android/host_heartbeat.py |
index 429fca9ac1c96309e09e7dd04bbcc2401c4f74d0..796767c2ae704b7e0abd024bb10161316746b63f 100755 |
--- a/build/android/host_heartbeat.py |
+++ b/build/android/host_heartbeat.py |
@@ -12,7 +12,7 @@ This heart beat lets the devices know that they are connected to a host. |
import sys |
import time |
-from pylib import android_commands |
+from pylib.device import adb_wrapper |
from pylib.device import device_utils |
PULSE_PERIOD = 20 |
@@ -20,9 +20,9 @@ PULSE_PERIOD = 20 |
def main(): |
while True: |
try: |
- devices = android_commands.GetAttachedDevices() |
- for device_serial in devices: |
- device_utils.DeviceUtils(device_serial).RunShellCommand( |
+ devices = adb_wrapper.AdbWrapper.GetDevices() |
+ for d in devices: |
+ device_utils.DeviceUtils(d).RunShellCommand( |
'touch /sdcard/host_heartbeat') |
perezju
2015/04/14 12:39:10
pass command as list, and check_return=True?
jbudorick
2015/04/14 15:29:58
same, done.
|
except: |
# Keep the heatbeat running bypassing all errors. |