Trigger the logging when prompting for wipe.
This allows recording the reason string that prompts user for a data wipe, even if user selects 'Try again'. Test: Inject an error into framework to trigger RescueParty. Select 'Try again' and check the recovery log post-boot. Change-Id: I0d7d5afcf38cae5019e2ce0a46d3cd1ac3e83a03
This commit is contained in:
parent
16147d1bd6
commit
a5bbcb9596
1 changed files with 3 additions and 0 deletions
|
@ -1196,6 +1196,9 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri
|
|||
status = INSTALL_ERROR;
|
||||
}
|
||||
} else if (should_prompt_and_wipe_data) {
|
||||
// Trigger the logging to capture the cause, even if user chooses to not wipe data.
|
||||
modified_flash = true;
|
||||
|
||||
ui->ShowText(true);
|
||||
ui->SetBackground(RecoveryUI::ERROR);
|
||||
status = prompt_and_wipe_data(device);
|
||||
|
|
Loading…
Reference in a new issue