Why Xiaomi 9T is getting clogged with garbage and how to fix it
Xiaomi 9T (also known as Redmi K20 in some regions) is one of the brandโs most popular devices, but even its 64/128 GB of memory is filled with unnecessary files over time. The reason for the accumulation of garbage lies in the peculiarities of MIUI: aggressive caching of applications, duplicate media files, residual data after deleting programs and hidden system log files. If you notice that free space is melting before your eyes, and your phone has begun to slow down, itโs time to conduct a general cleaning.
In this article, we will look at all the cleaning methods, from standard MIUI tools to hidden functions and third-party utilities. It is important to understand that simply removing the cache through the settings will only have a temporary effect. Deep cleaning will require working with folders.thumbnails, DCIM/.trash, analyzing large files and even manually removing the remnants of uninstalled applications. Ready to return your Xiaomi 9T performance in 2019?
Before you start, check the current memory state: Settings โ About Phone โ Memory. If the graph shows occupancy over 85%, this is a critical threshold after which the system begins to slow down. Pay attention to the System Data section - if it takes 10+ GB, then there are a lot of unnecessary logs and temporary files.
Standard MIUI cleaning tools
Start with the built-in features offered by MIUI 12/13/14 firmware, which are non-super-user rights and are safe for beginners, the main tool is Cleanup (formerly called Security), and find it through a search in settings or along the way:
Settings โ Applications โ CleaningSeveral options are available in this section:
- ๐งน Quick cleaning - removes app cache, temporary files and residues from the cart: +1-3 GB of free space.
- ๐ Deep Cleanup โ Analyzes rarely used files, duplicates, and large media, may suggest removing screenshots older than 30 days or unused ones APK.
- ๐ Large File Search โ Shows files as small as 50MB that can be manually deleted.
Special attention is paid to the section "Residual files" where MIUI collects data from remote applications that have not been completely cleaned, for example, after uninstallation of Facebook or TikTok, up to 500 MB of garbage can remain in /Android/data and /Android/obb folders.
โ ๏ธ Note: Do not delete files from the folder /Android/obb For installed games (such as Genshin Impact or Call of Duty Mobile), this will cause the game to crash and the need to download data again.
Run "Quick Clean" in the "Clean Up" section | Check the "Residual Files" section | Remove unnecessary APKs from the Download folder | Clear the Recycle Bin in the Gallery and File Manager-->
Manual cleaning of hidden folders and cache
Standard MIUI tools remove only the tip of the iceberg. The main debris is hidden in system folders that are not visible through the standard file manager. Use FX File Explorer, Solid Explorer or Xiaomi's built-in Files (turn on hidden files in the settings) to access them.
Where to look for garbage:
- ๐ผ๏ธ DCIM/.thumbnails โ Image thumbnails and videos. You can delete them completely (they will recover automatically). 1-2 GB.
- ๐๏ธ DCIM/.trash โ Even after cleaning through the interface, there may still be files left.
- ๐ฆ Android/data and Android/obb โ Residual data from remote applications. Folders with the names of non-existent programs can be easily deleted.
- ๐ MIUI/debug_log โ It is safe to delete all files older 7 days.
To clear the cache of individual applications (for example, YouTube or Telegram, which can take up to 500 MB+):
Settings โ Applications โ Application Management โ [Select App] โ Memory โ Clear cacheโ ๏ธ Note: Do not clear the cache for Google Play Services, MIUI System and Android System WebView, which can cause disruptions to Google services and system features.
๐ก
If the app is slower after cleaning the cache (such as Instagram or VK), just restart it.
Cleaning through Recovery and Fastboot modes
If the smartphone is slowing down or standard methods are not working, you can use Recovery mode. This is a low-level tool that allows you to reset the partition cache (Wipe Cache Partition) without losing user data.
- Turn off the phone.
- Press Volume Up + Power before the Mi logo appears.
- From the Recovery menu, select Wipe & Reset โ Wipe Cache (manage volume buttons, confirmation โ power button).
- Reboot the device (Reboot โ System)
This method clears dalvik-cache, a system cache that can take up to 1-3 GB and fragment over time, and after the procedure, the first switching on will take 1-2 minutes longer (the system will restore the cache).
For experienced users, a more radical method is available - reset via Fastboot (without data loss):
fastboot erase cacheThis command removes the partition cache through the computer, and you'll need an unlocked bootloader and drivers installed. ADB/Fastboot.
What to do if Recovery does not start?
Removing duplicates and optimizing media files
One of the main memory eaters on Xiaomi 9T is duplicate photos and videos.
- ๐ธ Import photos from other devices (for example, via Mi Mover or ShareMe).
- ๐ Automatic backup in Google Photos or Mi Cloud.
- ๐ฑ Use third-party galleries (QuickPic, Simple Gallery) that create their own thumbnails.
To search for duplicates, use the applications:
- Files by Google (built-in โClean up โ Duplicatesโ feature).
- Duplicate Files Fixer (allows you to search by content, not just by name)
- CCleaner (Section "Photo Optimization").
Optimizing media without loss of quality will help Google Photos in the "High Quality" mode (compression to 16 MP for photos and 1080p for videos), this will reduce the gallery size by 30-50% without any apparent difference.
| Type of file | Average size | How to optimize |
|---|---|---|
| Photo (JPEG) | 3-8 MB | Reduce to 85% quality (savings ~40%) |
| Video (MP4) | 50-200 MB/min | Recode to 1080p/30fps (savings ~60%) |
| Screenshots (PNG) | 1-3 MB | Convert to JPEG (savings ~70%) |
| GIF/MEM | 5-15 MB | Reduce FPS to 15 frames/s |
Cleaning system logs and dumps
Xiaomi 9T on MIUI actively maintains system logs, especially if you have enabled debugging over USB or use functions like Screen Record or Developer Mode.
/sdcard/MIUI/debug_log/
/sdcard/log/
/sdcard/bugreports/It is safe to remove:
- ๐ Files with.log,.txt extension (application logs).
- ๐ฅ๏ธ Anr, Tombstones folders (system crash dumps).
- ๐ *.prof files (performance profiles).
To automate the process, use SD Maid (CorpseFinder section) or 1Tap Cleaner. These applications scan system folders and find files that can be deleted without risking stability.
โ ๏ธ Note: Do not delete files in /data/log/ This can cause a cyclical reboot of the device, and it requires Magisk or a cleanup of this folder. TWRP.
๐ก
Regular log cleaning (once every 1-2 months) prevents memory fragmentation and speeds up MIUI back-end optimization.
Removing Preloaded Applications (Bloatware)
Xiaomi 9T comes with a lot of pre-installed apps that canโt be removed by standard means.
- ๐ต Mi Music, Mi Video (Duplicate Google Play Music and YouTube).
- ๐ฐ Mi Browser, News (Advertising Services).
- ๐ Mi Pay, Mi Credit (not available outside China/India).
- ๐ฎ Game Turbo, App Vault (Few people use it).
You can remove them in two ways:
- Through ADB (no root): adb shell pm uninstall --user 0 com.miui.videoplayer adb shell pm uninstall --user 0 com.miui.player A full list of packages for Xiaomi 9T can be found on the XDA Developers or 4PDA forums.
- Using Magisk (with root): Use the Universal Debloater module or Xiaomi Debloater for mass removal.
If you donโt want to mess with ADB, just turn off unnecessary apps: Settings โ Apps โ Application Management โ [Select] โ Disable.
This wonโt make room, but it will stop background activity.