summaryrefslogtreecommitdiffstats
path: root/updater/install.cpp
diff options
context:
space:
mode:
authorDmitri Plotnikov <dplotnikov@google.com>2017-04-18 17:28:26 +0200
committerDmitri Plotnikov <dplotnikov@google.com>2017-04-28 01:31:11 +0200
commited9db0fd73f0368be354a65d7bdc3de5d01bdc88 (patch)
treea383c952eea5b1f7c0feb71fd0bb2bb076f9c128 /updater/install.cpp
parentAdd more tests for verify_package_compatibility(). (diff)
downloadandroid_bootable_recovery-ed9db0fd73f0368be354a65d7bdc3de5d01bdc88.tar
android_bootable_recovery-ed9db0fd73f0368be354a65d7bdc3de5d01bdc88.tar.gz
android_bootable_recovery-ed9db0fd73f0368be354a65d7bdc3de5d01bdc88.tar.bz2
android_bootable_recovery-ed9db0fd73f0368be354a65d7bdc3de5d01bdc88.tar.lz
android_bootable_recovery-ed9db0fd73f0368be354a65d7bdc3de5d01bdc88.tar.xz
android_bootable_recovery-ed9db0fd73f0368be354a65d7bdc3de5d01bdc88.tar.zst
android_bootable_recovery-ed9db0fd73f0368be354a65d7bdc3de5d01bdc88.zip
Diffstat (limited to 'updater/install.cpp')
-rw-r--r--updater/install.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/updater/install.cpp b/updater/install.cpp
index f91f3fc9f..84cf5d6c0 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -890,7 +890,10 @@ Value* RebootNowFn(const char* name, State* state, const std::vector<std::unique
return StringValue("");
}
- const std::string reboot_cmd = "reboot," + property;
+ std::string reboot_cmd = "reboot," + property;
+ if (android::base::GetBoolProperty("ro.boot.quiescent", false)) {
+ reboot_cmd += ",quiescent";
+ }
android::base::SetProperty(ANDROID_RB_PROPERTY, reboot_cmd);
sleep(5);