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