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

Commit 02f535f5 authored by Josh Gao's avatar Josh Gao Committed by Gerrit Code Review
Browse files

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

parents 8db23af9 1ffccf5c
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;
    }