Index: build/android/pylib/android_commands.py |
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py |
index 8d7866dc9362bcc86b7d607f3e3923c4ee80900e..d6f9d326ba9c0d92b4a456e4c89a167ee8cac151 100644 |
--- a/build/android/pylib/android_commands.py |
+++ b/build/android/pylib/android_commands.py |
@@ -177,7 +177,8 @@ def GetAttachedDevices(hardware=True, emulator=True, offline=False): |
re_device = re.compile('^(emulator-[0-9]+)\tdevice', re.MULTILINE) |
emulator_devices = re_device.findall(adb_devices_output) |
- re_device = re.compile('^([a-zA-Z0-9_:.-]+)\toffline$', re.MULTILINE) |
+ re_device = re.compile('^([a-zA-Z0-9_:.-]+)\t(?:offline|unauthorized)$', |
+ re.MULTILINE) |
offline_devices = re_device.findall(adb_devices_output) |
devices = [] |