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
diff --git a/gui/action.cpp b/gui/action.cpp
index af2d517..b745845 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -1560,6 +1560,7 @@
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.