From 89583ef00f54369be2b5ab3495495616056eba13 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 26 Aug 2015 09:01:59 -0500 Subject: Fix up some TW_OEM_BUILD things Fix factory reset now properly formats data as expected Change text for ORS processing Disable system read only check, SuperSU, and patch system Stop copying fstab and version to cache Change-Id: I20f5cae390afbb8d2d88e01b8d9b9bf4ff0fdea1 --- twrp.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'twrp.cpp') diff --git a/twrp.cpp b/twrp.cpp index 091de19fd..219c30612 100644 --- a/twrp.cpp +++ b/twrp.cpp @@ -332,6 +332,7 @@ int main(int argc, char **argv) { PartitionManager.Disable_MTP(); #endif +#ifndef TW_OEM_BUILD // Check if system has never been changed TWPartition* sys = PartitionManager.Find_Partition_By_Path("/system"); if (sys) { @@ -350,10 +351,12 @@ int main(int argc, char **argv) { sys->Change_Mount_Read_Only(false); } } +#endif // Launch the main GUI gui_start(); +#ifndef TW_OEM_BUILD // Disable flashing of stock recovery TWFunc::Disable_Stock_Recovery_Replace(); // Check for su to see if the device is rooted or not @@ -368,6 +371,7 @@ int main(int argc, char **argv) { sync(); PartitionManager.UnMount_By_Path("/system", false); } +#endif // Reboot TWFunc::Update_Intent_File(Reboot_Value); -- cgit v1.2.3