commit | 48d4c0c42afc1cb77c4573ac22adb61d2f92ccd3 | [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 | 4a5e23df81d628bac2240098b248c332cdb28346 | |
parent | 603df0e875a43cb045e9235b95f8a883f1722f1d [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