Insecure storage

The storage is the process that saves information into our device or computer. Android API basically offers five different types of storage:

SharedPreferences

The first and basic one is known as SharedPreferences. This type of storage saves into XML files, in the private folder, the information we have saved as pairs of primitives associated with each value. In the following screenshot we can see all the files under the folder, shared_prefs. Those files are SharedPreferences files.

SharedPreferences

If we pull one of them from the device, we will be able to see the following content:

Each value inside the XML file has the following structure:

<string ...

Get Android High Performance Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.