diff options
author | Dmitri Plotnikov <dplotnikov@google.com> | 2017-04-28 01:00:04 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-04-28 01:00:04 +0200 |
commit | 8a3d58655cdef731548e7aabae04f33ba30379dc (patch) | |
tree | ceca0cd014327a085cadb171fce408708b8791e0 /updater | |
parent | Merge "Separate libupdate_verifier module and add testcases." am: c99bb23955 am: d8c078d2c6 (diff) | |
parent | Merge "Adding support for quiescent reboot to recovery" am: 0481faef77 (diff) | |
download | android_bootable_recovery-8a3d58655cdef731548e7aabae04f33ba30379dc.tar android_bootable_recovery-8a3d58655cdef731548e7aabae04f33ba30379dc.tar.gz android_bootable_recovery-8a3d58655cdef731548e7aabae04f33ba30379dc.tar.bz2 android_bootable_recovery-8a3d58655cdef731548e7aabae04f33ba30379dc.tar.lz android_bootable_recovery-8a3d58655cdef731548e7aabae04f33ba30379dc.tar.xz android_bootable_recovery-8a3d58655cdef731548e7aabae04f33ba30379dc.tar.zst android_bootable_recovery-8a3d58655cdef731548e7aabae04f33ba30379dc.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); |