I\'m creating a corporate app, and I need to keep it on the phone even after a factory reset has been executed by user.
If I set my android app to a system app, aft
Factory Data Reset (FRP) only clears the data and the cache partitions.
system apps are located within the system partition.
So it will not delete the APK, but it will delete the local data of the app. for example the app saved some information about you in a local database (located within the data partition).
To build your APK from Android-Studio,
Build > Build APK (Do not choose to Generate Signed APK)
Then copy the APK to the /system/priv-app/, set permissions accordingly, restart your device and done. (root privilege required).