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

Commit 1ffccf5c authored by Junyong Sun's avatar Junyong Sun
Browse files

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



fwrite can cross windows platform to show log on terminal,
so we use it instead of WriteFdExactly.

Change-Id: I252c15a0bc72e1dbd98b7b5ec8000ecdcde16416
Signed-off-by: default avatarJunyong Sun <sunjy516@gmail.com>
parent 4659cdaf
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;
    }