ORS: Report success if AOSP script succeeds
When AOSP recovery commands are processed, the GUI reports a failure just before reboot even when all commands succeeded. Set op_status before reboot to indicate success. Change-Id: I09e9357b04cd81f418264bf00a75311f48357414
This commit is contained in:
@@ -1560,6 +1560,7 @@ int GUIAction::openrecoveryscript(std::string arg)
|
||||
gui_print("Processing AOSP recovery commands...\n");
|
||||
if (OpenRecoveryScript::run_script_file() == 0) {
|
||||
reboot = 1;
|
||||
op_status = 0;
|
||||
}
|
||||
}
|
||||
// Check for the ORS file in /cache and attempt to run those commands.
|
||||
|
||||
Reference in New Issue
Block a user