Smartphone owners are often faced with the mysterious disappearance of free space, even after deleting photos and music. Fundamental questionwhich arises in this situation: where exactly is the data physically written when downloading a new app? Understanding the Android file system structure is key to managing your device's memory wisely. Unlike desktop computers, where the user himself selects drive C or D, the mobile operating system works on different principles.
By default, modern versions of Android tend to install all applications in internal memory devices, allocating a special system partition for them. This is done to improve security and stability, since external media can be removed at any time. However, depending on the smartphone model, operating system version and access rights, installation paths may vary, creating confusion for users accustomed to the old logic of gadget operation.
Understanding where exactly your software “lives” is necessary not only for the sake of curiosity, but also for effective optimization. Knowing the exact path, you can manually remove heavy junk, transfer data, or diagnose startup errors. Let's take a closer look at the Android storage architecture and look at all possible file placement options.
Internal memory architecture and system partitions
The Android file system is based on the Linux kernel, which implies a strict directory hierarchy. When you download an app from Google Play or install an APK file, the operating system places its executables and libraries in a protected area known as /data/app. Access to this partition without root access (superuser rights) is closed to ordinary file managers, which protects the system from accidental damage to critical components.
In addition to the executable file, each application creates its own unique data directory in the folder /data/data (or /Android/data in the user zone). This is where databasescache, settings and temporary files are stored. It is this folder that often grows to gigantic proportions, especially for instant messengers and social networks, consuming the lion's share of the available space.
System applications pre-installed by the manufacturer occupy another section - /system/app or /system/priv-app. These files are located in the read-only partition, which cannot be modified without unlocking the bootloader. Understanding the difference between user and system applications is important when trying to free up space: it is impossible to remove standard software in the usual way.
⚠️ Attention: Attempts to manually delete files from system partitions
/systemor/datathrough third-party file managers with root access can lead to a “bootlap” (cyclic reboot) and complete inoperability devices.
For the average user, the structure looks simpler: there is “Internal storage”, which is seen by the file manager, and a hidden system zone. Applications can store part of their data (for example, a cache of media files) in a public folder /storage/emulated/0/Android/data, access to which is open, but with restrictions in new versions of Android.
Installation paths: standard Android directories
If we consider the installation path in detail, then for each application a unique folder is created with the name of the package, for example, com.whatsapp. Inside this directory there are subfolders files, cache and code_cache. This is where downloaded avatars, temporary videos and other digital garbage are saved, which do not disappear after closing the app.
It is important to distinguish between the concepts of “application memory” and “cache”. The application memory contains your personal data, correspondence and progress in games, while the cache is temporary files to speed up work. Clearing the cache is safe, while clearing data returns the application to the “as after installation” state.
In modern versions of Android (starting with 11), access to the folder Android/data on the internal drive was limited to standard file managers for privacy purposes. Now, viewing the contents of these folders often requires the use of specialized tools or a connection to a computer in file transfer mode (MTP).
Why is the Android/data folder hidden?
Starting with Android 11, Google has limited access to this folder for third-party applications to prevent spying on user actions and collecting data about what applications are installed on the device.
The path structure may look confusing, but it ensures that applications are isolated from each other. One application cannot simply read the data of another unless the system or user explicitly allows it. This is the basic principle sandboxingthat ensures the security of the platform.
Using an external SD card for installation
Many users want to know whether it is possible to transfer the application to a memory card to free up internal space. Formally, such a possibility exists, but it is severely limited by Google policy. Starting with Android 6.0, the “Adoptable Storage” function appeared, which allows you to format an SD card as internal storage, but smartphone manufacturers often block this option.
If the transfer function is available, part of the application data (resources, graphics) can be moved to external media. However, the executable .apk and important system libraries will still remain in the internal memory. This is done so that when the card is removed, the application does not stop working completely.
- 📱 Hybrid storage: Some of the data is on the card, some is inside.
- 🔒 Encryption: When used as internal memory, the card is encrypted and cannot be read on other devices.
- ⚡ Speed: Application speed may be reduced if the SD card has a low write speed class.
Use UHS-I or UHS-II class memory cards with high write speeds if you plan to transfer application data to them. Cheap cards may cause lag in the interface.
It is worth noting that widgets and some background services may stop working correctly if the application is moved to an SD card and the card is accidentally removed or damaged. Therefore, it is better to leave critical applications in the internal memory.
How to change the default installation location
Changing the default installation path is not possible on all devices, but it’s worth checking the settings. Some shells (for example, MIUI or OneUI) have hidden engineering menus or developer settings that allow you to force new applications to be sent to the SD card.
To access advanced settings, you must activate developer mode. To do this, you need to click on the build number several times in the "About phone" section. After activation, the “For Developers” item will appear in the menu, where you can find the option Force allow apps on external (Force to allow applications to be placed on an external drive).
adb shell pm set-install-location 2
This command, executed through the computer and the ADB utility, attempts to set the priority of the external memory card. However, if the application is marked by the developer as "not portable", the system will ignore this command. The value 0 returns the default settings (internal memory), 1 — internal, 2 —external.
☑️ Checking transferability
It is important to understand that even if the priority is successfully changed, the system itself decides which components can be transferred. It often turns out that only a small part of the data is transferred, and the main space is still occupied in the internal storage.
Memory analysis: where gigabytes are hiding
To determine exactly how much space an application takes up and where it is located, it is best to use the built-in tools of the system. In the section Settings → Memory or Settings → Applications you can see a detailed breakdown. The system shows the size of the application itself, the amount of user data and the cache size.
For a deeper analysis, you can use utilities like DiskUsage or Storage Analyzer. They visualize the file system as a graphics card, where the size of the squares is proportional to the size of the files. This allows you to instantly find “eaters” of space that could be lost in the depths of system folders.
| Data type | Location | Can be deleted | Impact on operation |
|---|---|---|---|
| APK file | /data/app | No (only deleting the application) | Critical (the application will not start) |
| Cache | /data/data/.../cache | Yes (safe) | Minimum (download again) |
| User data | /data/data/.../databases | Only with caution | High (loss of progress/settings) |
| Shared files | /storage/emulated/0/... | Depends on the file | Average (loss of photos/documents) |
Analyzing the table, it is easy to notice that the bulk of the garbage is generated in the cache and shared files sections. Regular cleaning of these areas allows you to keep the system in good shape without the need to remove the applications themselves.
Problems with paths and their solutions
A frequent problem is the “Not enough space” error, even when there seems to be a lot of free gigabytes. This may be due to fragmentation of the file system or the fullness of a specific system partition reserved for applications, while the partition for media files is empty.
The solution may be to clear the Google Play Store cache and Google Play services. To do this, you need to go to Settings → Applications → Google Play Store → Storage → Clear cache. It also helps to remove download files for large updates, which sometimes remain hanging in the system.
⚠️ Attention: If, when installing an application, you receive the error “Package is damaged” or “Signature conflict,” this may mean that remnants of the old application remain in the system folders. A complete removal via ADB or a factory reset is required.
In some cases, re-creating the internal memory markup file helps, but this is a complex procedure that requires root access. The easiest way is to back up important data and perform a full reset of the device to factory settings, which is guaranteed to correct file system errors.
The most effective way to deal with lack of space is not to transfer applications, but to regularly clear the cache of heavy apps (Telegram, Instagram, TikTok) through their internal settings.
Do not forget that some applications (for example, navigators or streaming services) allow you to choose the path for downloading offline maps or music in your own settings. Always check the internal settings of “heavy” apps so that they do not clog the system partition by default.
Why do applications take up more space after updating Android?
When updating the operating system, the libraries and frameworks that applications use often change. Older versions of apps may create new compatibility files or duplicate resources, which temporarily increases the footprint. Over time, the system should optimize.
Is it possible to transfer WhatsApp to an SD card?
Officially - no. WhatsApp stores a database of messages in internal memory to ensure performance and security. Transferring the app itself to the card is partially possible, but the database of media files will remain inside or require complex configuration of symbolic links (root).
What is an .obb file and where is it located?
.obb files contain additional resources for heavy games (graphics, sounds). They are located along the path /Android/obb/package name/. You cannot delete them manually - the game will stop launching and will require re-downloading the data.
How to find the exact path to the application file without root?
See the full system path without root access /data/app impossible. However, by connecting the phone to a PC in MTP mode, you can see the contents of the Android/data and Android/obbfolders, where user data and game cache are stored, respectively.