Merge "Fix doing silent update,power cut/restoration,screen is turned on" am: f07eaeb72e
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2229081 Change-Id: I13a5ccb2c28173859d1768066719872dceed20f9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
859ebabebd
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue