Users often wonder where installed apps are physically stored inside the file system of their smartphone. Understanding the directory structure Android is necessary for migrating data, creating backups, or deep cleaning memory from garbage. Unlike desktop operating systems, the mobile platform has a strict access hierarchy, which has changed with each major firmware version.
By default, standard file managers hide the most important system partitions from the ownerโs eyes. This is done for the sake of security, so that accidental deletion of a critical file does not turn the device into a โbrick.โ However, if you have root access or use debugging USB, the veil of secrecy is lifted, allowing you to see the real paths to APK files and their data.
In this material we will analyze in detail the structure of the directories where your apps live. We will look at the differences between system applications and those that you downloaded from the store, and also explain why in new versions Android 11 and higher, access to some folders has become much more difficult.
The system architecture for storing applications
The file system of mobile devices based on Linux is built on the principle of a single directory tree. All installed apps, regardless of the download source, fall into strictly defined sections. The main storage of executable files is located in the /data/appdirectory. This is where the installation packages of user apps are located.
Each application receives its own unique subdirectory with a name that matches its package name (for example, com.example.game). The file itself is stored inside this folder APK, as well as the native libraries associated with it. Access to this section without superuser rights is completely prohibited for ordinary file managers.
โ ๏ธ Attention: Direct editing or deleting files in the directory
/data/appcan lead to unstable system operation or complete boot failure. Always create a backup copy before tampering with system partitions.
In addition to user apps, there is a section for pre-installed software. It is located along the path /system/app or /system/priv-app. The difference between them lies in the level of privileges: applications from priv-app have access to critical system functions, such as managing contacts or calls, while regular system utilities are located in the folder app.
To view the contents of system folders, use advanced file managers like Root Explorer or Solid Explorer with root access enabled.
Differences between Android versions and access to data
With the release Android 10 and especially Android 11 the security policy Google tightened. If previously any file manager could freely read the contents of a folder Android/data on the internal drive, now access to it is limited. This was done to prevent third-party apps from tracking user actions.
Now, in order to get to the directory /sdcard/Android/datawhere the cache and files of specific games or instant messengers are stored, you must provide special permissions through the system menu or use ADB. A regular explorer will simply show an empty folder or give an access error.
- ๐ Android 9 and below: Full free access to all folders through any explorer.
- ๐ Android 10: The first restrictions on writing to system partitions have appeared.
- ๐ก๏ธ Android 11-14: Strict isolation folders
data, access only through special permission or root.
The changes also affected the path to generalized data. Previously, all files were publicly available on a memory card or in internal storage. Now the mechanism Scoped Storage (shared storage) forces applications to work only in their own โsandboxesโ, without seeing their neighborsโ files without the userโs explicit consent.
Viewing paths through developer settings and ADB
If you do not have root access, but need to find out the exact path to the installed application or copy its APK file, the best tool is debugging USB. To do this, you need to activate developer mode in the phone settings and connect it to a computer with a set of tools installed. Android SDK Platform-Tools.
The command adb shell pm list packages will display a list of all installed packages. To find the path to a specific application, use the command adb shell pm path com.package.name. The system will return the exact address of the file in the format package:/data/app/....
adb pull /data/app/com.example.app-1/base.apk C:/Backup/
This command allows you to copy the app installation file from your phone to your computer, even if you do not have rights to read the entire folder directly through Explorer. This method is often used to save old versions of applications that have been removed from the store.
โ ๏ธ Attention: ADB commands are executed with elevated privileges. An error in the syntax of the delete command (
rm) can erase important data beyond recovery.
Using the console requires care. A typo in the package name can result in an attempt to access a non-existent file or, in the worst case, a system error. Always double-check the package name before entering commands.
Data folder structure and application cache
In addition to the installation file itself, each application creates a huge amount of temporary and permanent data. They are stored in two main locations: private (/data/data) and public (/sdcard/Android/data). Understanding the difference between them is critical when clearing memory.
The private directory /data/data/[package_name] databases, settings, logins and passwords are stored. Only the application itself and the system have access here. Even with root access, changing files in this folder can reset progress in the game or delete chat history.
| Data type | Storage path | Access without Root | Can be deleted |
|---|---|---|---|
| Installation file (APK) | /data/app |
No (ADB only) | No (via Settings) |
| Private data | /data/data |
No | No (reset settings) |
| Cache and files | /sdcard/Android/data |
Limited (Android 11+) | Yes (safe) |
| Shared files | /sdcard/Download |
Full | Yes |
The folder /sdcard/Android/data is intended for storing a cache of images, downloaded levels in games and offline maps. Clearing this directory frees up gigabytes of space, but the application will be forced to download the data again the next time it is launched.
What is the obb folder?
The folder /sdcard/Android/obb contains additional resource files for heavy games. If you delete the contents of this folder for a specific game, it will stop running and will require re-downloading several gigabytes of data.
Manual management of files with root access
Having superuser rights (Root) removes all restrictions on viewing and editing files. You get full control over the /system i /datasection. This allows you not only to see where applications are located, but also to freeze system software, remove advertising from system applications, or force apps to be transferred to a memory card.
To work with files in this mode, specialized managers are required, such as Root Explorer, MiXplorer or Solid Explorer. When you first start it, they will ask you to confirm that you have been granted superuser rights. After this, you can go to the root of the file system.
- ๐ Search for duplicates: You can find the same APK files in different update folders.
- ๐๏ธ Deep cleaning: Removing residual files of deleted applications from
/data/data. - ๐ฆ Modification: Replacing icons or resources inside the APK without repackaging.
However, with power comes responsibility. Accidentally changing access rights (chmod) to a system folder can make the phone inoperable. For example, if you change the owner of a folder /data, the system may refuse to boot, requiring a full reset to factory settings.
โ ๏ธ Attention: Obtaining root access will void the warranty on the device and makes it impossible to use banking applications without additional manipulations (Magisk Hide).
โ๏ธ Preparing to work with root access
Transferring applications and working with external memory
Many users want to move heavy applications to a memory card microSDto free up space in the internal storage. In modern versions Android this function is unstable or absent altogether. The system allows you to transfer only part of the application data, while the main code remains in the internal memory.
When formatting a memory card as internal storage (Adoptable Storage), the system encrypts it and creates a virtual partition there. In this case, applications will be installed there automatically, but it will be impossible to remove the card without losing data and resetting the phone.
If you use the card as portable storage, then applications can only save their media files there (photos, music, downloads). Executable files (.apk) and libraries (.so) will still take up space in the internal memory section. /data internal memory.
Transferring an application to a memory card only partially saves space: the main files remain inside, only the cache and resources are moved outside.
To actually transfer the entire application body to the card, third-party utilities are often required type App2SD and the presence of root access. They create symbolic links, tricking the system into thinking that the files are inside, although they are physically located on the flash drive.
Frequently asked questions about application locations (FAQ)
Is it possible to copy an APK file without root access?
Yes, it is possible. You can use extractor applications from Google Play that create a copy of the installed APK and save it to an accessible folder, for example, Downloads. You can also use the command adb pull via a computer.
Why is the Android/data folder empty in my Explorer?
Starting from Android 11, access to this folder for third-party file managers is blocked by the security system. To see the files, you need to give the explorer special permission through the system folder selection window or use the system's built-in file manager.
Where are WhatsApp and Telegram data stored?
Until recently, they were located in /sdcard/WhatsApp i /sdcard/Telegram. In new versions of applications, the data has moved to /sdcard/Android/media/com.whatsapp and a similar folder for Telegram, following the new data storage rules.
Is it safe to delete files from the data/app folder?
No, it is not safe. Manually deleting files from there will cause the application to disappear from the list of installed ones, but the system may not process this deletion correctly, leaving โghostโ entries in the registry. Delete applications only through the settings.
How to find the folder size of a specific application?
Go to Settings โ Applications, select the desired app and click โStorageโ. It will show the separate size of the application itself, user data and cache. This is more accurate than measuring the folder manually.