I have app that is installed in the system , my question if there is a way to prevent factory reset from erasing app data , no need to change the settings again ,without using backup app , atomic process after the phone has started working after factory reset
/data
partition which is completely erased with factory reset. So there is no way to retain data except backup/restore (backup app isn't necessarily required) or devise some way to make data available on boot from some other source which is not erased with factory reset e.g. external SD card or some partition on internal storage.