summaryrefslogtreecommitdiffstats
path: root/updater/install.cpp
diff options
context:
space:
mode:
authorDmitri Plotnikov <dplotnikov@google.com>2017-04-28 01:13:35 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-04-28 01:13:35 +0200
commitb0b26aaaee0e0a192718fbcd0ff2c6f491aadf7f (patch)
treec96d9d9d67b3980c6e016cc556449bf30de40498 /updater/install.cpp
parentMerge "Separate libupdate_verifier module and add testcases." am: c99bb23955 am: d8c078d2c6 am: c7410924a3 (diff)
parentMerge "Adding support for quiescent reboot to recovery" am: 0481faef77 am: 5b27cd1093 (diff)
downloadandroid_bootable_recovery-b0b26aaaee0e0a192718fbcd0ff2c6f491aadf7f.tar
android_bootable_recovery-b0b26aaaee0e0a192718fbcd0ff2c6f491aadf7f.tar.gz
android_bootable_recovery-b0b26aaaee0e0a192718fbcd0ff2c6f491aadf7f.tar.bz2
android_bootable_recovery-b0b26aaaee0e0a192718fbcd0ff2c6f491aadf7f.tar.lz
android_bootable_recovery-b0b26aaaee0e0a192718fbcd0ff2c6f491aadf7f.tar.xz
android_bootable_recovery-b0b26aaaee0e0a192718fbcd0ff2c6f491aadf7f.tar.zst
android_bootable_recovery-b0b26aaaee0e0a192718fbcd0ff2c6f491aadf7f.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 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);