commit | 234a02a22e43d05e6ca754a66d371ecc0fdb9a0d | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Fri Mar 25 13:55:07 2016 -0700 |
committer | Yabin Cui <yabinc@google.com> | Tue Apr 19 11:26:44 2016 -0700 |
tree | b657f5ff22428a05628e919cbf926f6cbdb0dc2c | |
parent | 63e0819504ff1098289c818b700b716d11106f32 [diff] |
adb: use a custom thread to poll for usb devices on mac. On mac, if the adb server kicks a transport on some error, mac usb driver will not report a new usb device. So instead of relying on mac usb driver to report new usb devices, this CL uses a loop to search for usb devices not exist before. Note that this is also the behavior on windows and linux host. `adb reconnect` can be used to verity this CL. Bug: 25935458 Change-Id: I890e0eb1fae173f2e7a0c962ededa294d821e015