summaryrefslogtreecommitdiffstats
path: root/adb/services.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'adb/services.cpp')
-rw-r--r--adb/services.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/adb/services.cpp b/adb/services.cpp
index dbf71d36d..ca345568d 100644
--- a/adb/services.cpp
+++ b/adb/services.cpp
@@ -150,6 +150,7 @@ static bool reboot_service_impl(int fd, const char* arg) {
sync();
+ if (!reboot_arg || !reboot_arg[0]) reboot_arg = "adb";
std::string reboot_string = android::base::StringPrintf("reboot,%s", reboot_arg);
if (!android::base::SetProperty(ANDROID_RB_PROPERTY, reboot_string)) {
WriteFdFmt(fd, "reboot (%s) failed\n", reboot_string.c_str());