Why Xiaomi is running out of memory: hidden reasons and 100% ways to make room

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:

  1. Go to Settings. โ†’ Annexes โ†’ Application management โ†’ Three points (โ‹ฎ) โ†’ Size-based sorting.
  2. Find MIUI System, Security, Launcher applications and manually clear their cache.
  3. To delete logs, use the command in ADB: adb shell pm trim-caches -f 1000 (requires developer mode on and PC connection).
๐Ÿ“Š How often do you clear your memory on Xiaomi?
Once a week.
Once a month
Only when the place ends.
Never clean.

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:

  1. Go to Settings โ†’ Apps โ†’ All Apps โ†’ Google Play Services โ†’ Memory โ†’ Clear the cache.
  2. If the button is inactive, turn off automatic app updates in Google Play.
  3. 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).

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:

  1. Delete the.thumbnails folder through any file manager (e.g. Mi File Manager or Solid Explorer).
  2. At Gallery, go to Albums โ†’ The Basket and clean it.
  3. Turn off automatic thumbnail creation in the gallery settings (Settings โ†’ Additional โ†’ Create thumbnails โ†’ Off).
How to find hidden folders in MIUI?
Enable the display of hidden files in Mi File Manager: click โ‹ฎ โ†’ Settings โ†’ Show hidden files. Alternatively, use the command to ADB: adb shell settings put global show_hidden_files 1

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:

  1. Data fragmentation โ€“ over time, files are โ€œbrokenโ€ into small pieces, and the system spends more space on storing them.
  2. 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:

MethodEfficiencyRisks.
Defragmentation through ADBHigh (frees 5-15% of memory)Requires root or unlocked bootloader
Reset to factory settingsMedium (removes fragmentation but deletes data)Loss of user data
Formatting through TWRPMaximum (F2FS complete cleaning)Hard for beginners, the risk of brick
Use of fstrimLow (only for block release)Safe, but ineffective.

The safest way is to perform fstrim through ADB:

adb shell fstrim -v /data

This 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:

  1. Delete /cache folder via TWRP or ADB: adb shell rm -rf /cache/*
  2. Manually check the folder. /data/ota_package (root).
  3. 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.

AnnexSize (MB)Can I remove it?
Mi Video150-300Yes (via ADB)
Mi Music100-200Yes.
Mi Browser80-150Yes.
GetApps50-100Yes.
MIUI Daemon30-50No (critically for the system)

How to remove unnecessary apps without root:

  1. Connect your phone to your PC and enable USB Debugging.
  2. Run the command to delete (e.g. for Mi Video): adb shell pm uninstall --user 0 com.miui.videoplayer
  3. 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:

  1. Install Malwarebytes or Dr.Web Light and perform a deep scan.
  2. Check the list of running processes through ADB: adb shell top -m 20 (look for suspicious processes like com.android.miner).
  3. Remove suspicious apps and clear the /data/local/tmp folder.

FAQ: Frequent questions about memory on Xiaomi

Why is the memory not freed after the files are deleted?
This is due to the features of the F2FS file system. Deleted files are marked as โ€œfreeโ€, but the memory blocks are not released immediately. To force them to clear, perform: adb shell fstrim -v /data Or reboot the phone - after a restart, the system usually releases the โ€œhangโ€ blocks.
Can I increase memory on Xiaomi with a microSD card?
Technically yes, but with reservations: ๐Ÿ“ฑ Starting with MIUI 12, supports Adoptable Storage (the card is formatted as internal memory), but it slows down the phone. ๐Ÿ”„ Memory card applications are slower and can lag. โš ๏ธ When you extract the map, the applications installed on it will stop working. It is better to use the card only to store media files (photos, videos, music).
Why does MIUI show less memory than the specifications?
This is normal: part of the memory is reserved for: ๐Ÿ“Œ System section (/system, /vendor โ€” before 5-8 GB). ๐Ÿ“Œ Section for updates (/cache, /recovery โ€” before 1 GB). ๐Ÿ“Œ Service data (log files, dumps - up to 500 For example, on Xiaomi. 12T s 256 GB is really available ~230-235 GB: This is not a defect, but a feature of the Android architecture.
How to transfer applications to a memory card without root?
Standard means MIUI It can not be done, but there is a workaround: Connect the phone to the PC and turn on Debugging on USB. Follow the command: adb shell pm set-install-location 2 (this will force the system to install applications on the site). SD-Default map. Reinstall the desired applications. โš ๏ธ Not all applications support mapping (especially system-based ones).
Does resetting to factory settings help free up memory?
Yes, but temporarily, after the reset: โœ… All user data and applications will be deleted. โœ… Cache and service files will be cleared. โŒ However, through 1-2 The problem may return if systemic causes are not addressed (e.g. errors). F2FS Or bloated cache of Google Play Services, we recommend that you immediately perform: adb shell fstrim. -v /data This will help to avoid filling up memory quickly.