Index: build/android/pylib/android_commands.py |
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py |
index 6f9b99cc2405f9eab6760fe5d71d4fa5c5a9196c..6e4633c6a6bf393630f62e72f85f2ea5eef91e94 100644 |
--- a/build/android/pylib/android_commands.py |
+++ b/build/android/pylib/android_commands.py |
@@ -502,7 +502,9 @@ class AndroidCommands(object): |
while retry < 3: |
ret = cmd_helper.RunCmd(['pgrep', 'adb']) |
if ret == 0: |
- # pgrep fonud adb, start-server succeeded. |
+ # pgrep found adb, start-server succeeded. |
+ # Waiting for device to reconnect before returning success. |
+ self._adb.SendCommand('wait-for-device') |
return 0 |
retry += 1 |
time.sleep(retry) |