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

Commit a35a2e21 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

Merge "adb: windows: fix adb execute root cmd with no tips"

am: 02f535f5

Change-Id: Ia10c83a69e4a54c3cc669ef70a59f7e2d84147f4
parents 1886fb44 02f535f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1125,8 +1125,8 @@ static bool adb_root(const char* command) {
        return false;
    }

    fwrite(buf, 1, sizeof(buf) - bytes_left, stdout);
    fflush(stdout);
    WriteFdExactly(STDOUT_FILENO, buf, sizeof(buf) - bytes_left);
    if (cur != buf && strstr(buf, "restarting") == nullptr) {
        return true;
    }