Merge "Fix doing silent update,power cut/restoration,screen is turned on" am: f07eaeb72e am: 859ebabebd am: 50ed6648b1 am: cfccc925f6
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2229081
Change-Id: I8efd8d4c63c6bd5eb4c83d2951c9b7c25ef21804
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/bootloader_message/bootloader_message.cpp b/bootloader_message/bootloader_message.cpp
index 1ea56cd..0a713ee 100644
--- a/bootloader_message/bootloader_message.cpp
+++ b/bootloader_message/bootloader_message.cpp
@@ -209,7 +209,11 @@
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) {