commit | 6da1cd49b5eaeabb3febe584845de6bb3ae45873 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Fri May 12 11:21:30 2017 -0700 |
committer | Josh Gao <jmgao@google.com> | Fri May 12 17:08:50 2017 -0700 |
tree | b689d4d06c2a80798155be31dd3c65e0dc6e94bd | |
parent | 723258a4c7d024473de8558c15a6db5437468681 [diff] |
adb: libusb: switch to hotplug for device detection. Switch from polling in a loop to using libusb's hotplug API to detect when devices arrive and leave. Use this to remove devices that were inaccessible when they're unplugged. Bug: http://b/38170349 Test: plugged in device Change-Id: Id157412eb46834debecb0cd45b47b1ced50c2274