0

I have a system app, and I need that both the application itself and its settings shall be in /system partition.

I can change the application to be in system by moving from /data/app to /system/app.

Yet, I see that the configuration/settings are still saved somewhere in /data (not sure where).

Is it possible to change it to be in /system? If yes, how?

Thanks.

  • 1
    The system partition is read-only. Therefore you can't place the app data directory there (or better it does not make sense). As the Android system has been developed to work without root access it does not matter that you have root access. – Robert Sep 6 '18 at 17:15
0

You can't. Configurations / settings / cache / databases of every app (system or user) are stored on /data or in /sdcard/Android/ for some apps. That's why /system partition is of limited size as compared to /data. Android works that way. Apps aren't built to read and write settings to /system partition as it holds a read-only filesystem, only changed during OTA updates. A read-write /system partition won't fit into Verified Boot mechanism implemented by Android for security and to prevent malware attacks.

Further reading: Android Partitions and Filesystems

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.