android_system_core/adb/client
Daniel Colascione 3aef5c82f7 Properly finish daemon init when initial USB scan complete
Call adb_notify_device_scan_complete when we finish enumerating USB
devices. The original intent of the code appears to have been to have
adb_wait_for_device_initialization return as soon as we've finished
looking around at the system USB environment on daemon startup, but at
some point, we forgot to actually notify the init thread that we
finished scanning all the USB devices, forcing the wait on init_cv to
time out after three seconds on every daemon initialization.

After this change, the daemon starts in a few milliseconds on my Linux
machine

Test: killall adb && sleep 1 && time adb server && adb shell ls
Change-Id: I0bc1da7a597d2077dd2b591560d03798b05905b7
2019-11-04 11:43:20 -08:00
..
adb_client.cpp
adb_client.h
adb_install.cpp FastDeploy refactor: 2+GB APK support, optimizations, tests. 2019-10-02 13:25:03 -07:00
adb_install.h
auth.cpp adb: log more detail on failure to read keys. 2019-10-07 08:25:42 -07:00
bugreport.cpp
bugreport.h
commandline.cpp FastDeploy refactor: 2+GB APK support, optimizations, tests. 2019-10-02 13:25:03 -07:00
commandline.h FastDeploy refactor: 2+GB APK support, optimizations, tests. 2019-10-02 13:25:03 -07:00
console.cpp
fastdeploy.cpp FastDeploy refactor: 2+GB APK support, optimizations, tests. 2019-10-02 13:25:03 -07:00
fastdeploy.h FastDeploy refactor: 2+GB APK support, optimizations, tests. 2019-10-02 13:25:03 -07:00
fastdeploycallbacks.cpp FastDeploy refactor: 2+GB APK support, optimizations, tests. 2019-10-02 13:25:03 -07:00
fastdeploycallbacks.h FastDeploy refactor: 2+GB APK support, optimizations, tests. 2019-10-02 13:25:03 -07:00
file_sync_client.cpp
file_sync_client.h
line_printer.cpp
line_printer.h
main.cpp
transport_mdns.cpp
usb_dispatch.cpp
usb_libusb.cpp
usb_linux.cpp Properly finish daemon init when initial USB scan complete 2019-11-04 11:43:20 -08:00
usb_osx.cpp Properly finish daemon init when initial USB scan complete 2019-11-04 11:43:20 -08:00
usb_windows.cpp Properly finish daemon init when initial USB scan complete 2019-11-04 11:43:20 -08:00