Xiaomi Mi 8 Pro (codenamed UD) is the flagship of 2018, which is still relevant today thanks to the powerful hardware (Snapdragon 845 processor, 8 GB of RAM) and support for custom firmware. However, over time, even such a device begins to โbrakeโ, and the reason for this is a crowded cache. These are temporary files that the system and applications create to speed up work, but over time they turn into digital garbage, occupying precious space and reducing productivity.
In this article, you will find 5 ways to clean the cache on the Mi 8 Pro, from basic (via Android settings) to advanced (via TWRP Recovery and ADB). We will analyze which cache can be deleted without risk and which should not be touched, and also explain why after cleaning the smartphone can work faster. If your device becomes slower to download applications, bask for no reason or give out errors โNo memoryโ โ this is the guide for you.
1.What is cache and why should it be cleaned on Xiaomi Mi 8 Pro
Cache (from English cache - "cache") are temporary files that are created:
- ๐ฑ Android system โ to speed up the loading of the interface (system cache).
- ๐ฆ Applications โ to avoid re-downloading the same data (e.g. thumbnails in a gallery or a map cache in Google Maps).
- ๐ค Dalvik/ART โ Android virtual machine that optimizes the launch of programs.
On the Mi 8 Pro with MIUI, the cache can take up to 5-10 GB (depending on user activity), the problem is that over time these files:
- ๐ข Slow down work โ the system spends time searching for the necessary data among the garbage.
- ๐ฅ Cause overheating โ the processor processes excess files longer.
- โ ๏ธ Lead to failures โ a damaged cache can โbreakโ applications (for example, crashes in games or errors in messengers).
But cleaning up the cache is not a panacea, for example, deleting the Google Play Services cache can lead to push notification problems, and cleaning the WhatsApp cache can lead to the loss of media files in chat rooms, so it is important to understand which files can be deleted without consequences, and which ones only as a last resort.
โ ๏ธ Warning: Donโt confuse cache with user data! Clearing the cache of an app (like Instagram) will only delete temporary files, not your photos or messages.
Method 2: Clearing the cache of individual applications through MIUI settings
The safest and easiest method is to remove the cache of specific programs, which does not affect system files and does not require superuser rights, but is suitable if you slow down one or two applications (for example, Facebook or TikTok).
Instructions:
- Open Settings โ Applications โ Application Management.
- Select the app you want (such as Chrome).
- Press Warehouse. โ Clear the cache.
- For complete cleanup (including data), select Clear all data, but remember: this will delete accounts, settings, and downloaded files within the application.
To speed up the process, use the filter by cache size:
- In Application Management, click on three dots (โฎ) top-right.
- Select Sort. โ By size.
- Remove the cache from the applications that occupy the most space (usually social networks, instant messengers and games).
๐ธ Cash galleries (photos and videos will remain)
๐ Browser cache (history and bookmarks will be saved)
๐ฎ Cash games (saves not affected)
๐ฑ Cache of system applications (for example, MIUI Launcher)
-->
On the Mi 8 Pro, cache is especially quickly accumulated at:
- ๐ท Gallery (miniatures and previews)
- ๐บ๏ธ Google Maps (Maps and Routes)
- ๐ต Musical applications (album covers, stream buffer)
- ๐ฎ Games (textures, shaders)
โ ๏ธ Note: Do not clear the cache of Google Play Services, MIUI System and Android System WebView are not absolutely necessary. This can lead to failures in notifications, web browsing and system functions.
3. Method 2: Clean the entire application cache at once
If you don't want to clear each application's cache individually, MIUI has a mass-cleaning feature that deletes the temporary files of all user programs, but doesn't touch the system cache.
How to do this:
- Go to Settings. โ Memory.
- Click Clean in the section "Junk files".
- Select the app cache and confirm the action.
This method removes:
- ๐๏ธ Cache of all installed applications (except system applications).
- ๐ Temporary download files (e.g., under-quality files) APK).
- ๐งน Logs and memory dumps (if any).
After cleaning:
- โ Applications will be loaded longer when first run (cache is created again).
- โ Free from 500 MB to 2-3 GB of memory (depending on the number of installed programs).
- โ ๏ธ Some applications may request reauthorization (e.g., banking programs).
| Cache type | What's removed | Effects of cleaning | Recommendation |
|---|---|---|---|
| Cash app. | Temporary program files (images, videos, logs) | Applications load longer on first run | Clean once every 1-2 months |
| Dalvik/ART-cash | Optimized code for quick application launch | The first program launch after cleaning will be slower | Clean only when crashes or after Android update |
| System cache | Updates, MIUI log files | Some settings (e.g. regional settings) may be reset | Clean through Recovery in severe lag |
4. Method 3: Clean Dalvik cache and system cache via Recovery
If the Mi 8 Pro is slowing down or there are glitches after the MIUI update, cleaning the Dalvik cache and system cache through Recovery will help. This method is more radical, but also more effective - it deletes files that can not be erased through normal settings.
Important: This method requires an unlocked bootloader and a custom or stock Recovery (such as TWRP) installed. If you have a standard MI Recovery, only cache cleaning (Wipe Cache) is available, but not Dalvik.
Instructions for TWRP:
- Turn off the phone.
- Press Volume Up + Power to enter Recovery.
- Select Wipe โ Advanced Wipe.
- Check the boxes: Dalvik / ART Cache Cache
Swipe to Wipe
Reboot System
What this cleanup does:
- ๐ Accelerates application launch (Dalvik cache reassembles).
- ๐ Fixes errors after updates (for example, if you MIUI ยซhanging).
- ๐ Reduces the load on the processor (removes unnecessary optimized files).
โ ๏ธ Note: Do not clean Data or Internal Storage in the TWRP โ It's gonna cause a total reset of your phone, and don't touch the System section unless you're sure you're doing it.
What if after cleaning the Dalvik cache, the phone loads for a long time?
5. Method 4: Clearing the cache through ADB (for advanced users)
If you have experience with ADB (Android Debug Bridge), you can clear the cache of specific applications or system cache through the command line.
- ๐ง You need to clear the cache of the system application (for example, com.miui.home), which does not appear in the settings.
- ๐ Automation of the process (for example, through a script).
- ๐ ๏ธ You need to remove the cache on the locked phone (if debugging is enabled by USB).
Instructions:
- Install ADB and Fastboot on PC.
- Enable USB Debugging on Mi 8 Pro (Settings โ About Phone โ MIUI version โ press 7 times, then go back to Additional Settings โ For Developers).
- Connect your phone to your PC and execute the commands: adb devices (you should display your device) adb shell pm clear --user 0 com.android.chrome (replace com.android.chrome with the desired application package)
Useful cleaning commands:
- ๐ฑ Clear cache of all user applications: adb shell pm trim-caches 1000000000 (numbers - size limit in bytes, here is 1 GB)
- ๐๏ธ Cleaning the system cache: adb shell su -c "rm -rf /cache/*" (Root rights are required)
- ๐ See all packages: adb shell pm list packages
๐ก
To find the batch name of the application, use the command adb shell pm list packages | grep "name." For example, for WhatsApp, type adb shell pm list packages | grep whatsapp, the system will show com.whatsapp
Advantages of the method:
- โก Faster than manual cleaning through settings.
- ๐ฏ Point deletion of cache (you can select a specific application).
- ๐ Ability to automate (for example, via batch script).
โ ๏ธ Attention: Rm teams -rf They can permanently delete data if you specify the wrong path. -rf /data/* Delete all user files! Use only verified commands from trusted sources.
6. Method 5: Automatically cleans the cache using applications
If you don't want to manually clean the cache, you can use third-party utilities that analyze memory and offer to delete unnecessary files in one click.
- ๐งน SD Maid โ Deep Cleanup, including residual files after deleting programs.
- ๐๏ธ CCleaner โ Simple interface, cache cleanup and history.
- ๐ Files by Google โ Googleโs built-in cleaner with garbage file analysis.
- ๐ MIUI Cleaner is a standard app from Xiaomi (less aggressive but safe).
How to use SD Maid:
- Install the app from Google Play.
- Start and provide root rights (if any).
- Go to CorpseFinder (search for residual files) or AppCleaner (clear app cache).
- Select files to delete and confirm the action.
Warnings when using cleaners:
- โ Do not manually delete files from folders /system or /vendor โ It could break the system.
- โ Avoid โoptimizersโ that promise to โspeed up your phone by 300%โ โ they often contain ads or malicious code.
- โ Donโt clean the cache too often (once a day) โ this can backfire (apps will constantly reassemble the cache).
๐ก
It is better to use SD Maid or Files by Google than universal "boosters," the latter often deleting useful files and showing false warnings about "critical errors."
7. Frequent mistakes and how to avoid them
Cache cleaning seems like a simple procedure, but many Xiaomi Mi 8 Pro users make mistakes that lead to problems.
| Mistake. | Effects of consequences | How to avoid |
|---|---|---|
| Cleaning up the Google Play Services cache | Stop coming push notifications, failures in the work of Google services | Donโt touch this app or restart your phone after cleaning. |
| Delete files in /system/cache without root | The system may not boot (bootloop) | Use only Recovery or ADB with superuser rights |
| Frequent cleaning of Dalvik cache | The phone starts to brake more strongly (constant cache reassembly) | Do this only after updates or when serious lags |
| Using โcleanersโ with aggressive settings | Delete the necessary files, malfunctions in the application | Set up exceptions for important programs (banks, instant messengers) |
A few more nuances:
- ๐ After cleaning the cache, the battery can discharge faster in the first 1-2 days โ this is normal, as the system reassembles optimized files.
- ๐ถ If the Internet is lost after cleaning, restart the phone or reset the network settings (Settings) โ SIM-maps and mobile networks โ Resetting settings).
- ๐ฏ If cleaning the cache didnโt help speed up the Mi 8 Pro, check the processor boot in Settings. โ Battery โ Battery use โ maybe a particular app is to blame.