summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2022-09-28 01:47:10 +0200
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-09-28 01:47:10 +0200
commit859ebabebd0fc4e7c9e6079aab5fdc8fe536683c (patch)
treec92e01f6cd3c29ce0013d63ecf5df978fec9fbe2
parentMerge "minui: Support main fbdev connector in multi connector Blank function" am: 3f125fa897 (diff)
parentMerge "Fix doing silent update,power cut/restoration,screen is turned on" (diff)
downloadandroid_bootable_recovery-859ebabebd0fc4e7c9e6079aab5fdc8fe536683c.tar
android_bootable_recovery-859ebabebd0fc4e7c9e6079aab5fdc8fe536683c.tar.gz
android_bootable_recovery-859ebabebd0fc4e7c9e6079aab5fdc8fe536683c.tar.bz2
android_bootable_recovery-859ebabebd0fc4e7c9e6079aab5fdc8fe536683c.tar.lz
android_bootable_recovery-859ebabebd0fc4e7c9e6079aab5fdc8fe536683c.tar.xz
android_bootable_recovery-859ebabebd0fc4e7c9e6079aab5fdc8fe536683c.tar.zst
android_bootable_recovery-859ebabebd0fc4e7c9e6079aab5fdc8fe536683c.zip
-rw-r--r--bootloader_message/bootloader_message.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/bootloader_message/bootloader_message.cpp b/bootloader_message/bootloader_message.cpp
index 1ea56cd4e..0a713eed5 100644
--- a/bootloader_message/bootloader_message.cpp
+++ b/bootloader_message/bootloader_message.cpp
@@ -209,7 +209,11 @@ bool update_bootloader_message_in_struct(bootloader_message* boot,
memset(boot->command, 0, sizeof(boot->command));
memset(boot->recovery, 0, sizeof(boot->recovery));
- strlcpy(boot->command, "boot-recovery", sizeof(boot->command));
+ if (android::base::GetBoolProperty("ro.boot.quiescent", false)) {
+ strlcpy(boot->command, "boot-recovery,quiescent", sizeof(boot->command));
+ } else {
+ strlcpy(boot->command, "boot-recovery", sizeof(boot->command));
+ }
std::string recovery = "recovery\n";
for (const auto& s : options) {