General settings are stored as a file in the file system on the device. by default, they are stored in the application data directory with the file system permissions set, which allow only the UID with which a particular application works to access them. Thus, they are private because file permissions on Linux restrict access to them in the same way as on any Linux / Unix system.
Any user with root privileges can see them, since root has access to everything in the file system. In addition, any application that works with the same UID as the creator application will be able to access them (this is usually not done, and you need to take certain actions so that the two applications work with the same UID, so this probably not a big concern). Finally, if someone can mount the file system of your device without using the installed Android OS, they can also bypass permissions that restrict access.
If you are worried about such access to your preferences (or any data written by your application), then you will want to encrypt them. If this bothers you, you will need to determine exactly what level of protection is needed for the level of risk that you see. This is described in great detail in Application Security for the Android platform , which was just published in December 2011 (disclaimer: I am the author of this book).
user121356 Feb 11 2018-12-12T00: 00Z
source share