Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ea7795d authored by Josh Gao's avatar Josh Gao
Browse files

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 48a34818)
parent 5863fb61
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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