diff options
author | Hannah.Hsu <hannah.hsu@mediatek.com> | 2022-09-25 08:42:09 +0200 |
---|---|---|
committer | Hannah.Hsu <hannah.hsu@mediatek.com> | 2022-09-27 03:32:20 +0200 |
commit | d43ec47f3b52667fb00978db4e119c2355008659 (patch) | |
tree | c92e01f6cd3c29ce0013d63ecf5df978fec9fbe2 | |
parent | Merge "minui: Support main fbdev connector in multi connector Blank function" (diff) | |
download | android_bootable_recovery-d43ec47f3b52667fb00978db4e119c2355008659.tar android_bootable_recovery-d43ec47f3b52667fb00978db4e119c2355008659.tar.gz android_bootable_recovery-d43ec47f3b52667fb00978db4e119c2355008659.tar.bz2 android_bootable_recovery-d43ec47f3b52667fb00978db4e119c2355008659.tar.lz android_bootable_recovery-d43ec47f3b52667fb00978db4e119c2355008659.tar.xz android_bootable_recovery-d43ec47f3b52667fb00978db4e119c2355008659.tar.zst android_bootable_recovery-d43ec47f3b52667fb00978db4e119c2355008659.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) { |