From 9132d9125314874957f5565c194727ab4ce66733 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Mon, 2 Feb 2015 10:32:49 -0600 Subject: Disable stock recovery replacing TWRP during ORS -Create a separate function to disable stock recovery flashing -Add a call to that function to the reboot section of the ORS action so that an OTA update will not inadvertantly replace TWRP Change-Id: I43eae81e0e76971b6e8d34c38785dc73772242d2 --- gui/action.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gui') diff --git a/gui/action.cpp b/gui/action.cpp index 2aa03a637..aa81dff16 100644 --- a/gui/action.cpp +++ b/gui/action.cpp @@ -1555,6 +1555,8 @@ int GUIAction::openrecoveryscript(std::string arg) } } if (reboot) { + // Disable stock recovery reflashing + TWFunc::Disable_Stock_Recovery_Replace(); usleep(2000000); // Sleep for 2 seconds before rebooting TWFunc::tw_reboot(rb_system); } else { -- cgit v1.2.3