diff options
| author | Josh Gao <jmgao@google.com> | 2017-05-12 14:46:50 -0700 |
|---|---|---|
| committer | Josh Gao <jmgao@google.com> | 2017-05-12 17:08:50 -0700 |
| commit | 3f60a968e35b051943249fb9ac70e349323a0590 (patch) | |
| tree | 7935e195ad0585717952fcc07f19eb85182c0f25 /libunwindstack/tests/MemoryLocalTest.cpp | |
| parent | 6da1cd49b5eaeabb3febe584845de6bb3ae45873 (diff) | |
adb: libusb: wait for devices to become accessible.
Android's host linux libusb uses netlink instead of udev for device
hotplug notification, which means we can get hotplug notifications
before udev has updated ownership/perms on the device.
When detecting a new device, poll the device file for a while until we
can access it, before trying to open it.
Bug: http://b/38170349
Test: manually incrased timeout and chmodded a device betwen 0 and 664
Change-Id: I3c714f630940df02b407442592301e2bbb3d9653
Diffstat (limited to 'libunwindstack/tests/MemoryLocalTest.cpp')
0 files changed, 0 insertions, 0 deletions
