Have you ever wondered where exactly Android installs applications after clicking the โInstallโ button? It turns out that there are several hidden folders in the system, and the path depends on the OS version, user settings, and even the smartphone model. For example, on Samsung Galaxy s One UI storage logic may differ from โpureโ Android 14 on Google Pixel.
In this article we will look in detail:
1) Where APK files and application data (including cache and settings) are physically stored.
2) How to check how much space each application takes up.
3) Is it possible to transfer apps to an SD card and is it worth doing it.
4) What is it /data/app and why it cannot be seen without root access.
5) How to clear memory of โgarbageโ remnants of deleted applications.
If you donโt have enough space on your phone or you just want to understand the system, this instruction will help. We will not go deep into the technical jungle, but we will give clear answers with examples for different versions of Android.
1. Standard paths for installing applications in Android
By default, all applications from Google Play or third-party sources (APK files) are installed in internal memory of the device. The specific path depends on the version of Android and the manufacturer, but the general structure looks like this:
- ๐
/data/app- the basic data of installed applications is stored here (required APK files and basic data of installed applications (required root access for view). - ๐
/data/dataโ folder with user data (settings, game saves, cache). Each application has its own subfolder here (for example,com.whatsapp). - ๐
/data/app-asec- used for encrypted applications (for example, banking or with DRM protection). - ๐
/system/app- system applications, pre-installed by the manufacturer (removed only with root access).
For example, if you installed Telegram from Play Market, its APK file will be in /data/app/com.telegram-1/apk/base.apk, and chats and media files will be in /data/data/com.telegram/files.
Why are these folders hidden? Android restricts access to /data for security reasons. Without root you will not see them even through the file manager, but you can view the used space in the system settings.
adb shell ls /data/app
This will show a list of installed applications, but will not give access to their files.-->
2. How to check how much space an application takes up
No need to delve into system folders to find out the โweightโ of the app. Android provides built-in tools:
- Open
Settings โ Applications(on some devices -Settings โ Applications and notifications). - Select the desired application (for example, Facebook or Google Chrome).
- Tap on the item
StorageorMemory.
Here you will see two key numbers: Application size - this is the APK file itself + updates. User data - cache, settings, downloads (for example, offline maps in Google Maps).
| Data type | Where is it stored | Is it possible to clear |
|---|---|---|
| APK file | /data/app/[package_name] |
No (only by deleting the application) |
| Cache | /data/data/[package_name]/cache |
Yes ("Clear cache" button) |
| User data | /data/data/[package_name]/files |
Yes ("Clear data" button) |
| OBB files (additional game data) | /sdcard/Android/obb/[package_name] |
Yes (manually or through settings) |
Important: some applications (for example, Netflix or Spotify) download media files to /sdcard/Android/data/[package_name] โthis folder can be cleared manually through any file manager.
Clearing the cache is safe and does not delete important data (logins, game saves). Clearing โUser Dataโ will reset the application to factory settings!
3. Is it possible to install applications on an SD card?
Yes, but with reservations Android 6.0 Marshmallow, Google. limited this function for security reasons. Now there are two scenarios:
- ๐ Partial transfer: some application data can be moved to the SD card (for example, game cache). This is done manually in the application settings (item
Storage โ Edit โ SD card data-i="115">: impossible without root access. The system blocks the installation of APK files on external media.). - ๐ซ Full APK transfer: not possible without root access. The system blocks the installation of APK files on external media.
On devices with Android 9.0+ even partial transfer may be blocked. For example, Samsung has completely removed this option in One UI 5.0, and Xiaomi leaves it only for selected applications.
โ ๏ธ Attention: Transferring applications to a class SD card UHS-I (even the fastest) can cause lags. The system is not optimized for working with external media as the main storage.
If you are critically short of space, it is better:
- ๐๏ธ Remove unnecessary applications (use
Settings โ Storage โ Free up space). - โ๏ธ Transfer media files (photos, videos) to the cloud (Google Photos, Yandex Disk).
- ๐ Use function
Adoptable Storage(turns the SD card into part of the internal memory), but this formats the card and makes it incompatible with other devices.
How to enable Adoptable Storage (Android 6-8 only)
This feature is hidden in newer versions of Android, but on older devices it can be activated:
1. Insert an SD card (minimum Class 10).
2. Open Settings โ Storage.
3. Tap on SD card โ Settings (โฎ) โ Format as internal memory.
โ ๏ธ After formatting, the card cannot be used on other devices without complete cleaning!
4. Where are applications from APK files installed?
If you download APK from the site (for example, APKMirror) and install manually, the rule is the same: by default the file will go to the internal memory. However, there are nuances:
- ๐ฅ Download APK: the file is first saved in
/sdcard/Downloador the folder you select. - ๐ง Installation: after tapping on the file, the system copies it to
/data/app(as well as applications from Play Market). - ๐ Blocking: Android prohibits installing APK from external media if the item is not enabled in the settings
Installation from unknown sources(path:Settings โ Security).
Some file managers (for example, Solid Explorer) allow you to select a folder to download the APK, but you cannot install the application directly on the SD card โthe system always copies it to the internal memory.
Exception: on devices with with root access you can manually transfer the APK to /system/app or to the SD card using commands ADB or applications like App2SD. However, this is risky: incorrect manipulations will lead to the crash of the application or system.
Check the hash of the file (for example, via Hash Droid)|Enable installation from unknown sources ONLY for a trusted file manager|Do not install APK if the file size is suspiciously small (may be a virus)|After installation, disable the permission for unknown sources-->
5. How to free up space from deleted applications
Even after uninstalling the application, โtailsโ may remain on the system:
Cache (sometimes not cleared automatically).
Data folders in /sdcard/Android/data or /sdcard/Android/obb.
Residual files in /data/data (requires root access to delete).
To completely clear traces:
- Uninstall the application in the standard way (
Settings โ Applications โ Uninstall). - Open a file manager (for example Files by Google) and manually delete the folders:
/sdcard/Android/data/[package_name]/sdcard/Android/obb/[package_name] - For deep cleaning, use utilities like SD Maid (requires root for a full scan).
For example, after deleting PUBG Mobile in the folder /sdcard/Android/obb/com.tencent.ig a file of size 1โ2 GB may remain - it can be safely deleted.
โ ๏ธ Attention: Do not delete folders of current applications in /sdcard/Android/data - this will lead to malfunctions in their operation. Clean only the folders of uninstalled apps.
6. Features on different versions of Android
The application storage logic has evolved along with Android. Here are the key changes:
| Android version | Storage features | SD card support |
|---|---|---|
| Android 5.0 Lollipop | APKs are installed in /data/app, data - in /data/data |
Full transfer to SD is possible |
| Android 6.0 Marshmallow | Entered Adoptable Storage (SD as internal memory) |
Partial transfer, complete - only through root |
| Android 9.0 Pie | Restrictions on access to /sdcard for applications |
Transfer to SD is blocked for most applications |
| Android 10+ | Scoped Storage: applications see only their files in /sdcard |
Transfer to SD is only possible for media files |
On Android 13+ Google has tightened the rules: applications are prohibited from creating files outside their folders in /sdcard, and access to shared directories (for example, Download) requires explicit user permission.
Manufacturers are also making changes: Samsung in One UI hides the option to transfer to SD, but allows you to expand the memory via Samsung Cloud. Xiaomi in MIUI leaves partial transfer, but blocks it for system applications. Google Pixel completely abandoned support for SD cards.
โ ๏ธ Attention: Storage settings may vary depending on the firmware. For accurate information, check the section Settings โ Storage on your device.
7. Myths and misconceptions about installing applications
There is a lot of erroneous advice floating around on the Internet. Let's look at the most popular ones:
- ๐ซ "You can install all applications on an SD card" - no, starting from Android 6.0 this is limited. A complete transfer is only possible with root or via
Adoptable Storage(which is not always safe). - ๐ซ "APK files can be launched from SD cards without installation" - no, Android requires you to copy the APK to the internal memory before launching.
- ๐ซ "Clearing the cache deletes accounts and saves" โno, the cache (
/data/data/[package]/cache) contains temporary files (for example, image thumbnails), not user data. - ๐ซ โThe /data/app folder is accessible without root.โ โno, this is a system directory with limited rights. Even through ADB you will only see a list of packages, but not the contents.
Another common misconception: "Moving applications to the SD card speeds up the phone". In fact, the read/write speed of microSD (UHS-I) is 2-5 times lower than that of built-in memory (UFS 3.1 or eMMC 5.1). This can cause stuttering, especially in games.
If you do not have enough space, it is better:
โ Buy a smartphone with more memory (for example, 256 GB instead of 64 GB).
โ Use cloud services to store media files.
โ Regularly clear the cache and delete unused applications.
FAQ: Frequently asked questions about storing applications
Is it possible to install Android on an SD card as USB flash drive with Windows?
No, Android does not support booting the system from external media. The SD card can only be used for storing data, but not for installing the OS itself. The exception is some custom firmware (for example, LineageOS), but this requires deep knowledge and risks โbrickingโ the device.
Why is the space not freed up after deleting the application?
Probably, there are:
1) Files in /sdcard/Android/data or /sdcard/Android/obb โdelete them manually.
2) Residual data in /data/data โrequires root access to clear.
3) System cacheโtry rebooting the device or using a cleaning application (for example, CCleaner).
How to find the full path to the APK file of an installed application?
Without root access, the exact location of the APK cannot be seen, but you can use ADB:
adb shell pm path com.example.app
Replace com.example.app with the name of the package (you can find it out through App Inspector or adb shell pm list packages).The answer will be in the format:
package:/data/app/com.example.app-1/base.apk
Is it possible to transfer system applications to an SD card?
No, system applications (for example, Google Play Services or Samsung Knox) in /system/app and cannot be transferred. They can only be disabled (Settings โ Applications โ Disable) or deleted with root access (which is not recommended due to the risk of system instability).
What are OBB files and what can you do? Should I delete them?
OBB (Opaque Binary Blob) - this is additional data for games and applications (for example, 3D models, levels, high-quality textures). /sdcard/Android/obb/[package_name]. You can delete them, but the application will either stop working or download them again the next time you start it. For example, Genshin Impact weighs ~1 GB in Play Market, but after installation it downloads another ~15 GB of OBB files.