adb: after adb root, wait for the device in any state.

Otherwise, `adb root` while the device is in recovery will hang.

Bug: http://b/28168212
Change-Id: Ibc8038b1745139fb505e466c74c605b9df474c8c
(cherry picked from commit 48a348183f)
This commit is contained in:
Josh Gao 2016-04-13 12:22:27 -07:00
parent 5863fb61e1
commit 9ea7795d38

View file

@ -1112,7 +1112,7 @@ static bool adb_root(const char* command) {
TransportType type;
const char* serial;
adb_get_transport(&type, &serial);
return wait_for_device("wait-for-device", type, serial);
return wait_for_device("wait-for-any", type, serial);
}
// Connects to the device "shell" service with |command| and prints the