summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorDmitri Plotnikov <dplotnikov@google.com>2017-04-28 00:47:03 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-04-28 00:47:03 +0200
commit533ad31cc18413c0b85bff1c63f472b935b2168c (patch)
tree2c0927046f8ee5dea7b4fe0a9e6e238f19a3bef3 /updater
parentMerge "Separate libupdate_verifier module and add testcases." am: c99bb23955 (diff)
parentMerge "Adding support for quiescent reboot to recovery" (diff)
downloadandroid_bootable_recovery-533ad31cc18413c0b85bff1c63f472b935b2168c.tar
android_bootable_recovery-533ad31cc18413c0b85bff1c63f472b935b2168c.tar.gz
android_bootable_recovery-533ad31cc18413c0b85bff1c63f472b935b2168c.tar.bz2
android_bootable_recovery-533ad31cc18413c0b85bff1c63f472b935b2168c.tar.lz
android_bootable_recovery-533ad31cc18413c0b85bff1c63f472b935b2168c.tar.xz
android_bootable_recovery-533ad31cc18413c0b85bff1c63f472b935b2168c.tar.zst
android_bootable_recovery-533ad31cc18413c0b85bff1c63f472b935b2168c.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);