Your Xiaomi is slowing down, warming up, or running out quickly? Most often it is the accumulated system debris, the remnants of deleted applications and overloaded cache. Even the new Redmi Note 13 Pro+ or Poco F6 models start to run slower after 6-12 months of operation due to background processes and unnecessary files. In this article, we will discuss how to conduct a deep cleanup of a Xiaomi smartphone without losing data โ from standard MIUI tools to hidden functions and third-party utilities.
The main difference between deep cleaning and conventional cleaning is the removal of not only user files (photos, videos, documents), but also system temporary data that takes up space and slows down.
- ๐งน How to Clean App and System Cache Without Damage to Data
- ๐๏ธ Where are the gigabytes of garbage in the MIUI and how to remove them
- โก Methods of Optimizing Autoboot and Background Processes
- ๐ง When to resort to resetting to factory settings (and how to do it correctly)
All methods are tested on the current versions of MIUI 14/15 and are suitable for most models: from the budget Redmi A2 to the flagship Xiaomi 14 Ultra. If your smartphone runs on HyperOS (the new firmware for Xiaomi 14 and Poco X6), we will specify the nuances separately.
1. Standard MIUI cleaning tools
The manufacturer has put in MIUI a few built-in garbage cleanup utilities, enough for basic optimization, but they don't delete deep system files.
The main tool is Cleaning (Settings โ Applications โ Cleaning).
- ๐๏ธ Quick Cleanup โ removes application cache, temporary files and residues from deleted programs, usually frees up 500 MB-2 GB.
- ๐ Deep Cleanup โ Analyzes unnecessary files (duplicates, large videos, unused) APK). Warning: may suggest deleting files from Download folders or DCIM โ check it out manually!
- ๐ Optimization โ closes the background processes, but the effect is temporary (until the next application launch).
For maximum results:
- Run a deep cleaning and wait for the analysis to be completed.
- In the section "Unnecessary Files" mark all items except Download and Image (if you do not want to lose personal data).
- Click โCleanโ and restart your smartphone.
Start "Cleaning" in the settings|Select โDeep cleaning"|Check the list of files before deleting|Restart the phone after cleaning-->
โ ๏ธ Attention: Built-in utility MIUI does not delete the cache of system applications (e.g. com.miui.home or com.android.systemui) ADB-Teams (more on this below).
2. Manual cleaning of the app cache
Cache speeds up programs, but it grows to gigabytes over time, like YouTube or TikTok, which can take up 1 to 3 GB of cache, even if you don't use them very often.
To clear the cache for a specific application:
- Go to Settings โ Applications โ Application Management.
- Select an app (such as Facebook or Google Play Services).
- Press "Storageยป โ ยซClear the cacheยป.
- To reset completely, click โClear Dataโ (delete settings and accounts!).
List of applications that most often clog memory:
| Annex | Average cache size | Can you clean it without consequences? |
|---|---|---|
| Google Play Services | 500 MB - 1.5 GB | Yes (but it may need to be rebooted) |
| YouTube | 1-3 GB | Yes. |
| Facebook/Instagram | 300MB - 1GB | Yes (possible logging out) |
| MIUI Launcher (com.miui.home) | 200-800 MB | Only through ADB (see Section 4) |
For mass cleaning of the cache of all applications use ADB-team:
adb shell pm list packages -f | awk -F= '{print $2}' | xargs -I '{}' adb shell pm clear {} 2>/dev/nullโ ๏ธ Warning: This command will reset all applications, including games and instant messengers. Use only if you're ready to reset everything!
3. System debris and application residues disposal
When programs are deleted, their folders, databases, and settings remain in memory, for example, after uninstalling WhatsApp, gigabytes of media files may remain in the /Android/media/com.whatsapp folder.
Where to look for garbage:
- ๐ folder /Android/obb/ โ This is where game caches (e.g. Genshin Impact or Call of Duty Mobile) are stored..obb files can be deleted if the game is deleted.
- ๐ folder /Android/data/ โ Application residues. folders with names of remote programs (e.g., com.tencent.ig for the PUBG Mobile) can be safely removed.
- ๐ folder /MIUI/backup/ โ Backups of system applications. If you didn't manually backup, you can clean it up.
To access these folders:
- Connect your smartphone to your PC and enable file transfer mode (MTP).
- Use a Explorer (such as Total Commander or File Explorer) to search for folders.
- Delete unnecessary files, but donโt touch active application folders!
How to find hidden folders in MIUI?
To automate the process, use applications like SD Maid (requires root) or Files by Google (free, no root), which analyzes the garbage and suggests removing:
- ๐๏ธ Empty folders
- ๐ Duplicate files
- ๐ต Unused audio files
4. Cleaning through ADB: for advanced users
If standard methods donโt work and root access isnโt something you want, use ADB (Android Debug Bridge), which allows you to remove the cache of system applications that are usually blocked.
What you need:
- ๐ฅ๏ธ Computer with installed ADB Tools.
- ๐ฑ Included debugging by USB on a smartphone (Settings) โ The phone. โ Version. MIUI โ 7 times press to unlock the developer mode, then Settings โ Additionally. โ For developers โ Debugging by USB).
- ๐ USB-cable (preferably original).
Cleanup commands:
adb shell pm clear com.miui.home # Launcher cleanup MIUI
adb shell pm clear com.android.systemui # Cleaning up the system interface
adb shell pm clear com.miui.securitycenter #Cleanup security center
adb shell rm -rf /data/local/tmp/* # Delete temporary filesTo remove the cache of all user applications:
adb shell "su -c 'find /data/data -name 'cache' -exec rm -rf {} +'"โ ๏ธ Attention: Su command requires root rights. It won't work without them. ADB It can cause data loss or system failure!
๐ก
ADB allows you to clear the system cache, which is not available through standard settings. But before using commands, back up the data!
5. Optimization of autoboot and background processes
Many apps run when you turn on your smartphone and run in the background, consuming memory and battery power. MIUI has a built-in autoload manager, but it is hidden from the user.
How to turn off autoboot:
- Go to Settings โ Applications โ Application Management.
- Select an app (such as AliExpress or SberBank Online).
- Press Auto Start and turn off the slider.
List of apps that can be safely disabled from auto-start:
- ๐ Marketplaces (AliExpress, Wildberries, Ozon)
- ๐ Social media (VK, OK, Twitter)
- ๐ฎ Playing games (if you donโt play daily)
- ๐ฐ News aggregators (Yandex.News, Google News)
Use the AutoStart Manager app (requires root) or ADB-team:
adb shell dumpsys deviceidle whitelist +com.example.app(Replace com.example.app with the application package you want to allow for auto-run).
It is also useful to limit background activity:
- In Settings โ Battery and Performance โ Battery Management, select โLimit background activityโ for unnecessary applications.
- Turn on Power Saving Mode for individual programs (e.g. Telegram or WhatsApp can work in the background but with limitations).
6.Reset to factory settings: when nothing helps
If the smartphone is unbearably slow and the cleanup is not working, then it will be hard reset, which will delete all data, including apps, photos and settings, but will return the device to its original speed.
How to do the reset correctly:
- Save important data on your PC or in the cloud (Google Drive, Mi Cloud).
- Go to Settings โ About the phone โ Reset settings.
- Select โErase all dataโ.
- Confirm the action and wait for the reboot (it will take 5-10 minutes).
After discharge:
- ๐ Do not restore data from backup MIUI โ It may contain the same garbage.
- ๐ฅ Install applications selectively, avoiding unnecessary ones.
- ๐ Turn off autoboot and background activity immediately after setting up.
โ ๏ธ Note: On some models (Xiaomi) 13T, Redmi Note 12 Pro+) After the reset, you may need to re-assign your Mi Account to unlock the bootloader!
๐ก
If the smartphone is still braking after reset, check the battery status at Settings โ Battery โ Battery status. A worn-out battery (capacity < 80%) can cause lags even on a clean system.
7. Additional tips to keep the system clean
To avoid bringing the smartphone to a state where deep cleaning is required, follow the simple rules:
- ๐ต Remove unused applications once a month, and even lightweight programs like a flashlight or a third-party calculator can clog the system.
- ๐ฅ Clean the Download folder once every 2 weeks. APK-Files, documents and garbage from messengers.
- ๐ Update regularly MIUI. In new versions optimize the system and close memory leaks.
- ๐ก๏ธ Use lightweight alternatives to heavy apps: YouTube Vanced instead of the official YouTube (no ad and with background playback); Telegram X instead of the standard Telegram (faster and less weight); F-Droid instead of Google Play for installing open source software.
For automatic cleaning, install MacroDroid and set up macros:
- ๐ค Cleaning cache when connecting to Wi-Fi.
- ๐ Closing background applications at charge level below 20%.
- ๐๏ธ Delete files from Download older than 30 days.