704494b070
Add two states: connecting and authorizing, to disambiguate the offline and unauthorized states, respectively. Previously, devices would transition as follows: offline -> unauthorized -> offline -> online offline -> unauthorized (when actually unauthorized) With this patch: connecting -> authorizing -> online connecting -> authorizing -> unauthorized (when actually unauthorized) This allows test automation and the like to distinguish between offline devices, unauthorized devices, and working devices without having to do retry loops with arbitrary sleeps on their end. Bug: http://b/79257434 Test: adb_test Test: adbd_test Test: manually plugging in a device with `while true; do adb shell echo foo; done` Change-Id: I036d9b593b51a27a59ac3fc57da966fd52658567 |
||
---|---|---|
.. | ||
adb_client.cpp | ||
adb_client.h | ||
auth.cpp | ||
bugreport.cpp | ||
bugreport.h | ||
commandline.cpp | ||
commandline.h | ||
console.cpp | ||
file_sync_client.cpp | ||
line_printer.cpp | ||
line_printer.h | ||
main.cpp | ||
transport_mdns.cpp | ||
usb_dispatch.cpp | ||
usb_libusb.cpp | ||
usb_linux.cpp | ||
usb_osx.cpp | ||
usb_windows.cpp |