diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2022-09-28 01:14:04 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-09-28 01:14:04 +0200 |
commit | f07eaeb72e2f9b56a03d3dd2315f0ec75e758223 (patch) | |
tree | c92e01f6cd3c29ce0013d63ecf5df978fec9fbe2 | |
parent | Merge "minui: Support main fbdev connector in multi connector Blank function" (diff) | |
parent | Fix doing silent update,power cut/restoration,screen is turned on (diff) | |
download | android_bootable_recovery-f07eaeb72e2f9b56a03d3dd2315f0ec75e758223.tar android_bootable_recovery-f07eaeb72e2f9b56a03d3dd2315f0ec75e758223.tar.gz android_bootable_recovery-f07eaeb72e2f9b56a03d3dd2315f0ec75e758223.tar.bz2 android_bootable_recovery-f07eaeb72e2f9b56a03d3dd2315f0ec75e758223.tar.lz android_bootable_recovery-f07eaeb72e2f9b56a03d3dd2315f0ec75e758223.tar.xz android_bootable_recovery-f07eaeb72e2f9b56a03d3dd2315f0ec75e758223.tar.zst android_bootable_recovery-f07eaeb72e2f9b56a03d3dd2315f0ec75e758223.zip |
-rw-r--r-- | bootloader_message/bootloader_message.cpp | 6 |
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) { |