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
This commit is contained in:
Ethan Yonker
2015-02-02 18:23:25 +01:00
committed by Dees Troy
parent a3fa75fd66
commit 9132d91253
4 changed files with 18 additions and 7 deletions
+2
View File
@@ -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 {