summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-09-29 03:01:16 +0200
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-09-29 03:01:16 +0200
commite94ef635ab70aa04365d10373cf45dbeb60fca5c (patch)
treec92e01f6cd3c29ce0013d63ecf5df978fec9fbe2
parentSnap for 9059601 from fa4e513d650b5e201d81772df880be4d78de8966 to udc-release (diff)
parentMerge "Fix doing silent update,power cut/restoration,screen is turned on" am: f07eaeb72e am: 859ebabebd am: 50ed6648b1 am: cfccc925f6 am: 1e0da76374 (diff)
downloadandroid_bootable_recovery-e94ef635ab70aa04365d10373cf45dbeb60fca5c.tar
android_bootable_recovery-e94ef635ab70aa04365d10373cf45dbeb60fca5c.tar.gz
android_bootable_recovery-e94ef635ab70aa04365d10373cf45dbeb60fca5c.tar.bz2
android_bootable_recovery-e94ef635ab70aa04365d10373cf45dbeb60fca5c.tar.lz
android_bootable_recovery-e94ef635ab70aa04365d10373cf45dbeb60fca5c.tar.xz
android_bootable_recovery-e94ef635ab70aa04365d10373cf45dbeb60fca5c.tar.zst
android_bootable_recovery-e94ef635ab70aa04365d10373cf45dbeb60fca5c.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) {