From 85161af11117431ff3a1d6b845e8faf35ef07b2c Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Sat, 8 Aug 2015 10:00:50 -0500 Subject: 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 --- gui/action.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'gui') diff --git a/gui/action.cpp b/gui/action.cpp index af2d51701..b74584598 100644 --- a/gui/action.cpp +++ b/gui/action.cpp @@ -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. -- cgit v1.2.3