Users are often faced with the need to find specific application files, whether for data transfer, garbage cleanup, or backup. However, the file system Android is more complex than the usual Windows, and is hidden from the eyes of the average user. Understanding exactly where installation packages and user data are located opens up opportunities for deep customization of the device.
In this article we will analyze the directory structure in detail, explain the difference between system and user applications, and also show how to access protected areas of your smartphone's memory.
Data storage architecture in Android
The file system of mobile devices based on Linux has a hierarchical structure, where each element performs a strictly defined function. The main memory sections are divided into system and user, which ensures data security and stability of the operating system. Applications do not just โlieโ in one folder, they are divided into several components: the installation package itself, executable files and user data.
The key concept here is the separation of access rights. Conventional file manager apps only see that part of the storage that is intended for media files and documents. The system folders, where the application core itself resides, are hidden by default. To access them you need to understand the logical directory structure /system, /data and /sdcard.
It is important to note that with the release of new versions Android (starting with version 11), the security policy has become more stringent. Now access to the folder Android/data for third-party applications is limited, which makes it difficult to directly view the contents without special rights or utilities.
โ ๏ธ Attention: Directly editing files in system partitions may lead to the smartphone not working. Always create a backup copy before making changes to the root directories.
Different vendors such as Samsung, Xiaomi or OnePlusmay slightly change the structure of some service folders, but the basic principles of the file system remain the same throughout the ecosystem.
Use a file manager with support root access, for example Solid Explorer or Root Explorer, for safe browsing of system partitions.
Location of system and user APK files
When you install a app from Google Play or download a APKfile from the browser, the system distributes its components to different directories. The installation package itself (an archive with the .apk extension) after installation often remains in the original download folder, but its executable copy is moved to the system partition.
All pre-installed and system applications are stored in the directory /system/app. Here are the apps necessary for the phone to work: dialer, contacts, settings, launcher. Removing files from here without proper preparation can โbrickโ the device, since the system will lose critical components.
Applications manually installed by the user are usually located in the folder /data/app. This directory stores optimized versions of apps, ready to run. The folder names here may look strange, containing hash sums (for example, com.whatsapp-1), which is done for uniqueness and security.
- ๐
/system/appโ storage for standard system utilities that cannot be removed without root access. - ๐
/system/priv-appโa section for privileged applications with expanded access to the system (Google services, Play store). - ๐
/data/appโthe main place where applications installed by the user are stored in Android.
It is worth considering that modern versions of Android use a mechanism A/B updates and dynamic partitions, which can change the physical location some libraries, but the logical paths for the user remain the same.
Application data folders: where the saves and cache are located
The installation file itself is just the tip of the iceberg. Much more space is occupied by the data that the app generates during operation: game saves, settings, avatars, downloaded maps and cache. These files are stored in the user memory section.
The main path to application data is /sdcard/Android/data. Here, a separate folder with the package name is created for each app (for example, com.spotify.music). Inside you will find subfolders files and cache. This is where gigabytes of temporary files often accumulate, which can be safely deleted to free up space.
However, there is also a more hidden storage - /data/data. This directory is only available if root accessis available. It stores databases (databases), general settings (shared_prefs) and private application files. Only the application itself and the superuser have access to this folder.
/data/data/com.example.app/databases/main.db
If you are trying to transfer saves from a game to another phone, you need to look for files in these directories. Copying the folder with the package name to a new device can often restore progress, although modern games increasingly use cloud saves.
โ๏ธ Search and clear application data
Where heavy files and game cache (OBB) are saved
Many modern games and resource-intensive applications do not fit into one APK file. Additional resources: textures, models, audio tracks are stored in separate archives of the OBB (Opaque Binary Blob) format. This allows you to update the game content without reinstalling the main application.
These files are strictly regulated and are stored in the folder /sdcard/Android/obb. The structure here is similar to the data folder: for each app a subdirectory is created with the package name. Inside there is a file with the .obb extension, which can weigh several gigabytes.
When manually installing games (for example, downloaded from torrents), the user often has to unpack the cache himself. If you forget to place the OBB file in the correct directory, the game will launch, but will immediately give an error loading resources or show a black screen.
| Data type | Folder path | Access without Root | Can I delete? |
|---|---|---|---|
| Installation APK | /data/app | No (only via ADB) | No (will break the application) |
| Cache and files | /sdcard/Android/data | Yes (partially) | Yes (will reset settings) |
| Game cache (OBB) | /sdcard/Android/obb | Yes | Yes (the game will not start) |
| Private data | /data/data | No | No (only for reset) |
Some old applications or specific utilities can create their own folders in the root of the internal drive (for example, folder Telegram or Download), but the trend is towards unifying and placing everything inside a standardized folder Android.
Access features in Android 11, 12, 13 and later
Starting with Android 11, Google has implemented a mechanism Scoped Storage (Isolated storage). This is a major security policy change that limits application access to the file system. Now file managers cannot just open a folder Android/data and show its contents.
When you try to access this directory through a standard explorer, you will see an empty folder or a message about no access. This is done to prevent malware from stealing your data from other applications or changing files unnoticed.
There are several ways to bypass this limitation. The first is to use the manufacturer's built-in file manager, which sometimes has extended rights. The second is to use special utilities that request access through the system interface SAF (Storage Access Framework).
โ ๏ธ Attention: Interfaces and file access capabilities may change with each firmware update. Check the latest ways to bypass restrictions in the official documentation of your smartphone model.
For advanced users, it is possible to grant special permissions via a computer using commands adb, which returns full control over the file system without the need to obtain root access.
Command for providing full access via ADB
Connect your phone to the PC, enable USB debugging and enter the command: adb shell pm grant com.files.manager android.permission.MANAGE_EXTERNAL_STORAGE (replace the package name with your file manager).
How to find and manage application files
To navigate through hidden sections and There are specialized tools for managing files for ordinary users. Standard galleries and explorers often hide unnecessary things so as not to confuse the smartphone owner, but optimization tasks require a professional approach.
One โโof the most powerful tools is the utility ADB (Android Debug Bridge). It allows you to manage files from your computer, copy them, delete them and change access rights. This is the most reliable way to work with system partitions without the risk of accidentally deleting important files through the touch screen.
If you do not want to connect a cable, use file managers with support for plug-ins or built-in access to system folders. Popular solutions like Total Commander with the Root plugin or Mixplorer allow you to see the entire directory structure.
- ๐ Use the search by package name to quickly find the desired folder among hundreds of others.
- ๐๏ธ Clean folder
cacheregularly, but do not touch the folderfilesif you do not want to lose the settings. - ๐ฆ When transferring games, be sure to copy both the folder
dataand the folderobbto the appropriate places on new device.
Remember that chaotic deletion of files from a folder /data may cause the application to stop launching or to constantly crash. In this case, only a complete reinstallation of the app will help.
It is safest to clear the cache through the settings of the application itself or the "Storage" system menu, and not manually delete files in Explorer.
Frequently asked questions (FAQ)
Is it possible to transfer applications to an SD card in modern Android?
In the latest versions of Android, the function of transferring applications to a memory card (Adoptable Storage) is often disabled by manufacturers or is unstable. The system allows you to transfer only part of the data, and the application core itself remains in the internal memory for speed.
Where are WhatsApp and Telegram stored, if not in Android/data?
Messengers often create their own folders in the root of the internal drive (for example, /WhatsApp/Media) so that the user can easily find photos and videos. However, with the update to Android 11, they also began to move to the standard folder /Android/media.
What to do if the Android/data folder is empty?
Most likely, you are using a standard file manager, which is blocked by the security system. Try installing a third-party explorer (for example, Files by Google or Solid Explorer) or connect your phone to the computer in file transfer mode.
Is it safe to delete folders of deleted applications?
Yes, if an application has already been deleted through settings, its folders are in /sdcard/Android/data and obb become garbage. You can safely delete them manually if automatic cleaning does not work.
Having figured out where applications are stored in Android, you gain full control over your device. This knowledge helps save space, transfer data between smartphones and better understand the operation of the mobile operating system.