Hidden cache on Xiaomi smartphones is one of the most mysterious and problematic areas for users. Unlike the standard app cache, which is cleared in two clicks, the system cache (aka Dalvik-cache and hidden temporary MIUI files) accumulates stealthily, but can take up gigabytes of memory, leading to brakes, spontaneous reboots and even errors when updating the firmware.
In this article, weβll not only look at how to find and remove hidden cache on any Xiaomi device (from Redmi Note 10 to Xiaomi 14 Ultra), but also explain why standard methods through Settings β Storage donβt work. Youβll learn about hidden ADB commands, secret menus of engineering mode and safe ways to clean without the risk of bricking your phone. And also how to prevent re-accumulation using built-in MIUI tools.
What is hidden cache on Xiaomi and why it can not be deleted in standard ways
A hidden cache is a collection of system files that MIUI (Xiaomi firmware) creates to speed up the OS, but does not show the user in the interface.
- π Dalvik-cache β Optimized versions of applications for the Android virtual machine (files with the extension.dex and.oat).
- ποΈ Update cache β temporary firmware files that remain after installing OTA-apats.
- π System Logs - Error Logs (/data/log), weighable 500 MB.
- π± Cash. MIUI β Hidden files of themes, animations and system applications (com.miui.*).
The problem is that even after you click the Clear Cache button in the storage settings, these files remain intact, and some of them (like Dalvik-cache) are automatically restored by the system after a few hours, and this is due to the Android architecture: the OS considers these files to be critical for stable operation.
β οΈ Warning: Removing hidden cache manually without backup can lead to a cyclic phone restart (bootloop), especially risky on devices with unlocked bootloader or custom firmware.
According to tests of the laboratory Xiaomi, on devices with MIUI 14 And the newest hidden cache can take up to 3β5 GB of memory after a year of use, and this is despite the fact that the user regularly cleans the phone through standard tools, and the lion's share of the garbage is in files. /data/dalvik-cache and /data/system/package_cache.
Method 1: Cleaning through an engineering menu (without root and PC)
The safest method is to use the hidden MIUI engineering menu, which is available on all Xiaomi smartphones without the need for root permissions, which is suitable for devices on MIUI 12-14 and removes up to 80% of hidden cache.
Instructions:
- Open the Phone app and enter the combination: ##4636##.
- In the menu that appears, select Battery Information (donβt be afraid of the name β this is a localization bug).
- Slip 5 times on the Android version until you become a developer!
- Go back to the basic settings of the phone, open Additional β For developers.
- Activate the Donβt Keep Activities switch and restart the device.
Once rebooted, the system will automatically clear some of the hidden cache, including temporary application files and some logs.This method does not affect Dalvik-cache, but is safe even for beginners.
Charge your phone at least 50% | Backup important data | Disable two-factor authentication in Mi Account (if enabled) | Remember the password from your Xiaomi account (required after rebooting)
-->
The method is effective: about 1-1.5 GB of freed memory on devices with 6+ months of use.
Method 2: Use of the ADB-Teams (for experienced users)
If the engineering menu didn't work, the next step is to connect the phone to a PC and use Android Debug Bridge (ADB).This method removes Dalvik-cache and other hidden files, but requires minimal technical skills.
What you need:
- π» Computer with Windows/macOS/Linux.
- π Installed Xiaomi drivers (download from the official website).
- π§ Utility. ADB (Installation instructions: Android Studio).
- π USB-cable (preferably original).
Step-by-step:
- Turn on the phone Debugging over USB (Settings β About Phone β MIUI version β tap 7 times, then go back to Additional β For developers).
- Connect the phone to the PC and in the command line (terminal) enter: adb devices Make sure that the device is determined (should appear its serial number).
- Follow the commands in turn: adb shell su rm -rf /data/dalvik-cache/* rm -rf /data/system/package_cache/* exit exit β οΈ Note: If you enter su with a Permission denied error, you don't have root rights on your device. In this case, skip this command and use only rm. -rf /data/dalvik-cache/* sue.
- Reboot your phone with the command: adb reboot
After the reboot, the system will recover critical files, but the amount of hidden cache will be reduced by 2-3 GB. This method is most effective for devices with MIUI 13+, where standard cleaning tools often do not work.
What if the ADB canβt see the device?
Method 3: Cleaning with Recovery Mode (without data loss)
If ADB seems too complicated, the alternative is to use Recovery Mode, which does not require a PC, but only removes a portion of the hidden cache (mostly temporary update files and logs).
How to get into Recovery Mode:
- Turn off the phone.
- Press the Power + Volume buttons up at the same time and hold for 10-15 seconds until the Mi logo appears.
- In the recovery menu, select the language (if you have an option), then go to Wipe & Reset.
- Select Wipe Cache (NOT Wipe Data is a factory reset!).
- Confirm the action and wait for the completion (it will take 1-2 minutes).
- Restart your phone via Reboot.
This method is safe, but only clears 300-800 MB of hidden cache, and its main advantage is that there is no risk of damage to the system, so it is suitable for beginners.
Standard cleaning through Settings|Engineering menu|ADB-team|Recovery Mode|Never cleaned a hidden cache.
-->
Method 4: Forced Dalvik-cache reassembly (for advanced)
On root-rights or custom-recovery (TWRP) devices, you can completely reassemble Dalvik-cache, which not only cleans up the garbage, but also speeds up the system, a method recommended if the phone slows down after upgrades.
Instructions for TWRP:
- Boot in TWRP (similar to Recovery Mode, but with Power + Volume up for longer than 15 seconds).
- Go to Advanced β File Manager.
- Delete the folders: /data/dalvik-cache /data/system/package_cache
Wipe β Dalvik / ART Cache
Reboot your phone. It'll take 5 to 10 minutes to boot up the first one, which is fine.
For devices without root, you can use the SD Maid app (Pro version is required):
- Open SD Maid and go to CorpseFinder.
- Press Run and wait for the scan.
- Select Dalvik Cache and System Cache, then press Clean.
β οΈ Note: After forced Dalvik-cache reassembly, some applications may not work in a stable way for the first hours, because the system re-optimizes them for your device. If problems persist for longer than a day, reset through Settings β System system β Resetting settings (without deleting data).
Method 5: Automatic cleaning through hidden MIUI settings
MIUI has a built-in tool for automatically cleaning hidden cache, but it's hidden in the depths of settings.This method is suitable for devices on MIUI 14 and later, where developers have added Deep Clean feature.
How to turn on:
- Open the Settings. β The phone.
- Tap 10 times on the MIUI version until the message appears You have activated the superuser mode!
- Return to the main settings and open Additional β Special features β System settings.
- Find the Deep Clean item and activate it.
- Choose Clean each week or Clean at low memory.
This function removes:
- ποΈ Temporary update files (/cache/ota).
- π System logs older than 7 days.
- π Cache of preloaded applications (bloatver).
The advantage of the method is full automation. The disadvantage: it does not clean Dalvik-cache, so it is better to combine with ADB or Recovery Mode for a complete cleaning.
-->
How to prevent the re-accumulation of hidden cache
Cleaning the cache, if you don't eliminate the reasons for the accumulation, here are 5 rules to keep the system clean:
| Problem. | Decision | The effect |
|---|---|---|
| Frequent updates to MIUI | Turn off automatic download of updates in Settings β About phone β System update. | Reduces the file size in /cache/ota by 500β1000MB. |
| Background activity of applications | Limit background work through Settings β Apps β Permissions β Autostart. | Reduces size package_cache on 30β40%. |
| Systems bloatwer | Remove unnecessary Xiaomi apps via ADB: adb shell pm uninstall --user 0 com.miui.weather | It releases 1-1.5 GB in /data/app. |
| Logs of error | Turn off the collection of logs in Settings β Additional β For developers β Disable log recording. | Prevents the growth of /data/log folder. |
| Cash Google Play Services | Clean the Google Play Services cache once a month manually (Settings β Apps β Google Play Services β Storage). | Reduces the volume of /data/data/com.google.android.gms. |
We also recommend using Files by Google for regular garbage scanning, and unlike standard MIUI Cleaner, it finds hidden temporary files, such as remnants of deleted applications in the /data/data folder.
-->