commit | 95238413c3ae40bd7578e065331c95f89a59471f | [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 | a032bdd06611652222788cbb338dbd68a03245f9 | |
parent | 1959e87cfeb030565b0010ff9843c1db71a80ff5 [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