If you only want to clear app data and restore your device to factory settings without losing the data stored in the internal storage, choose the Reset all settings option in the Reset phone menu instead of the Erase all data option. This will reset all the device settings, including network settings.0