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:
parent
5863fb61e1
commit
9ea7795d38
1 changed files with 1 additions and 1 deletions
|
|
@ -1112,7 +1112,7 @@ static bool adb_root(const char* command) {
|
||||||
TransportType type;
|
TransportType type;
|
||||||
const char* serial;
|
const char* serial;
|
||||||
adb_get_transport(&type, &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
|
// Connects to the device "shell" service with |command| and prints the
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue