platform_system_core/adb/client
Josh Gao 704494b070 adb: add authorizing, connecting states to transport.
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
2018-05-04 18:05:18 -07:00
..
adb_client.cpp adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
adb_client.h adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
auth.cpp adb: add authorizing, connecting states to transport. 2018-05-04 18:05:18 -07:00
bugreport.cpp adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
bugreport.h adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
commandline.cpp Support /odm and /product in "adb remount" and "adb sync". 2018-04-04 13:14:59 -07:00
commandline.h adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
console.cpp adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
file_sync_client.cpp adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
line_printer.cpp adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
line_printer.h adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
main.cpp Add a NOLINT for the memory leak we added 2018-03-01 18:59:50 +00:00
transport_mdns.cpp adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
usb_dispatch.cpp adb: fix darwin build break. 2017-05-10 13:58:51 -07:00
usb_libusb.cpp adb: stop using quick_exit. 2018-02-27 14:50:07 -08:00
usb_linux.cpp adb: cleanup some portions of client usb interfaces 2017-10-13 07:31:49 -07:00
usb_osx.cpp adb: properly calculate packet size on Mac. 2018-04-10 14:46:34 -07:00
usb_windows.cpp adb: get libusb compiling on Windows. 2017-12-08 13:11:15 -08:00