You open Xiaomi's settings to install a new app, but you see a red sign saying, "Memory is full." 10-15 And you haven't saved any photos or videos in a long time. Is that familiar? It's one of the most common problems that Redmi, Poco and Mi have with their smartphones. MIUI.
In this article, we're not going to talk about the trivial things like "remove unnecessary photos," but instead, we're going to look at 10 hidden reasons why memory clogs itself, from the system cache to MIUI chips you didn't know you had, and most importantly, we're going to give you step-by-step instructions on how to free 5 to 15 GB of memory without resetting to factory settings.
Spoiler: 80% of the time, itβs not your actions that are to blame, but automatic MIUI processes that donβt show up in the standard file manager, such as duplicate updates, error logs, or cache of Xiaomi smart services that canβt be turned off via the menu.
1. App cache and system cache: why they take up gigabytes
The first thing that comes to mind when you don't have enough memory is to clear the cache, but few people know that in MIUI, the cache is divided into three types, and the standard cleaning through the settings affects only one of them.
πΉ User app cache β temporary files of messengers, social networks and games. For example, Telegram can store up to 5 GB of media files, and TikTok β up to 3 GB of preloaded videos. β Annexes β Application management.
πΉ Cache of system applications - data MIUI-Services like com.miui.gallery, com.android.providers.media, or com.xiaomi.midrop, which cannot be deleted and can be cacheed to a maximum of three times. 1-2 GB.
πΉ Dalvik-cache is a hidden cache of the Android virtual machine that is created when you install / update applications. MIUI It often does not clean automatically and can eat up to 500 MB-1 GB.
- π± How to check: Install Files by Google from Play Market β open the section "Cleaning up" β See the volume of "App cache" and "Files" APK".
- π§Ή How to clean: Dalvik-cache requires access to recovery (see section 5). Regular cache is cleaned through Settings β Memory. β Clear the cache.
- β οΈ Important: Do not clear the Google Play Services and Services Framework cache β this can break account sync.
MIUI Optimized Storage: Why the system downloads unnecessary files
In 2021, Xiaomi added Optimized Storage to MIUI 12.5+, which is designed to automatically delete unnecessary files, but in practice it often works the opposite way.
The feature has three hidden mechanisms that can clog up 3-8 GB of memory per month:
- Pre-loading updates. MIUI downloads full firmware packages (1.5β3 GB) in advance, even if you do not plan to update. /data/ota_package.
- Smart recommendation cache: com.miui.systemAdSolution collects data about your actions and downloads promotional materials (banners, videos) for the m-stor. It takes up to 1 GB.
- Duplicate media files: When you transfer files via Mi Drop or ShareMe, temporary copies are created in /storage/emulated/0/MIUI/Share, which are not always deleted.
π§ How to turn off:
- Go to Settings β Memory β Storage settings.
- Disable the options: "Automatic download updates" "Storage optimization" (if any) "Content recommendations"
ota_package
Root Explorer
Mixplorer
π‘
If you have lags after you turn off Optimized Storage, restart your phone. The system will restructure the file index, and performance will recover.
Error Logs and Dumps of the System: Invisible Memory Eaters
Every time an application or MIUI system crashes, an error log (a file with the.log or.dmp extension) is created. Under normal conditions, these files take up several megabytes. But on Xiaomi, because of the kernel, they can grow to 500 MB-2 GB.
Where to look:
- π /data/anr β application error tracing (ANR β Application Not Responding).
- π /data/tombstones β memory dumps in case of system processes failure.
- π /data/log β Logic of modules MIUI (For example, bugreport-miui*.zip).
π How to remove:
- Install FX File Explorer or Solid Explorer (root rights required).
- Go to /data and delete the anr, tombstones, log folders.
- If you don't have root, use it. ADB-Command: Adb shell rm -rf /data/anr/* adb shell rm -rf /data/tombstones/* adb shell rm -rf /data/log/*
β οΈ Note: Removing files from /data rootless can cause failure MIUI. If the phone stops turning on after cleaning, reset via Fastboot (fastboot erase userdata).
4. Duplicates and "garbage" of the gallery: why photos are taken in the 2-3 more
The Gallery app in MIUI has two dangerous features:
- Automatic thumbnail creation. Each photo/video is previewed in a folder. /storage/emulated/0/DCIM/.thumbnails. Primary 1000 photo +500β800 MB.
- Duplicates when editing. If you cropped a photo in a standard editor, the original remains in the DCIM/.edits folder, and the edited version is saved as a new file.
π Comparison of space occupied:
| Type of file | Original size. | Hidden "garbage" | Totally. |
|---|---|---|---|
| 1000 photos (12 MP) | 3GB | 1.2 GB (miniatures + doubles) | 4.2 GB |
| 50 video (Full HD, 1 min) | 2GB | 300MB (player cache) | 2.3 GB |
| 100 screenshots | 200 MB | 150 MB (miniatures) | 350MB |
π How to clean up:
- πΌ Delete the folders: /DCIM/.thumbnails, /DCIM/.edits, /Pictures/Screenshots/.thumbnails.
- π Use Files by Google β "Cleanup" β "Duplicate files".
- π± Turn off auto-creating thumbnails: Gallery settings β Additionally. β Deactivate "Quick viewing".
βοΈ Cleaning up Xiaomi Gallery
5. Hidden Partitions and MIUI Backup Storage
There are two hidden mechanisms in MIUI that are not mentioned in the documentation:
- Backup /data/miui: This is where you store backups of settings, themes and Mi Account data, up to 1.5GB.
- Virtual disk /data/user_de. Used for isolated storage of application data (e.g. Mi Pay or Mi Home) 800 MB.
π How to get access:
- Root-rights: Use Root Explorer and delete unnecessary files manually.
- No root: Connect your phone to your PC. Enter in ADB: adb shell su cd /data/miui ls -la Remove old backups (files with the.bak or.backup extension).
β οΈ Note: Do not delete files with the.dex or.odex extension in /data/user_de β It can break Mi Pay and other services, and it's only safe to clean the cache and tmp folders.
What happens if you delete everything from /data/miui?
6 MIUI Updates: Why They Take Place Even After Installation
When updating MIUI via OTA (over the air), the system stores:
- π¦ Complete firmware package (update.zip, 1.5β3 GB /data/ota_package.
- π The old version of the firmware in /data/backup (kickback).
- π Logs of installation in /cache/recovery.
π How to disable automatic download of updates:
- Go to Settings β About the phone β System update.
- Click on three points β βSettingsβ β turn off βAutomatic boot over Wi-Fiβ.
- In Settings β Memory β Storage settings, disable βAuto-Soft Updateβ.