From 83e82578af038e85cf75cf6675dc76120ec84860 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Fri, 4 Apr 2014 10:59:28 -0500 Subject: Allow building of an OEM friendly TWRP Disable theming Disable creating the TWRP folder for the settings file Change factory reset on data/media devices to a full wipe Change-Id: I3104282b5dd3f55dfff7c8cf39c72750af08563d --- gui/action.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gui/action.cpp') diff --git a/gui/action.cpp b/gui/action.cpp index 453304ceb..9d7e482ca 100644 --- a/gui/action.cpp +++ b/gui/action.cpp @@ -800,7 +800,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */) } } else ret_val = PartitionManager.Wipe_By_Path(arg); - +#ifdef TW_OEM_BUILD if (arg == DataManager::GetSettingsStoragePath()) { // If we wiped the settings storage path, recreate the TWRP folder and dump the settings string Storage_Path = DataManager::GetSettingsStoragePath(); @@ -814,6 +814,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */) LOGERR("Unable to recreate TWRP folder and save settings.\n"); } } +#endif } PartitionManager.Update_System_Details(); if (ret_val) -- cgit v1.2.3