Merge "adbd: fix check of `remount -R`."
am: d81c4f07fb
Change-Id: Ia76a004460bb6bc257c00f515d47fd353a79cf99
diff --git a/adb/daemon/remount_service.cpp b/adb/daemon/remount_service.cpp
index 76a1452..6588587 100644
--- a/adb/daemon/remount_service.cpp
+++ b/adb/daemon/remount_service.cpp
@@ -216,7 +216,7 @@
}
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");