summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorDmitri Plotnikov <dplotnikov@google.com>2017-04-18 17:28:26 +0200
committerDmitri Plotnikov <dplotnikov@google.com>2017-04-19 23:43:08 +0200
commit8706a98aa635236a95795f0a0c122bb3e591a50d (patch)
tree133e90784e5115282067ed38c1e5919a3a033b7c /updater
parentMerge "Add 'system' to update_verifier's gid" (diff)
downloadandroid_bootable_recovery-8706a98aa635236a95795f0a0c122bb3e591a50d.tar
android_bootable_recovery-8706a98aa635236a95795f0a0c122bb3e591a50d.tar.gz
android_bootable_recovery-8706a98aa635236a95795f0a0c122bb3e591a50d.tar.bz2
android_bootable_recovery-8706a98aa635236a95795f0a0c122bb3e591a50d.tar.lz
android_bootable_recovery-8706a98aa635236a95795f0a0c122bb3e591a50d.tar.xz
android_bootable_recovery-8706a98aa635236a95795f0a0c122bb3e591a50d.tar.zst
android_bootable_recovery-8706a98aa635236a95795f0a0c122bb3e591a50d.zip
Diffstat (limited to 'updater')
-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);