commit | 77a5dc9fd1c5dfe9dbb6aebf5fea747bc5f75af7 | [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 | 7f6787b14419607d6708425be5ae25cd65f5e8cd [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