Why Cache Clearing on Xiaomi is Not Always an Obvious Task
Cache on Xiaomi smartphones (including Redmi, POCO, and Black Shark) accumulates faster than on other brands, due to aggressive optimization of MIUI, which actively caches data to speed up the interface and applications. However, over time, this βjunkβ takes up gigabytes of memory, slows down the system and can cause crashes from accidental reboots to errors in games.
The problem is that standard cleaning through Settings β Memory only removes the app surface cache, leaving the system cache, Dalvik cache (Android virtual machine) and hidden micro-G files (Google services for China) intact. In this article, we will break down all the levels of cleaning, including those that are not visible in the basic MIUI menu, but critically affect performance.
1. Clearing the cache of individual applications (basic method)
The safest way is to remove the cache for specific programs, which won't affect their data (logins, saves), but will free up space, which is fine if the phone starts to slow down after installing new apps or updates.
How to do this:
- π± Open the Settings. β Annexes β Application management
- π Select the desired application (for example, Facebook, Telegram or Google Play Store)
- π§Ή Press Warehouse. β Clear the cache
- π« Do not click βClear Dataβ β this will delete all settings and accounts in the application!
For mass cleaning:
- Go to Settings β Memory β Cleanup
- Click Select data for cleaning β tick unnecessary files
- Confirm the action with the Clear button (usually at the bottom of the screen)
π‘
If the app gets slower after cleaning the cache, that's OK, the system caches the data again the next time it starts, and wait 5-10 minutes of active use, and the speed will recover.
2. Deep cleaning of system cache via Recovery Mode
System cache (/cache) store temporary files MIUI, Android kernels and updates. Cleaning it helps with:
- π’ Slowing down animations and transitions between screens
- π Fixed Updates ("Infinite Download")
- π± Failures after firmware or update MIUI
Instructions for all Xiaomi models (including Redmi Note 12, POCO X5, Mi 11):
- Turn off the phone.
- Press the Power button + Volume up simultaneously until the Mi logo appears (about 10 seconds).
- From the Recovery menu (English or Chinese), select Wipe & Reset β Wipe Cache.
- Confirm the action with the swipe or the Yes button.
- After cleaning, select Reboot β Reboot to System.
What happens if you clear the system cache?
β οΈ Note: If there is no Wipe Cache option in Recovery Mode, then your device has custom firmware installed (for example, Pixel Experience or LineageOS). --wipe_cache computer.
3. Cleaning Dalvik cache (for advanced users)
Dalvik cache is an optimized file on the Android virtual machine that speeds up the launch of applications.
- π€ Applications suddenly close with the error "Application stopped"
- π¦ After updating MIUI Some programs have stopped opening.
- π§ You have recently obtained root rights and want to avoid conflicts.
Method 1: TWRP Recovery (requires an unlocked bootloader):
- Load to TWRP (clip Power + Volume Up).
- Choose Advanced β Wipe Dalvik Cache.
- Swipe for confirmation.
- Reboot to the system.
Method 2: Through ADB (no root, but command line skills are needed):
adb shell
su
rm -r /data/dalvik-cache/*
rebootβ οΈ Warning: Cleaning the Dalvik cache without rebooting can lead to a bootloop.Always restart the phone immediately after the procedure!
4. Hidden cache files: micro-G, Google Services and MIUI Bloatware
MIUI for both global and Chinese versions contains an βinvisibleβ cache from:
- π€ Micro.-G (Google's services for China are cut down by 500 MB
- π¦ Pre-installed apps (Mi Video, Mi Music, GetApps)
- π System logs (/data/log/ and /sdcard/MIUI/debug_log/)
How to remove them:
| Type of file | Way | Is it safe to remove? | Cleaning method |
|---|---|---|---|
| MIUI Logs | /sdcard/MIUI/debug_log/ | Yes. | Through any file manager |
| Cash micro-G. | /data/app/com.google.* | Partially (may break Google Play) | Only through ADB or root |
| Cash of system applications | /data/data/com.miui.* | No (risk of failure) MIUI) | Better to disable through Settings β Applications |
| Thumbnails (miniatures) | /sdcard/DCIM/.thumbnails | Yes. | Delete the folder manually |
To remove hidden files without root, use the ADB command:
adb shell pm clear com.miui.analytics # Cleanup of MIUI Analytics
adb shell pm clear com.xiaomi.market #Cache cleanup Mi App Store5. Automatic cache cleaning: MIUI settings and third-party utilities
MIUI has built-in tools for automatic cleaning, but they don't work well. Here's how to set them up:
- Open Settings β Memory β Auto Clean.
- Turn on the option to Clear the cache when you lock the screen.
- Set a limit for notifications (recommended 1-2 GB).
For deep automatic cleaning, use the following applications:
- π οΈ SD Maid (requires root for full functionality)
- π§Ή Files by Google (free, no root)
- π CCleaner (caution β can delete files!)
βοΈ Preparation for automatic cleaning
β οΈ Note: Applications such as Clean Master or DU Speed Booster often displays false "optimizations" and can become a source of cache. Use only proven utilities from the list above.
6.What NOT to do when cleaning cache on Xiaomi
Some "tips" from the Internet can harm your device.
- π« Deletion of the folder /data/app-lib/ β This will lead to the collapse of all applications.
- π« Cleaning boot or system partitions β the phone wonβt boot.
- π« Using fastboot erase cache commands on a locked bootloader is a risk of βbrick".
- π« Deletion of files from /sdcard/Android/obb/ β This is game data (eg Genshin Impact or Call of Duty Mobile), their loss means re-downloading gigabytes of data.
If you accidentally delete critical files:
- Donβt panic β Xiaomi has a system recovery mechanism.
- Restart your phone in Safe Mode (clip Power β Click "Switch off power" before the prompt to go to Safe Mode appears).
- If the phone is not turned on, use the instructions from the FAQ to restore using the Mi Flash Tool.
π‘
Clearing the cache does not increase the amount of permanent memory (ROM), it releases only RAM and temporary files. To free up space under the photo / video, you need to delete unnecessary applications or transfer files to the memory card.