How to transfer the app cache to SD-Xiaomi map: Deep customization

Xiaomiโ€™s modern smartphones, despite their high performance, often face a lack of internal storage, especially among users who actively use instant messengers, navigators and social networks, which generate huge amounts of temporary files that occupy precious space.

Moving cache and data to an external drive is not just a way to free up space, but also a way to extend the life of the main memory module. Android and MIUI have hidden mechanisms to manage data distribution flexibly, but standard settings often limit the userโ€™s ability to do so.

In this article, we will discuss how to circumvent standard restrictions and effectively use a microSD card. You will learn about the risks, technical nuances of the file system and optimization methods that do not require root rights in most cases.

Why Xiaomiโ€™s internal memory is filling up so quickly

The main reason for overflow is the Android architecture, where apps create cache to speed up content loading, but rarely delete it themselves. In Xiaomi smartphones, the situation is exacerbated by aggressive work of the systemโ€™s background processes.

Cache is temporary data that the app uses to access quickly, such as Instagram photos viewed or maps on the navigator. Over time, the Android/data folder can be as large as tens of gigabytes, blocking the installation of system updates.

  • ๐Ÿ“ฑ Messengers save all received media files to a common cache by default.
  • ๐Ÿ—บ๏ธ Navigation apps load huge arrays of map data.
  • ๐ŸŽฎ Games store temporary resources and shaders in the system section.

The user often notices that after cleaning the garbage with standard means, the space is only freed up for a short time, because the system cleaner does not touch the cache of active applications so as not to disrupt their operation.

๐Ÿ“Š What most often takes place in the memory of your Xiaomi?
Photos and videos
Cash messengers (WhatsApp, Telegram)
Established games
System files and updates

Features of MIUI work with external drives

The MIUI shell has a specific approach to memory management, which, unlike pure Android, tightens control over applications' access to external drives, for security reasons but limits functionality.

The default system is considering SD-Direct transfer of application executables (.apk) and their main cache is often blocked by the manufacturer.This prevents unstable operation, since the memory card speed may be lower than the internal memory speed.

โš ๏ธ Warning: Forced transfer of system applications to a slow memory card can lead to interface freezes and accelerated battery discharge. U3 or V30.

There's a memory extension feature, but it works differently than the classic Adoptable Storage, which creates a virtual partition that is used to store rarely used applications, unloading them from RAM, and it doesn't solve the problem of overflowing the main partition with cache.

Why Xiaomi is hiding Adoptable Storage feature
The manufacturer limits this function to ensure a stable interface speed, and cheap memory cards fail to provide the read/write speed required for system processes, leading to database lags and errors.

Preparation of SD-card for use as a system

Before trying to transfer data, you need to properly prepare the media. Standard formatting in Portable Storage mode will not allow you to transfer the application cache.

To start, insert the card into the smartphone slot. Go to Settings menu โ†’ About phone โ†’ Storage. If formatting option is not available, you will need to use a computer and specialized software to change the section title, but in newer versions of MIUI this is often hidden completely.

โ˜‘๏ธ Checking the readiness of the memory card

Done: 0 / 4

It's important to understand that once formatted into internal storage mode, the card is encrypted, and encryption binds the drive to a particular device, and you can't just insert that card into another phone and read the data without completely resetting it.

ParameterPortable storageInternal storage
Access to PCDirect accessOnly through the phone.
Cache transferImpossible.Possible.
EncryptionNo.Yeah (device binding)
Speed of operationStandard.Depends on the card.

If you decide to use the card as internal memory, the system will warn you that all data on it is lost. Be sure to back up important files to your computer or to the cloud before starting the procedure.

Methods of data transfer without Root-rights

For most users, obtaining superuser rights (Root) is an undesirable step, as it disrupts the work of banking applications and Mi Pay. Fortunately, there are legal ways to transfer data.

The first method is to use the built-in portability. Go to Settings. โ†’ Annexes โ†’ All applications. Select the desired application (e.g., the navigator). If the developer has provided this option, the "Move to the user" button. SD-The map will be active.

๐Ÿ’ก

If the transfer button is grey, the app developer has banned the movement, in which case only changing the paths to the cache folders inside the application itself, if such a setting is provided, will help.

The second method is to redirect the save paths in the applications themselves, many programs like Telegram, Yandex Navigator or some other software. 2GIS, allow you to specify the path to the folder on SD-card.

The third method is the use of the function force_external It's not working on all versions of the developer menu. MIUI, But it's worth a try. It makes the system prioritize the external map for new applications.

  • ๐Ÿ”ง Activate the developer menu by clicking 7 times on the version MIUI in the section "On the telephone".
  • ๐Ÿ”ง Find the item "By default, install applications on an external drive".
  • ๐Ÿ”ง Restart the device to apply changes.

It is worth noting that this method does not transfer the already installed cache, but only sends new data to an external medium, the old files will remain in internal memory, and they will have to be manually deleted or transferred through the file manager.

Using ADB for Advanced Memory Management

The most effective way, which does not require root rights, but gives maximum control - the use of debugging by the Internet. ADB (Android Debug Bridge: This method allows you to force the behavior of the file system to change.

First, you need to enable USB debugging in the developer menu. Then connect the phone to the computer and use the command line. Using the adb shell pm setInstallLocation 2 command, you can try to prioritize external memory.

adb shell pm setInstallLocation 2

A more powerful tool, however, is to reconfigure the storage.The sm set-force-adoptable true command (requires root, but there are workarounds through ADB on some versions of Android) allows the system to see the card as a potential internal storage even without the standard menu.

โš ๏ธ Attention: Use of teams ADB This can cause the system to work in an unstable way if you input it incorrectly. Make sure you copy the commands accurately, without unnecessary symbols.

Also through ADB You can access the hidden test menu, and by entering the code ##6484## (engineering menu), you can check the status. SD-card and its real writing speed, which is critical to making a decision about cache transfer.

๐Ÿ’ก

ADB is a bridge between your computer and Android, allowing you to execute system-level commands, and be careful that the wrong command can block the system from booting or damage partitions.

Problems and Limitations in Cache Transfer

Even if you successfully transfer, you can face a number of challenges, including response speed, and Xiaomiโ€™s internal memory (UFS 2.1/3.1) is much faster than most microSD cards.

When you transfer the cache of heavy games or messenger databases to a slow card, you will notice an increase in application load time. In some cases, the interface may be friezed when you scroll through the tape or switch tabs.

  • ๐Ÿ“‰ Reduced speed of reading random blocks of data.
  • ๐Ÿ“‰ Increased battery consumption due to the constant operation of the card controller.
  • ๐Ÿ“‰ Risk of data loss in sudden extraction or power failure.

In addition, some apps may stop updating correctly through Google Play if their main file changes its location, which the system may perceive as installing a new version and require the complete removal of the application.

Optimization of data storage in MIUI

If cache transfer is not possible or feasible, it is worth optimizing current memory usage. MIUI offers built-in tools for analyzing space.

Use the Security โ†’ Cleanup app, which allows you to find duplicate files, large files, and rarely used applications, and cleaning your cache regularly through this tool is safer than manually deleting system files.

Secret folder.thumbnails
At the root of internal memory, a folder.thumbnails is often growing, storing thumbnails of photos and videos, and cleaning it can free up a few gigabytes, but it will be created again the next time you scan the gallery.

It is also recommended to set up automatic cache cleaning in the application settings, for example, on Telegram you can set a cache limit: "Storage media for 3 days" or "When filling 500 MB" This will prevent uncontrolled growth.

Finally, transfer of the cache to SD-Xiaomiโ€™s map is a balance between free space and performance. For low-end models with little internal storage, itโ€™s often the only way out, but requires careful attention to the memory card.

Is it safe to transfer WhatsApp cache to SD-map?
Portability is possible, but with reservations: Message databases are better left inside, and media files (photos, videos) can be redirected to WhatsApp's settings, and direct porting of the Android/media folder can result in new photos not being displayed in the gallery.
What if the phone starts to brake after the transfer?
Go to the storage settings, select the app, and click Move to internal memory. If the system doesn't respond, you'll need to reboot to Safe Mode or reset.
Can I transfer the cache of Xiaomi system applications?
Without root rights and deep system modification, no. System applications (Phone, Messages, Settings) are tightly tied to the internal partition to ensure stability of work, and attempts to migrate them can lead to a "bootloop" (cyclical reboot).
What speed memory card to choose for Xiaomi?
The minimum standard is Class 10, but for comfortable work, UHS-I (U3) or V30 is recommended. Read speed should be at least 80-90 MB / s, and records should be at least 20-30 MB / s. SanDisk, Samsung, Kingston brands are considered the most compatible.