diff options
author | Dmitri Plotnikov <dplotnikov@google.com> | 2017-04-18 17:28:26 +0200 |
---|---|---|
committer | Dmitri Plotnikov <dplotnikov@google.com> | 2017-04-28 01:31:11 +0200 |
commit | ed9db0fd73f0368be354a65d7bdc3de5d01bdc88 (patch) | |
tree | a383c952eea5b1f7c0feb71fd0bb2bb076f9c128 /updater/install.cpp | |
parent | Add more tests for verify_package_compatibility(). (diff) | |
download | android_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.cpp | 5 |
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); |