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
This commit is contained in:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user