Why does the Xiaomi Mi 9 cache require regular cleaning?
The Xiaomi Mi 9, released in 2019, is still popular with users thanks to its powerful hardware: Snapdragon 855 processor, 6-8 GB of RAM and 128 GB of internal storage. However, even these features do not save the problem of Android devices โ cache clogging. Over time, the phone begins to โbrakeโ, applications open longer, and the battery goes down faster.
There are two types of cache: system (created) MIUI To speed up the interface, and to cache applications (time data from games, instant messengers, browsers). With the Mi 9, with its limited memory (compared to today's flagships), cache cleaning becomes not a luxury, but a necessity. For example, the cache of Google Play Services can weigh up to 1-2 GB, and social networks like TikTok or Instagram โ up to 500 MB each. MIUI It doesnโt always delete all temporary files, some of them remain in hidden folders.
In this article, you will find 5 working ways to clean the cache, from basic (through the settings menu) to advanced (using ADB and third-party utilities), we will also discuss how to clean the cache of individual applications without affecting user data, and what to do if after cleaning the phone began to work even worse.
Method 1: Clearing the cache through MIUI settings
The easiest and safest method is to use the built-in MIUI tools, which are suitable for beginners and do not require root rights, but keep in mind that this method only clears the application cache, but does not affect the system temporary files.
Instructions:
- Open Settings (the gear icon on the main screen).
- Go to the Appendix section โ Application management.
- In the upper right corner, press three dots (โฎ) and select Sort by size.
- Tap on the app you want to clear (such as Chrome or Facebook).
- Click Clear Cache (not to be confused with Clear Data โ it will delete all account settings!).
For mass cleaning:
- ๐ In the same Application Management menu, swipe right to the Cash tab.
- ๐งน Click Clear Everything (remove the cache of all applications except system ones).
- โ ๏ธ Note: After this operation, some applications (such as maps or messengers) will load longer than usual when they first start up โ this is normal.
Close all background applications
Connect your phone to charge (if the charge is below 30%)
Save important data from apps (e.g. game progress)
Restart the phone after cleaning-->
Method 2: Using the built-in Optimizer
MIUI has a built-in Security tool (formerly Optimizer) that can clean not only cache but also junk files, a method deeper than manually cleaning through settings, as it affects system time data.
How to use:
- Open the Security app (the shield icon on the desktop).
- Go to the Cleanup tab (or Garbage in newer versions of MIUI).
- Wait for the scan to be completed (it may take 1-2 minutes).
- Click Clear (or select specific file categories to delete).
What removes this tool:
| Type of file | Description | Is it safe to remove? |
|---|---|---|
| Cash app. | Temporary data of games, browsers, social networks | โ Yes. |
| Residual files | Remains after deletion of programmes | โ Yes. |
| System logs | Mistake Logs and MIUI Reports | โ Yes (but you may need a diagnosis) |
| APK files | Installation packages for remote applications | โ Yes. |
| Miniatures. | Photo and video sketches from the gallery | โ ๏ธ May slow down the first gallery load |
โ ๏ธ Note: If after cleaning through Security, the phone began to restart or lag, check the free space in the Settings section. โ Memory. It may be that the system deleted critical files due to space constraints, in which case rebooting or resetting cache via Recovery (more on this below) will help).
Once a week.
Once a month
Only when the phone starts to brake
Never cleaned.-->
Method 3: Cleaning the cache with Recovery Mode (for experienced)
If standard methods don't work and the phone still bugs, you can use Recovery, which clears the partition cache, which is especially useful after MIUI updates or when the system is running faulty, but it requires caution: improper actions in Recovery can cause the phone to reset to factory settings.
Step-by-step:
- Turn off the Xiaomi Mi 9.
- Press the Power + Volume buttons up at the same time and hold for 10-15 seconds until the Mi logo appears.
- Release the buttons โ you will be taken to the Recovery menu (management is carried out by the volume and power buttons).
- Select Wipe & Reset (or Wipe Cache in newer versions).
- Confirm the action by selecting Wipe Cache Partition.
- After you complete the process, select Reboot to System.
โ ๏ธ Warning: Do not choose Wipe Data or Factory Reset, it will result in a complete reset of the phone! Also do not interrupt the cleaning process (even if it took more than 5 minutes, TWRP) The menu may look different, but look for Advanced Wipe. โ Cache.
What happens if Recovery does not open?
Method 4: Manually clean the cache through the file manager
For those who arenโt afraid to dig through system folders, thereโs a way to manually clean the cache, which allows you to delete files that arenโt visible through standard settings, such as the Google Play Services cache or remnants from remote applications, but it will require a file manager with root rights (like Root Explorer or FX File Explorer) or at least access to hidden folders.
Where to find the cash:
- ๐ /data/data/ โ It stores the caches of all installed applications (folders with names like com.android.chrome).
- ๐ /cache/ โ System cache (cleaned only through Recovery).
- ๐ /sdcard/Android/data/ โ cache of games and heavy applications (for example, PUBG Mobile or Genshin Impact).
- ๐ /sdcard/DCIM/.thumbnails โ Photo and video miniatures (can be removed without consequences).
โ ๏ธ Note: Delete only files inside cache folders! Delete other files (such as lib or databases) will lead to the collapse of the application. SD Maid (requires root).
๐ก
Before manually clearing the cache, back up important folders (e.g. /sdcard/WhatsApp/Databases) as some apps store temporary chat or media data in the cache.
Method 5: Advanced Cleaning through ADB (for developers)
If you're familiar with Android Debug Bridge (ADB), you can clear the cache of all applications with one command, which is useful when standard methods don't work (for example, due to a failure in MIUI), which requires a computer with Xiaomi drivers installed and enabled USB debugging on the phone.
Instructions:
- Turn on Developer Mode on Mi 9: go to Settings โ About Phone and tap the MIUI version 7 times.
- Return to Settings โ Additional โ For developers and activate Debugging over USB.
- Connect your phone to your PC, open the command prompt (Windows) or terminal (macOS/Linux) and type:
adb devices(A device with a serial number must appear).
- Run a command to clean the cache of all applications:
adb shell pm trim-caches 999999999GOr to clean the cache of a particular app (like Facebook):
adb shell pm clear com.facebook.katanaโ ๏ธ Note: pm clear removes all app data (including settings and accounts) not just cache:
adb shell run-as com.package.name rm -rf /data/data/com.package.name/cache/*(Replace com.package.name with the real name of the package)
๐ก
Cleaning through ADB is the most radical method, but it requires technical knowledge. If you are not sure about the commands, it is better to use standard methods or third-party utilities.
What if after cleaning the cache, the phone becomes worse?
Sometimes, after a mass cache clearing, users experience the opposite effect: the Mi 9 starts to โfreezeโ, open applications more slowly, or even overheat, which is due to the fact that the system is forced to recreate cache files, which loads the processor.
- โณ Wait 12-24 hours. MIUI Optimizes work after cleaning in the background.
- ๐ Reboot the phone. It'll reset the time processes that might have been hangingยป.
- ๐ ๏ธ Turn off animation. Go to Settings. โ For developers and set the scale of animation on the Off. โ this will speed up the interface.
- ๐๏ธ Check the space if the memory is 90 after cleaning the cache%+, Delete unnecessary files or transfer them to the SD-map.
If the problems have not gone away, perhaps the reason is not the cache, but in:
- ๐ Worn-out battery (check battery health via ##4636##).
- ๐ค Firmware failure (try to update) MIUI through settings โ The phone. โ Updating the system).
- ๐ฆ Viruses (scan your phone through Google Play Protection or Malwarebytes).