Merge "Fix doing silent update,power cut/restoration,screen is turned on"

This commit is contained in:
Treehugger Robot 2022-09-27 23:14:04 +00:00 committed by Gerrit Code Review
commit f07eaeb72e

View file

@ -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) {