Important bytes
Before we jump into the next chapter, let's go through a couple of important subtopics within the Android apps' backup feature.
System backup does not include the following:
- Files located in
CacheDir
via thegetCacheDir()
method (API 1 and above) - Files located in
CodeCacheDir
via thegetCodeCacheDir()
method (API 21 and above) - Files located in the external storage and not in
ExternalFilesDir
via thegetExternalFilesDir(String type)
method, where the type can be as follows:null
for the root of the file directory- Any of these types for a specific subfolder/directory:
android.os.Environment.DIRECTORY_MUSIC
android.os.Environment.DIRECTORY_PODCASTS
android.os.Environment.DIRECTORY_RINGTONES
android.os.Environment.DIRECTORY_ALARMS
android.os.Environment.DIRECTORY_NOTIFICATIONS
android.os.Environment.DIRECTORY_PICTURES
android.os.Environment.DIRECTORY_MOVIES
- Files located in
NoBackupFilesDir
via thegetNoBackupFilesDir()
method (API 21 and above)
What to exclude from the backup
Though...