Last Updated:

Where to find Android apps store data?


All applications (root or not) have a default data directory: . By default, this includes application databases, settings, and all other data. If an application expects huge amounts of data to be stored, or for other reasons wants the "convenience of internal storage," the SDCard has a corresponding directory ( ). /data/data/ Android/data/

In addition, all applications can store data anywhere on the SDCard, since there are no restrictions – and many applications do. They are free to use directory names (and they do it again), which often makes it difficult to decide what all this "garbage" on the map is for and what can be removed from it.

While, as Tom pointed out, root apps can store their data almost everywhere on your device, they usually follow the same rules as other apps.

You can find a general explanation of the Android directory hierarchy in my reply here. For your specific question, I could add more details about (and the corresponding SD part): /data/data/

  • databases/: This is where the application databases come from.
  • lib/: libraries and helpers for the application
  • files/: other related files
  • shared_prefs/: preferences and settings
  • cache/: well, caches

There may be a few more directories in this location or less – it all depends on the . In their own "home directory" (and this, in fact, is what is called in Linux), they can place files wherever they want. Usually, these files and directories are only available to the application itself (and, of course, root), except for those stored on the sDCard, which are available to all applications.


Android 4.4 has seen some major changes to the storage (see Android Storage Path). So the following is generally true for Android 4.4+ and especially 6+.

This is from my detailed answer to the question, how is disk space used on an Android device?. Application files are saved (by the system and by the application itself) in internal and external storage in different categories.

CATALOG/API DESCRIPTION ============================================= ===================================== APP CODE ========/ data/app/ * (custom application installation directory)/ data/app/ */base.apk (source `.apk` file)/data/app/ */lib//*.so (shared libraries)/data/app /*/oat//base.[art|odex|vdex] (compiled executable code)/data/dalvik-cache//*.[art|dex|oat|vdex] (compiled executable code, for system apps only)/ data/misc/profiles/cur///primary. prof (ART profile)/data/misc/profiles/ref//primary.prof (ART profile) INTERNAL STORAGE ===============/data/user [_de] // getDataDir /data/user [_de]///files getFilesDir/data/user [_de]///[code_] cache getCacheDir or getCodeCacheDir /data/user [_de]///databases getDatabasePath/data/user [_de]// /no_backup getNoBackupFilesDir/data/user [_de]///shared_prefs getSharedPreferences EXTERNAL STORAGE ===============/storage/emulated/obb//*.obb (shared by multiple users, displayed in the following view)/storage/ emulated//Android/obb//*. .obb getObbDirs/storage/emulated//Android/media/ getExternalMediaDirs/storage/emulated//Android/ data///storage/emulated//Android/data//files getExternalFilesDirs/storage/emulated//Android/data//[ code_] cache getExternalCacheDirs
  • All of the above paths on internal and external storage (primarily ry and secondary) are private application directories that are accessible to the corresponding application without a permission prompt. Apps can also create other directories (not explicitly accessible through the API) in their personal store. All of these directories that belong to the application are deleted when the application is uninstalled.

  • In addition, applications can place their data anywhere in the main external storage (including some standard directories and private directories of other applications) if permission (returns) is granted. Secondary external storage and removable storage use SAF. Cm. For more information, see How do I save files to an external SD card? WRITE_EXTERNAL_STORAGE getExternalStorageDirectory /storage/emulated/

    However, in Android 10, writing directly to the main external shared storage is deprecated (and no longer available). Apps must use one of Android's built-in content providers; either (for media files) or (for any other file type). getExternalStorageDirectory getExternalStoragePublicDirectory

  • /data paths can be replaced with when using adaptable storage. is replaced by when using additional external storage (for example, an SD card). /mnt/expand/[UUID ] /storage/emulated /storage/[UUID]

  • For multiple users/profiles different, the owner of the device is always . is a symbolic reference to for historical reasons. Secondary external storage is available only to the device owner. /data/user/0 /data/data

  • The OBB directory is shared by users/profiles (up to Android 9) to save space. FUSE/ always provides as . sdcardfs /storage/emulated/obb /storage/emulated//Android/obb

  • /data/user_de is an encrypted device storage on FBE devices that allows some apps to run at boot without prompting for user credentials.

  • /data/misc/profiles are used by ART to compile application code based on the profile.

  • The description of each directory is partly visible by the names, details can be seen in the API documentation.

  • Caches are cleared by the OS when memory is low, keeping applications that exceed the allocated quota at the top.

  • Personal applications in external storage are not automatically scanned by MediaScanner, but directories are scanned. файлы media

  • Caches and Directories are not backed up to the cloud. Cm. Official documentation. no_backup

 
 
 
 

There have been some major changes to the Android store. 4.4 (see Android Storage Path). So the following is generally true for Android 4.4+ and especially 6+.

This is from my detailed answer to the question, how is disk space used on an Android device?. Application files are saved (by the system and by the application itself) in internal and external storage in different categories.

 CATALOG/API DESCRIPTION ============================================= ===================================== APP CODE ========/ data/app/ * (custom application installation directory)/ data/app/ */base.apk (source `.apk` file)/data/app/ */lib//*.so (shared libraries)/data/app /*/oat//base.[art|odex|vdex] (compiled executable code)/data/dalvik-cache//*.[art|dex|oat|vdex] (compiled executable code, for system apps only)/ data/misc/profiles/cur///primary.prof (ART profile)/data/misc/profiles/ref//primary.prof (ART profile) INTERNAL STORAGE ============== ==/data/user [_de]// getDataDir/data/user [_de]///files getFilesDir/data/user [_de]///[code_] cache getCacheDir or getCodeCacheDir/data/user [_de]// /databases getDatabasePath/data/user [_de]/ //no_backup getNo BackupFilesDir/data/user [_de]///shared_prefs getSharedPreferences EXTERNAL STORAGE ================/storage/emulated /obb//*.obb (shared by multiple users, shown in the following emulated view)/storage/emulated//Android/obb//*. . obb getObbDirs/storage/emulated//Android/media/ getExternalMediaDirs/storage/emulated//Android/data///storage/emulated//Android/data//files getExternalFilesDirs/storage/emulated//Android/data//[code_ ]cache getExternalCacheDirs
  • All of the above paths in internal and external storage (primary and secondary) are personal application directories that are accessible to the corresponding application without being asked for permission. Apps can also create other directories (not explicitly accessible through the API) in their personal store. All of these directories that belong to the application are deleted when the application is uninstalled.

  • In addition, applications can place their data anywhere in the main external storage (including some standard directories and private directories of other applications) if permission (returns) is granted. Secondary external storage and removable storage use SAF. Cm. For more information, see How do I save files to an external SD card? WRITE_EXTERNAL_STORAGE getExternalStorageDirectory /storage/emulated/

    However, in Android 10, writing directly to the main external shared storage is deprecated (and no longer available). Apps must use one of Android's built-in content providers; either (for media files) or (for any other file type). getExternalStorageDirectory getExternalStoragePublicDirectory

  • /data paths can be replaced with when using adaptable storage. is replaced by when using additional external storage (for example, an SD card). /mnt/expand/[UUID ] /storage/emulated /storage/[UUID]

  • For multiple users/profiles different, the owner of the device is always . is a symbolic reference to for historical reasons. Secondary external storage is available only to the device owner. /data/user/0 /data/data

  • The OBB directory is shared between users/profiles (up to Android 9) to save space. FUSE/ always provides as . sdcardfs /storage/emulated/obb /storage/emulated//Android/obb

  • /data/user_de is an encrypted device storage on FBE devices that allows some apps to run at boot without prompting for user credentials.

  • /data/misc/profiles are used by ART to compile application code based on the profile.

  • The description of each directory is partly obvious from the names, details can be seen in the API documentation.

  • Caches are cleared by the OS when memory is low, keeping applications that exceed the allocated quota.

  • Personal directories in external storage are not automatically scanned by MediaScanner, but файлов приложений медиа .

  • Caches and directories are not copied to the cloud. Cm. Official documentation. no_backup


The answer to your question you're asking is too big. However, I can give you a basic answer that covers the basics.

There are two types of applications:
root and non-root privileges.

Root applications can store/modify files anywhere.

Applications without root privileges can store/modify files only here: and in every folder that comes after.
Basically, installed applications are stored in or .
Some applications store their save games/configuration data files in or only in 
/sdcard//sdcard/Android/data /sdcard/Android/obb /sdcard/APPNAME//sdcard/

Be you can use the root app, you need to get root rights on your Android device and get permission from one of the root users' apps.

 
 
 

The answer to your question is too great. However, I can give you a basic answer that covers the basics.

There are two types of applications:
Root and non-root.

Root applications can basically store/modify files anywhere.

Applications without root privileges can store/modify files only here: and in every folder that comes after.
Basically, installed applications are stored in or .
Some applications store their save games/configuration data files in or only in 
/sdcard//sdcard/Android/data /sdcard/Android/obb /sdcard/APPNAME//sdcard/

If you can use root apps, you'll need to root your Android device and get permission from one of the root apps.