You see "Memory is full" on your Xiaomi screen again, even though it seems like nothing else has been installed? This problem is familiar to millions of smartphone users of the brand, from the budget Redmi to the flagship Mi 13 Ultra. Even with 256 GB on board, memory can melt like snow in the spring, and after cleaning up a couple of days, the situation repeats. What's the matter?
It's not just your habits โ MIUI It has features of working with memory that are rarely advertised. 10-15% Some applications (especially Google Play Services) are cacheing up to giant sizes, but there are other, less obvious reasons, from hidden logs to file system errors. F2FS, In this article, we will not just list the standard cleaning tips, but will analyze the system mechanisms that cause memory to leak and give unique solutions for cleaning. MIUI 12-14, which are not officially documented.
1.The system partition "Other" - the black hole of your memory
Open Settings โ About Phone โ Memory and notice the Other section (or โOtherโ in English). For many Xiaomis, it takes 10 to 30 GB โ and that despite the fact that you didnโt install any heavy apps! What does it include?
This section includes:
- ๐ Cache of system applications (including MIUI Launcher, Security, Gallery, which is not cleaned by standard means.
- ๐ Temporary update files (even if you havenโt updated in a long time, they may still be available).
- ๐ Logs and dumps of the system (created when crashes, but often not deleted automatically).
- ๐ Encrypted data (such as fingerprints or Mi Account data).
The worst part is that MIUI doesn't provide the tools to clean this partition, but there are workarounds.
โ ๏ธ Note: Do not use applications like this SD Maid or Files by Google to clean system files โ they can delete critical data and cause crashes MIUI. Instead:
- Go to Settings. โ Annexes โ Application management โ Three points (โฎ) โ Size-based sorting.
- Find MIUI System, Security, Launcher applications and manually clear their cache.
- To delete logs, use the command in ADB: adb shell pm trim-caches -f 1000 (requires developer mode on and PC connection).
2. cache of Google Play Services and other system applications
Google Play Services is Xiaomiโs main memory eater, and its cache normally takes 200-500MB, but can grow to 5-8GB if it crashes.
Reasons:
- ๐ Automatic map updates (if you use Google Maps or Waze).
- ๐ฑ Synchronize your contacts and data (especially if you have multiple accounts).
- ๐ ๏ธ Errors in Google Services (for example, after the update) MIUI).
How to clean:
- Go to Settings โ Apps โ All Apps โ Google Play Services โ Memory โ Clear the cache.
- If the button is inactive, turn off automatic app updates in Google Play.
- For radical cleaning, do: adb shell pm clear com.google.android.gms (this will reset some Google services settings, but free up to 3-5 GB).
๐ก
If the cache grows quickly again after cleaning, turn off background activity for Google Play Services in the battery settings (Settings โ Battery โ Application Selection โ Google Play Services โ Background activity โ Limit).
3.Duplicate photos and hidden folders MIUI Gallery
MIUI Gallery is one of the most voracious apps on Xiaomi, and it not only stores the original photos, but also creates:
- ๐ธ Miniatures (.thumbnails folder at the root of memory).
- ๐จ Edited copies (even if you just opened the photo in the editor).
- โ๏ธ Cloud sync cache (if you use Mi Cloud).
- ๐.nomedia folder with service files.
How to make room:
- Delete the.thumbnails folder through any file manager (e.g. Mi File Manager or Solid Explorer).
- At Gallery, go to Albums โ The Basket and clean it.
- Turn off automatic thumbnail creation in the gallery settings (Settings โ Additional โ Create thumbnails โ Off).
How to find hidden folders in MIUI?
4. F2FS file system errors and memory fragmentation
Xiaomi uses the F2FS (Flash-Friendly File System) file system on most devices, which is optimized for flash memory, but has two critical drawbacks:
- Data fragmentation โ over time, files are โbrokenโ into small pieces, and the system spends more space on storing them.
- Non-release of blocks โ After deleting files, some memory blocks remain โreservedโ and are not available for new data.
How it manifests itself:
- ๐ Memory โmeltsโ even after deleting files.
- ๐ข The phone starts to slow down when recording large files (for example, video) 4K).
- ๐ After the reboot, it is temporarily released. 1-3 GB (this is just โhungโ blocks).
Decisions:
| Method | Efficiency | Risks. |
|---|---|---|
| Defragmentation through ADB | High (frees 5-15% of memory) | Requires root or unlocked bootloader |
| Reset to factory settings | Medium (removes fragmentation but deletes data) | Loss of user data |
| Formatting through TWRP | Maximum (F2FS complete cleaning) | Hard for beginners, the risk of brick |
| Use of fstrim | Low (only for block release) | Safe, but ineffective. |
The safest way is to perform fstrim through ADB:
adb shell fstrim -v /dataThis command will tell the system which memory blocks can be released. Repeat it every 1-2 months.
๐ก
If the memory is still running out quickly after all the manipulations, the problem may be the hardware wear of the flash memory. /proc/emmc (significance life_time_A should be higher 80%).
5. Automatic download of updates and firmware
Xiaomi aggressively downloads updates in the background - even if you've disabled the automatic installation.Firmware files can weigh 2-4 GB and stored in a folder /cache or /data/ota_package.
How it works:
- ๐ฅ Updates are loaded in the background through MIUI Updater.
- ๐๏ธ Files are often not deleted after installation (especially if the update is interrupted).
- ๐ The system can download the same firmware several times in case of failures.
How to clean:
- Delete /cache folder via TWRP or ADB: adb shell rm -rf /cache/*
- Manually check the folder. /data/ota_package (root).
- Turn off automatic update downloads in Settings โ The phone. โ Updating the system โ โฎ โ Settings โ Automatic booting over Wi-Fi.
Backup of important data
Check the battery (minimum 50%)
Disable automatic installation of updates
Use a stable PC connection (for ADB)
-->
6. โInvisibleโ applications: preinstalled software and services
Even after the โcompleteโ memory cleaning, Xiaomi still has undeletable system applications that take up space and work in the background.
| Annex | Size (MB) | Can I remove it? |
|---|---|---|
| Mi Video | 150-300 | Yes (via ADB) |
| Mi Music | 100-200 | Yes. |
| Mi Browser | 80-150 | Yes. |
| GetApps | 50-100 | Yes. |
| MIUI Daemon | 30-50 | No (critically for the system) |
How to remove unnecessary apps without root:
- Connect your phone to your PC and enable USB Debugging.
- Run the command to delete (e.g. for Mi Video): adb shell pm uninstall --user 0 com.miui.videoplayer
- Reset the device.
โ ๏ธ Note: Do not remove applications named com.android. or com.xiaomi. (e.g. com.xiaomi.finddevice) โ this may cause key features to fail (such as device search or synchronization).
7 Viruses and Malware: Hidden Miners and Advertising Modules
If memory runs out too quickly (e.g. 1-2 GB per day), the cause may be:
- ๐ต๏ธ Hidden miners (using the resources of the phone to mine cryptocurrency).
- ๐ข Promotional SDK (embedded in some applications from GetApps or third-party sources).
- ๐ฆ Trojans that download files in the background.
Signs of infection:
- ๐ Quick battery discharge even in standby mode.
- ๐ถ Increased mobile internet traffic.
- ๐ฅ Overheating your phone for no apparent reason.
How to check and delete:
- Install Malwarebytes or Dr.Web Light and perform a deep scan.
- Check the list of running processes through ADB: adb shell top -m 20 (look for suspicious processes like com.android.miner).
- Remove suspicious apps and clear the /data/local/tmp folder.