diff options
author | Dmitri Plotnikov <dplotnikov@google.com> | 2017-04-28 00:41:33 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-04-28 00:41:33 +0200 |
commit | 5b27cd109341b2da9ce0ef6e698a5f986d99b31f (patch) | |
tree | 0dd6c82a91f5867046e6c9806b0484b2754165e1 /updater | |
parent | Merge "Separate libupdate_verifier module and add testcases." (diff) | |
parent | Merge "Adding support for quiescent reboot to recovery" (diff) | |
download | android_bootable_recovery-5b27cd109341b2da9ce0ef6e698a5f986d99b31f.tar android_bootable_recovery-5b27cd109341b2da9ce0ef6e698a5f986d99b31f.tar.gz android_bootable_recovery-5b27cd109341b2da9ce0ef6e698a5f986d99b31f.tar.bz2 android_bootable_recovery-5b27cd109341b2da9ce0ef6e698a5f986d99b31f.tar.lz android_bootable_recovery-5b27cd109341b2da9ce0ef6e698a5f986d99b31f.tar.xz android_bootable_recovery-5b27cd109341b2da9ce0ef6e698a5f986d99b31f.tar.zst android_bootable_recovery-5b27cd109341b2da9ce0ef6e698a5f986d99b31f.zip |
Diffstat (limited to 'updater')
-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 857d7f1e0..888239c83 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); |