diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2015-08-26 16:01:59 +0200 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2015-08-26 22:36:16 +0200 |
commit | 89583ef00f54369be2b5ab3495495616056eba13 (patch) | |
tree | 94d0d7346abb12cbbb745d012f47036e97ab350a /twrp.cpp | |
parent | Wipe crypto key when formatting data (diff) | |
download | android_bootable_recovery-89583ef00f54369be2b5ab3495495616056eba13.tar android_bootable_recovery-89583ef00f54369be2b5ab3495495616056eba13.tar.gz android_bootable_recovery-89583ef00f54369be2b5ab3495495616056eba13.tar.bz2 android_bootable_recovery-89583ef00f54369be2b5ab3495495616056eba13.tar.lz android_bootable_recovery-89583ef00f54369be2b5ab3495495616056eba13.tar.xz android_bootable_recovery-89583ef00f54369be2b5ab3495495616056eba13.tar.zst android_bootable_recovery-89583ef00f54369be2b5ab3495495616056eba13.zip |
Diffstat (limited to 'twrp.cpp')
-rw-r--r-- | twrp.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |