Users of modern smartphones rarely think about the file structure of their operating system until the need arises to free up space or recover deleted data. However, the question of where exactly apps are installed on Android is fundamental to understanding how the device works. Unlike desktop Windows or macOS, the mobile OS file system has a strict hierarchy and delimitation of access rights, which directly affects where app files are physically located.
By default, the system automatically distributes software components across different memory sections. The user sees only a shortcut on the desktop, but โunder the hoodโ there is a complex separation of executable codes, libraries and user data. Understanding this structure allows you to effectively manage memory and avoid mistakes when trying to manually delete files.
In this article, we will take a detailed look at the logical and physical paths in which Android places packages .apkand also explain the differences between system and user applications. You will learn why some folders are hidden from the eyes of the average user and what tools are needed to work with them.
Main directory for installing custom applications
All applications that you download from Google Play or install manually via APK files, by default, end up in a special protected section of the system. This is not just a folder on the internal memory that can be opened through a standard file manager without additional rights. The key path for third-party software is /data/app.
Inside this directory, a separate subfolder is created for each installed package. The name of this folder usually corresponds to the application identifier (package name), for example com.whatsapp-1 or com.instagram.android-2. The number at the end of the name may change when updating the app, since the system creates a new version of the directory before replacing the old one.
Directly inside this folder there is a file with the extension .apk (or .base.apk), which is the installation package. It is important to understand that simply copying this file to another location and running it as a normal installer is often impossible without the correct signature and system context. Access to the section /data is closed to regular applications for security reasons.
If you plan to make a backup copy of installed apps, simply copying the APK file from /data/app may not be enough - you will lose all login data and settings.
It is worth noting that in modern versions of Android (from 10 and above) the structure became even more complex due to the introduction of APEX technology and the division of the code into base APK and configuration splits. Therefore, in the application folder you can see not one file, but a whole set of resources optimized for the specific screen resolution and processor architecture of your smartphone System applications and the Vendor section.
System applications and Vendor section
Unlike user software, apps preinstalled by the device manufacturer or included in the operating system itself are stored in other sections. These applications are part of the firmware and are protected from accidental deletion. Their main placement path is /system/app and /system/priv-app.
The distinction between these two directories is critically important. In folder /system/app there are common system utilities, such as a calculator, calendar or standard browser. They work with normal access rights. At the same time, /system/priv-app there are critical components that require elevated privileges: the phone book, system settings, Google Play services and task manager.
What is dangerous about the priv-app folder?
Removing applications from this directory manually can cause the phone to stop booting (bootloop) or will lose the ability to make calls. Recovery will require flashing the device.
In addition, on many devices with custom shells (MIUI, OneUI, ColorOS), manufacturers add their services to the /vendor/app or /product/appsection. This allows you to update some system components regardless of the main Android version. The files here also have the format .apk, but they are signed with the keys of the manufacturer, not the application developer.
โ ๏ธ Attention: An attempt to delete or replace files in the /system or /vendor partitions without superuser rights (Root) is impossible. Even if you have root access, an error in one byte can make the device inoperable.
Where the data and application cache are stored
The installation file itself is just the โskeletonโ of the app. All dynamic information: your correspondence, saved games, account settings and downloaded pictures is stored separately. For these purposes, the operating system allocates a directory /data/data.
The folder structure here mirrors the structure of installed applications. For each package, a directory is created with its name, inside which there are SQLite databases, SharedPreferences (settings in XML format) and other service files. This is where your logins and passwords are stored in encrypted form.
The cache is worth mentioning separately. Temporary files that speed up the work of apps (video previews, image thumbnails, temporary downloads) are stored by the system in /data/cache or in a subfolder cache inside the directory of a specific application. Clearing the cache is safe and does not delete your personal data, unlike data wipe (Clear Data), which erases the entire contents of the folder /data/data.
Users often confuse these concepts, believing that deleting the cache will free up gigabytes of space forever. In fact, the cache tends to quickly recover during use applications. Real space freeing can only be achieved by deleting unused apps or clearing their complete data.
Storage features on an SD memory card
With the release of new versions of Android, the policy for working with external drives has become significantly stricter. If previously it was possible to freely transfer applications to a memory card through the settings, now this function is limited or completely hidden by manufacturers. However, the data may still be partially located on the SD card.
Modern systems use adaptive storage. When installing an application on a memory card (if the manufacturer allows it), the system formats the card as internal storage and encrypts it. In this case, the files end up in a hidden section /mnt/media_rw, which is not readable on the computer without special unlocking.
If the card is used as portable storage, then applications are not installed there. However, many apps (cameras, instant messengers, music players) save user content to a public folder Android/media or Android/obb on an external card. Files OBB (Opaque Binary Blob) often contain heavy resources for games and can take up several gigabytes.
| Data type | Main path (Internal memory) | Path on SD card (if allowed) | Access without Root |
|---|---|---|---|
| Installation file (APK) | /data/app |
/mnt/media_rw/.../app |
No (only via ADB) |
| User data | /data/data |
Rarely (depends on the application) | No |
| Application cache | /data/cache |
Android/data/.../cache |
Partially (Android 11+ limited) |
| Resources games (OBB) | /sdcard/Android/obb |
/sdcard/Android/obb |
Yes (full access) |
Starting with Android 11, access to the Android/data folder on the internal memory and SD card for third-party file managers is significantly limited by the Scoped Storage policy.
How to access system folders
Since standard tools do not allow to access root directories, enthusiasts and advanced users have to resort to special methods. The most common way is to receive root access. This gives complete control over the file system, allowing you to view, edit and delete files in /system and /data.
To work with Root access, file managers with advanced functions, such as Root Explorer, Solid Explorer or FX File Explorer, are usually used. After granting superuser rights, these apps can mount partitions in read-write mode. However, this carries risks: accidentally changing access rights (chmod) can disrupt the system.
A safer, but more complex method is to use USB debugging (ADB). By connecting your phone to your computer, you can execute commands to view the contents of folders or even extract APK files of installed apps without having to root your device. This is an ideal option for creating backups.
adb shell pm list packages
adb shell pm path com.example.app
The command pm path will show the exact location of the installation file for a specific application. Knowing this path, you can copy the file to your computer using the command adb pull. This method works on any device with USB debugging enabled, regardless of the Android version.
โ๏ธ Preparing to work with system files
Memory problems and partitions full
One of the common problems of users is the message โNot enough memory space,โ even if there are many gigabytes free on the memory card. This happens because the partition /datawhere applications are installed has a fixed size equal to the amount of internal flash memory of the device. It is not always possible to completely transfer the app itself to an SD card.
The system partition can also become full if the user accumulates a huge number of system application updates or debugging logs. In such cases, the phone begins to work slowly, and new applications refuse to install. Clearing the Dalvik/ART cache (via Recovery Mode) sometimes helps free up space on the system partition.
โ ๏ธ Attention: Storage settings interfaces change with every Android update. What worked in Android 9 may not be available in Android 14. Always check the latest options in the Settings โ Apps menu of your specific device.
The best way to combat low space is to use disk space analyzers such as DiskUsage or Files by Google. They visualize the occupancy of partitions and help to find memory โeatersโ, which are often hidden in instant messenger folders (Telegram, WhatsApp), which store media files in internal storage and not on the card.
Check the /data/local/tmp folder periodically. Sometimes unsuccessful installations or scripts leave temporary files there that are not deleted automatically and take up space.
Frequently asked questions (FAQ)
Is it possible to transfer any application to a memory card?
Unfortunately, no. The ability to migrate depends on the decision of the application developer. If the app manifest does not specify the android:installLocation="preferExternal"flag, the system will not allow you to transfer it to an SD card using standard means. This can only be circumvented using root access and special utilities, but this can lead to unstable operation of the application.
Where are APK files stored after installation from Google Play?
After installation, the original APK file downloaded from the store is optimized and saved in the folder /data/app. The original installation file from the โDownloadโ folder can be deleted; it is no longer needed for the app to work. The system keeps a copy of itself for integrity checks and updates.
Why is the Android/data folder empty or inaccessible?
Starting with Android 11, Google has limited access to the folder for third-party applications Android/data for privacy purposes. Standard file managers do not see its contents. To view files, you need to use the built-in Files application from Google or grant access to a special manager through the system permission dialog.
What happens if you delete the application folder manually?
If you delete the folder from /data/app, the application shortcut will remain on the desktop, but when clicked, the system will display an error that the application is not installed. If you delete the folder from /data/data, the application will launch, but all your settings, logins and progress in games will be lost, as it will create new clean configuration files.