Where to store applications on Xiaomi: all possible ways to install on Android

Xiaomi smartphone owners often face the question: where do apps install on their devices? This topic is especially relevant when there is a lack of internal memory or after buying a new microSD card. Unlike iOS, where all applications are rigidly tied to the system partition, Android on Xiaomi offers more flexibility - but also more confusion.

In fact, there are at least four storage locations on Xiaomi: the main internal memory, partition. /data/app, virtual volume app_apex for system components and, under certain conditions β€” SD-And even if you install an application on a memory card, part of it still stays in the device's internal memory. Why this happens and how to manage this process, we'll see below.

════════════════════════════════════════════════════════════════════════════

1. Main installation location: /data/app partition in internal memory

By default, all applications on Xiaomi (as well as on any other Android devices) are installed in the secure /data/app section. This directory is not available without root rights, but it can be seen through ADB or file managers with advanced rights (for example, MiXplorer).

  • πŸ“¦ APK-Application files themselves (in hashed name folders)
  • πŸ—ƒοΈ Application data in /data/data/[package_name]
  • πŸ”„ Cash and temporary files in /data/app-lib (for older versions of Android)

The volume of this partition is strictly limited by the manufacturer. For example, on the Redmi Note 11 with 128 GB of memory, about 100 GB is allocated for /data, the rest is occupied by system files. You can find out the exact size in the settings: Settings β†’ About phone β†’ Memory.

⚠️ Note: If you see in the settings that internal memory is full but can’t find large files, check the folder. /data/app through ADB. Often there accumulate β€œjunk” data from remote applications that are not cleaned automatically.

Interestingly, even after deleting the application, its folder in /data/data It can remain β€” this is due to the mechanism of Android Package Manager. ADB team:

adb shell pm clear [package_name]

════════════════════════════════════════════════════════════════════════════

2. Virtual Volumes: Where System Applications Are Stored

System applications (such as Mi Browser, Security, or Gallery) are installed in protected areas rather than in /data/app.

  • πŸ›‘οΈ /system/priv-app β€” Privileged System Applications
  • πŸ”§ /system/app β€” standard system applications
  • πŸ“± /apex β€” modules APEX (starting with Android 10)

These partitions are mounted in read-only (ro) mode, so they can’t be changed without unlocking the bootloader and modifying the firmware. For example, on the Xiaomi 13 Pro, the /apex folder takes up about 1.2 GB – it includes critical components like com.android.art (ART runtime) or com.android.tzdata (time zone data).

SectionAppointmentApproximate sizeCan we change it?
/system/priv-appPrivileged system applications (e.g. Mi Account)300-500 MBOnly root
/system/appStandard system applications (e.g., Calculator)200-400 MBOnly root
/apexAPEX modules (e.g. com.android.os.statsd)800 MB - 1.5 GBNo (requires flashing)

If you are trying to remove the system application through ADB team pm uninstall -k --user 0 [package_name], It will disappear from the menu, but its files will remain in the menu. /system. Complete removal is possible only through de-dexed firmware.

πŸ“Š How you usually install apps on Xiaomi?
Only in the inner memory.
Nana SD-map, if there is one
I'll use both options.
I don't know where they're stored.

════════════════════════════════════════════════════════════════════════════

Installation on SD-map: myths and reality

Many Xiaomi users buy microSD cards in the hope of migrating apps to free up internal memory, but there are a few nuances:

  1. Not all applications support portability. The developer must explicitly specify android:installLocation="preferExternal" in the manifesto.
  2. Even the ported application takes up space in the internal memory, and only a fraction of the data (usually 50-70%) moves to the map.
  3. Productivity is falling. SD-maps (even UHS-I) slower-than-integrated memory UFS 2.2/3.1.

To transfer the supported application to the map:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Select the appropriate application.
  3. Press "Storage" β†’ "Change" β†’ "SD-map".

⚠️ Attention: On Xiaomi with MIUI 12+ portability SD It may be blocked for certain models (for example, POCO F4 or Redmi K50). This is due to Google’s Adoptable Storage Policy.

β˜‘οΈ Preparation SD-mapping

Done: 0 / 4

If there is no transfer option, you can try to cheat the system through ADB:

adb shell pm set-install-location 2

This command forces Android to install apps on SD by default, but doesn’t work on all Xiaomi devices.

════════════════════════════════════════════════════════════════════════════

4. Hidden folders and cache: where else are the applications "hiding"

In addition to the main storage locations, Xiaomi apps leave traces in other folders:

  • πŸ—‘οΈ /data/dalvik-cache β€” optimized DEX-files to speed up application launches.
  • πŸ“ /data/media/0/Android/obb β€” Additional game data (e.g., graphics packages for Genshin Impact).
  • πŸ”„ /cache β€” Temporary update files and system process cache.

The obb folder is especially important for gamers. For example, Call of Duty: Mobile can take up to 2 GB in this directory. You can clean it manually or through Settings β†’ Memory β†’ Cleanup.

Interesting fact: on Xiaomi with MIUI 14 file appeared /data/app-asec, where encrypted containers for applications installed on SD-This is part of the App Encryption mechanism, which protects data from being read on other devices.

How to completely remove the remnants of the application?
To erase all traces of the program, including cache and settings, follow: 1. Remove the application in the standard way. 2. Clear the folders. /data/data/[package_name] and /data/app/[package_name] through ADB: adb shell rm -rf /data/data/[package_name] adb shell rm -rf /data/app/[package_name] 3. Reset the device. 4. Check the folders. /sdcard/Android/obb and /sdcard/Android/data remainder.

════════════════════════════════════════════════════════════════════════════

5. How to change the default location

Xiaomi does not have a built-in option to change the location of the app (unlike some Samsung or Huawei devices).

Method 1: Formatting SD-maps as internal memory

This method (Adoptable Storage) allows you to combine SD-memory-card:

  1. Put the card in the slot.
  2. When a notification appears, select "Settings" β†’ "Internal Memory".
  3. Confirm the formatting (all data will be deleted!).

After that, the system will suggest installing apps on the map, but this method does not work on devices with MIUI 13+ due to Google's limitations.

Method 2: Using ADB

For advanced users, a team will be suitable:

adb shell pm set-install-location 2

Where:

  • 0 – Automatic selection (by default).
  • 1 is internal memory.
  • 2 - External memory (SD-map).

⚠️ Attention: POCO X3 Pro and other devices with MIUI 12.5 Enhanced this command may cause Google Play Services to crash!

πŸ’‘

If you often install heavy games, consider buying a Xiaomi smartphone with UFS 3.1 (such as the Xiaomi 12T Pro). read/write speeds are 3-5 times faster than microSD UHS-I, which is critical for modern games.

════════════════════════════════════════════════════════════════════════════

6.Memory Optimization: How to Free Up Space Without Deleting Applications

If your internal memory is full but you don’t want to delete apps, try these methods:

  • 🧹 Cache cleanup: Settings β†’ Memory. β†’ Cleaning (releases up to 1-3 GB).
  • πŸ”„ Transfer of media files: Photos and videos can be moved to SD-Map or cloud (Google Photos, Mi Cloud).
  • πŸ“¦ Archiving rarely used apps: Google Play has a β€œArchive” feature – it deletes the application but saves its data.
  • πŸ› οΈ Use Lite Versions: Replace Facebook with Facebook Lite, Messenger with Messenger Lite, etc.

Xiaomi has a Deep Cleanup feature with MIUI 14 (Settings β†’ Memory β†’ Deep Cleanup) that removes not only the cache, but also temporary files of system processes that are usually not affected by standard cleaning.

MethodPotential savingsRisks.
Clearing the cache1-3 GBApplications will be loaded longer at the next launch
Transferring media to SD5-20 GBSlow access to files
Archiving of applications0.5–2 GBInternet will be required for restoration
Use of Lite versions0.1–0.5 GB of applicationStripped functionality

πŸ’‘

The most effective way to free up space is a combination of cleaning the cache, transferring media files to the SD-map and archive rarely used applications, which saves up to 10-15 GB without losing functionality.

════════════════════════════════════════════════════════════════════════════

7. Frequent problems and their solutions

When working with memory on Xiaomi, users face typical errors:

Problem 1: β€œNot enough memory, but there is room.”

This is due to the fragmentation of the /data partition.

  1. Reset the device.
  2. Clear the cache through Settings β†’ Memory.
  3. If it doesn’t help, reset via Settings β†’ Additional β†’ Restore and Reset (pre-return!).

Problem 2: Appendices are not installed on SD-map

Possible causes:

  • The card is formatted as a portable storage (you need to select "Inner Memory").
  • The app does not support portability (check out Google Play under β€œDevelopers Information”).
  • The device is equipped with MIUI 13/14 with Adoptable Storage restrictions.

Problem 3: After the transfer, the application does not work

This is typical for applications that require high read/write speeds (such as games or instant messengers).

  • Transfer the app back to internal memory.
  • Use it. SD-class A2 (For example, SanDisk Extreme A2).
  • Turn off battery optimization for this application in Settings β†’ Battery.
Why does MIUI not allow you to port applications to SD?
Starting with MIUI 12.5, Xiaomi followed Google's safety guidelines. SD-The cards are easy to retrieve and connect to another device, which creates a risk of data leakage, and memory card performance is often insufficient for modern applications, leading to lags and crashes. Xiaomi has limited this feature to only individual models (e.g. Redmi). 9A).

════════════════════════════════════════════════════════════════════════════

Can I transfer the system applications to SD-map?
No, system applications (Mi Browser, Security, etc.) are stored in secure /system partitions and cannot be ported. They can only be disabled through Settings β†’ Applications or removed using ADB (developer rights required).
Why is the memory not released after the application is deleted?
This is because: The files remain in /data/data/[package_name]. Cache and temporary files are not automatically cleared. Some applications back up to /sdcard/Android/backup. Use it. SD Maid or Files by Google for deep cleaning.
How do I know which apps take up the most space?
Open Settings β†’ Memory β†’ Applications and sort by size. Alternatively, you can use ADB: adb shell dumpsys package | grep "codePath" This command will display a list of all installed applications with an indication of their location and size.
Can I install applications on the outside? SSD-storage OTG?
Technically, but: Root and modified firmware required. Performance limited to speed USB 2.0/3.0 (even Xiaomi 13 Ultra with USB 3.2). Google Play will not allow apps to be installed on removable drives due to security policy. SSD storage.
What is β€œother” in Xiaomi memory settings?
Section "Other" in Settings β†’ Memory includes: System process cache files (/cache). Logs and dumps (/data/tombstones, /data/anr). Temporary update files (/data/ota_package). Dalvik-cache files (/data/dalvik-cache). You can clean it through ADB: adb shell su -c "rm -rf /data/*/cache" Or using apps like this. SD Maid (root required).