commit | f969590fd5baf16f20b2953c31ee3d7af8d94e6e | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Wed May 03 22:37:10 2017 -0700 |
committer | Josh Gao <jmgao@google.com> | Thu May 04 16:03:12 2017 -0700 |
tree | 7224b0001fc375b87ad7b3a0974057880988524d | |
parent | 4f52d3f7c38a0bdb98c198a4cb9929abed210445 [diff] |
adb: wait for devices to come up instead of sleeping for 3s. Replace a hard-coded 3 second sleep with logic to wait until we've scanned USB devices once and they've all come online. Before: adb shell true 0.00s user 0.00s system 0% cpu 3.047 total After: adb shell true 0.00s user 0.00s system 9% cpu 0.041 total Bug: http://b/37869663 Test: `time adb shell true` after adb kill-server Change-Id: I251d42afb885908ed9d03167287594ea16650d3f