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 --- twrp-functions.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'twrp-functions.hpp') diff --git a/twrp-functions.hpp b/twrp-functions.hpp index c10a184e6..d49cd8499 100644 --- a/twrp-functions.hpp +++ b/twrp-functions.hpp @@ -83,8 +83,8 @@ public: static int Set_Brightness(std::string brightness_value); // Well, you can read, it does what it says, passing return int from TWFunc::Write_File ;) static bool Toggle_MTP(bool enable); // Disables MTP if enable is false and re-enables MTP if enable is true and it was enabled the last time it was toggled off static std::string to_string(unsigned long value); //convert ul to string - static void SetPerformanceMode(bool mode); // support recovery.perf.mode + static void Disable_Stock_Recovery_Replace(); // Disable stock ROMs from replacing TWRP with stock recovery private: static void Copy_Log(string Source, string Destination); -- cgit v1.2.3