You open a gallery on a Xiaomi Redmi Note 12 or POCO X5 Pro to take a photo, and suddenly a notification appears, "Memory is full." Go to the settings - and there is only 500 MB of 128 GB free. The gallery is empty, the applications take a penny, and the system insists that there is no space.
This problem is typical of Xiaomiβs MIUI-based smartphones (especially versions 12-14), where the operating system aggressively reserves memory for cache, temporary files and service data. Often the fault is not the user files, but system debris that is not visible in the standard storage menu. In this article, we will discuss the unique methods of cleaning memory on Xiaomi, when there is βnothing to deleteβ, but something invisible takes place β from hidden caches to file system errors.
We wonβt recommend trivial things like βdelete unnecessary photosβ or βtransfer files to a memory card.β Instead, a deep analysis of the technical causes of memory overload and expert solutions, including working with ADB, hidden folders and developer settings. If youβre ready to take back control of your Xiaomi storage, read on.
1.Why does Xiaomi show "memory is full" when there are few files?
On Xiaomi smartphones (especially those with MIUI firmware) there are three key reasons for false memory filling that are not visible to the user:
- π Hidden cache MIUI: The system creates temporary files to speed up work (for example, /data/system/package_cache), rustic 5β10 GB and not displayed in the "Storage" menu".
- π File system errors: if the firmware fails or is incorrectly turned off, the file system F2FS/EXT4 They may βloseβ clusters by showing them as busy.
- π€ Reservations for updates: MIUI Automatically reserve up to 3-4 GB for download OTA-Updates, even if you donβt install them.
In addition, Xiaomi has a feature: folder /data/app (stored APK-application files) may be duplicated in /data/app-private or /data/app-lib, It's a firmware bug that occurs on Redmi models. 9, POCO X3 newer.
To confirm the problem, check the actual memory usage via ADB:
adb shell df -h /dataIf you see that /data is 90%+ full in the output, but there are few files in the phone settings, then hidden debris is to blame.
2. Cleaning the hidden MIUI cache through the engineering menu
The standard βStorageβ menu in Xiaomi shows only the tip of the iceberg. To remove hidden cache that has been accumulating for years, use the engineering menu (works on all models with MIUI 10-14):
- Open the phone app and enter the combination: ##4636##
- Go to the Storage section.
- Click Cache Data β Clear Cache (confirmation may be required).
If the combination doesnβt work (on the new Xiaomi 13/14), use an alternative method:
- π§ Enable Developer Mode: Go to Settings β The phone. β Version. MIUI and tap 7 times.
- π± Back to Settings β Additionally. β For developers.
- π§Ή Find the option Do not save actions (or Limit background processes) and set the value No background processes for 1 hour β this will forcibly clear the cache.
Attention! After cleaning the cache through the engineering menu, the phone can run slower than 10 to 15 minutes, which is normal. The system will recover critical data automatically.
βοΈ Preparation for cache cleanup
3. Disposal of garbage through ADB (for advanced users)
If standard methods donβt work, itβs time to connect to your phone via ADB (Android Debug Bridge), which allows you to remove system debris that you canβt see in the MIUI interface.
First, install ADB on your computer:
- Download the Google Platform Tools.
- Unpack the archive in the folder C:\adb.
- Turn on the phone debugging over USB (Settings β For developers).
Now connect the phone to the PC and execute commands in cmd:
adb shell
su
rm -rf /data/local/tmp/*
rm -rf /data/log/*
rm -rf /data/system/package_cache/*
rm -rf /data/dalvik-cache/*
exit
exitWhat these commands are removing:
| Team team. | What cleanses | Potential savings |
|---|---|---|
| rm -rf /data/local/tmp/* | Temporary files of APK installer | 100-500 MB |
| rm -rf /data/log/* | Logs of system and applications | 500 MB-2 GB |
| rm -rf /data/system/package_cache/* | Cash of MIUI packages | 1-5 GB |
| rm -rf /data/dalvik-cache/* | Dalvik cache (Java acceleration) | 300 MB-1 GB |
β οΈ Attention, rm command. -rf It deletes files irrevocably. Don't run it for folders like this. /data/data or /system β It's going to crash the system!
π‘
Before you run the ADB-command, back up adb backup -apk -shared -all -f backup.ab. This will save all applications and data in case of a crash.
4. Optimize /data partition with fsck
If the memory still shows 100% fullness after cleaning the cache, the problem may be a damaged file system. Xiaomi uses F2FS or EXT4, which, when it crashes, "lost" clusters, showing them as busy.
For verification and restoration:
- Turn off the phone.
- Press Volume Up + Power to enter Recovery Mode.
- Select Advanced β File System Check (or Repair Disk).
- Confirm the /data section check.
If you donβt have this option in your Recovery, use ADB:
adb shell
su
e2fsck -f /dev/block/by-name/userdataThe process can take 10 to 30 minutes.
- π Reboot the phone.
- π Check the free space in the Settings β Warehouse.
- π οΈ If errors remain, repeat the check or consider resetting before factory settings (see Section 6).
What if the fsck doesnβt work?
5. Transfer applications to a memory card (the right way)
Many users are trying to move applications to SD-map through the standard menu MIUI, But they're faced with a mistake, "Not enough space," or "The application doesn't support portability." MIUI Blocks the transfer for most applications by default.
We'll get around this limitation.
- Install. SD-class UHS-I (U1/U3) β cheap cards won't do.
- Format it as internal memory: Go to Settings β Storage β Memory Map. Select Format it as internal storage. Attention! After that, the card will be encrypted and will not be read on other devices.
ADB
adb shell pm set-install-location 2This command forces the system to install new applications on the memory card by default.
Limitations of the method:
- β Not all applications will work from a card (especially system and with a computer). OBB-file).
- β οΈ Application speeds may drop (depending on class) SD-map).
- π After the map is removed, the applications will stop working.
For Xiaomi models with MIUI 12+, there is an alternative β App Twin (app cloning), which allows you to create a βlightweightβ copy of the messenger or social network, which takes up less space.
6. Reset to factory settings without data loss (is it possible?)
If all the previous methods didn't work, the last resort is to reset the phone, but can you do it without losing data? Partly, yes, if you use selective reset.
MIUI has a hidden option to reset only system settings without affecting user files:
- Go to Settings β About the phone β Reset settings.
- Select Resetting (not βReset All Data!β).
- Confirm the action. The phone will reboot, but the photos, videos and documents will remain.
What will be removed:
- π± Settings Wi-Fi, Bluetooth, sound.
- π Passwords and accounts (except for the main Mi Account).
- π― Personalization (wallpaper, themes, widgets).
What's left:
- πΈ Photo and video in DCIM.
- π Documents in Downloads.
- π΅ Music and other media files.
β οΈ Attention, on Xiaomi models with MIUI 13/14 (for example, Xiaomi 12T, Redmi Note 11 Pro+) Even a βsoftβ reset can delete some of the data due to encryption FBE (File-Based Encryption!Be sure to back up via Mi Cloud or Google Drive before resetting.
π‘
Factory reset should be the last option, and 80% of the time, the problem is solved by cleaning the cache and checking the file system (sections 2-4).
7.Alternative methods: from cloud storage to memory replacement
If none of these methods worked, consider radical or hardware solutions:
- βοΈ Cloud storage with automatic download: Configure Google Photos to automatically upload photos/video in the original quality (not "high"). Use Mi Cloud (gives 5GB free) to back up contacts and notes.
- π§ Replacement of memory chip (for advanced): On older models (Redmi) 4/5, Mi A1) EMMC memory often fails. Replacement cost: 3β8 thousand rubles (depending on the volume).
- π± Using your phone as a flash drive: Connect Xiaomi to your PC in File Transfer Mode (MTP). Transfer all media files to your computer, leaving only apps on your phone.
For owners of POCO F3, Xiaomi 11T and other flagships with UFS 3.1, there is another option: overclocking memory through the kernel. Some custom firmware (such as Pixel Experience) optimizes storage, reducing fragmentation. However, this requires unlocking the bootloader and can be insecure.
8 How to prevent re-filling of memory?
To prevent the problem from returning in a month, follow these rules:
- π΅ Limit the background activity of applications: Go to Settings β Annexes β Permits β Autostart and disable autostart for unnecessary applications. c Settings β Battery β Power saving mode: Enable background restriction for all applications except instant messengers.
- ποΈ Set up automatic cleaning: Enable Settings β Warehouse β Autoclean (deletes cache once a week) Install Files by Google and set up automatic deletion of duplicates and temporary files.
- π² Monitor Updates: Turn off automatic download updates MIUI In Settings β The phone. β Updating the system β βοΈ β Before manually updating, check if there is enough space (required) ~3-4 GB of free space).
For models with MIUI 14 (such as Xiaomi 13 Lite), there is a useful feature called Easy Mode (Settings β Special Options β Easy Mode) that turns off animations and background processes, reducing memory load.
Preventive checklist (once a month):