summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2022-09-28 03:16:27 +0200
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-09-28 03:16:27 +0200
commitcfccc925f6e515d739106b8e464ce69127c0b9c8 (patch)
tree3412f5fbe704006e18b2c8cce1716b24bc868514
parentMerge "minui: Support main fbdev connector in multi connector Blank function" am: 3f125fa897 am: 71a1763a22 am: 581fd1501b (diff)
parentMerge "Fix doing silent update,power cut/restoration,screen is turned on" am: f07eaeb72e am: 859ebabebd (diff)
downloadandroid_bootable_recovery-cfccc925f6e515d739106b8e464ce69127c0b9c8.tar
android_bootable_recovery-cfccc925f6e515d739106b8e464ce69127c0b9c8.tar.gz
android_bootable_recovery-cfccc925f6e515d739106b8e464ce69127c0b9c8.tar.bz2
android_bootable_recovery-cfccc925f6e515d739106b8e464ce69127c0b9c8.tar.lz
android_bootable_recovery-cfccc925f6e515d739106b8e464ce69127c0b9c8.tar.xz
android_bootable_recovery-cfccc925f6e515d739106b8e464ce69127c0b9c8.tar.zst
android_bootable_recovery-cfccc925f6e515d739106b8e464ce69127c0b9c8.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) {