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:
Matt Mower
2015-08-08 10:00:50 -05:00
committed by Dees Troy
parent d16b2ce73e
commit 85161af111
+1
View File
@@ -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.