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

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

Merge "adbd: fix check of `remount -R`." am: d81c4f07 am: c2553602 am: a63ffb0d

am: a6b04ade

Change-Id: Id2f6eeef3710c193f1ff908d9382b6bfee66148b
parents a727ec9d a6b04ade
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -216,7 +216,7 @@ static void reboot_for_remount(int fd, bool need_fsck) {
}

void remount_service(unique_fd fd, const std::string& cmd) {
    bool user_requested_reboot = cmd != "-R";
    bool user_requested_reboot = cmd == "-R";

    if (getuid() != 0) {
        WriteFdExactly(fd.get(), "Not running as root. Try \"adb root\" first.\n");