You open a gallery on the Xiaomi Redmi Note 12 or try to install an app, but the system stubbornly gives the message: “Not enough memory”, even though the settings show 10+ GB of free space. The situation is absurd, but common, it is faced by owners of devices on MIUIs from Redmi 9A to Xiaomi 13 Ultra. What is the catch and how to regain control of memory?
The error isn't always due to real space shortages. More often than not, MIUI system bugs, misallocation of the application partition, or cache-clogged Google and Xiaomi services. This article is 7 proven ways to solve the problem, including hidden settings and ADB commands for power users. Let's start with simple methods and get to the radical ones if the error persists.
Why Xiaomi is lying about the “lack of memory”?
MIUI sometimes shows a false error due to the way it works with partitions, and here are the key reasons:
- 📱 Overflowed section /data — Even if you see free space in the Settings, the system can reserve it for updates or cache.
- 🗑️ Cache apps and services — especially Google Play Services and Mi Cloud, which take up gigabytes of “invisible” memory.
- 🔄 Partition mounting errors - after updating MIUI or resetting the file system may not work properly.
- 📦 Restrictions for Third-Party Applications — MIUI Artificially restricts access to memory for some programs (e.g., file manager).
Interesting fact: on some models (e.g. Poco) X3 Pro) an error appears when trying to transfer applications to SD-The card, although the phone's memory is free, is due to a bug in the MIUI 12.5-14, which is still not fixed in some regional firmware.
Method 1: Cleaning the cache of system applications
Start with the safest method, which is to clear the cache of the services that most often clog up memory.
- 🔍 Google Play Services (can take up to 5GB of cache!).
- ☁️ Mi Cloud and Xiaomi Account sync data in the background.
- 📱 Security (Security) – Antivirus and Optimizer MIUI.
- 🛒 Google Play Store and Download Manager.
How to clear the cache:
- Go to Settings → Applications → Application Management.
- Slip on the three dots in the upper right corner → Sort by size.
- Select the application from the list above → Storage → Clear the cache.
- For Google Play Services, also click Space Management → Clear all data (this will delete temporary files, but will not affect your account).
☑️ Checklist for cleaning the cache
Important! Once the cache is cleared, Google Play Services can temporarily slow down, which is normal, and after 5-10 minutes, the work is stabilized.
Method 2: Release /data partition via ADB
If cleaning the cache didn't help, the problem could be in a crowded /data partition that MIUI doesn't show in standard settings. To free it, you'll need a computer and USB debugging.
Instructions:
- Turn on Developer Mode: Go to Settings → About Phone and tap 7 times on the MIUI version.
- Return to Settings → Additional → For developers and activate Debugging over USB.
- Connect your phone to your PC, install ADB Tools, and execute the commands:
adb shell
su
df -h /data # Checking the vacant space
cd /data/app
rm -rf.odex.oat *.vdex # Delete temporary Dalvik cache files
reboot⚠️ Attention: Command rm -rf It deletes files irrevocably. Don't run it in other folders!
After the reboot, check if the error has disappeared. If not, move on to the next method.
What if the ADB can’t see the device?
Method 3: Reset the “Security” and “Storage” settings
MIUI has a hidden mechanism for backing up memory for system needs, sometimes these reserves are "hanged" and not released, to reset them:
- Go to Settings → Applications → Application Management.
- Find Security → Storage → Clear the data.
- Then open Settings → Storage → Storage settings (three dots in the corner) → Reset settings.
This method helps if the error occurred after updating MIUI or installing a large number of applications.
| Method | Efficiency | Risks. | Implementation time |
|---|---|---|---|
| Clearing the cache | ⭐⭐⭐ | Low. | 5-10 minutes |
| ADB-cleaning /data | ⭐⭐⭐⭐ | Medium (PC requires) | 15-20 minutes |
| Resetting "Security" | ⭐⭐⭐ | Low. | 2-5 minutes |
| Formatting as new | ⭐⭐⭐⭐⭐ | High (data loss) | 30+ minute |
Method 4: Transfer applications to SD-card (if supported)
On some models (Redmi Note 10 Pro, Poco) F3) MIUI allows you to transfer applications to SD-It does it in a non-obvious way. Here's how to do it right:
- Put it in. SD-map (preferably class) UHS-I higher).
- Go to Settings → Storage → Internal Memory → Applications.
- Select the application → Move it to SD-map.
- If the option is inactive, try formatting the card as Internal Storage (all data on it will be deleted!):
Settings → Storage → SD- Card → Three points → Settings → Format as internal⚠️ Note: After formatting SD-The internal map cannot be retrieved without data loss, and some apps (such as WhatsApp) do not support portability.
💡
If the phone can't see SD-Map, try formatting it on PC in format FAT32 (for cards up to 32 GB) or exFAT (for cards over 32 GB) with a cluster size of 32 KB.
Method 5: Update MIUI or roll back firmware
The “lack of memory” error often appears after a MIUI update, especially on beta versions or regional firmware (e.g. MIUI Global vs MIUI China).
- 🔄 Update your firmware to the latest stable version via Settings → Updating the system.
- 📉 Reverse to the previous version if the error occurred after the update:
- Download the desired version of MIUI from the official website.
- Rename the file to update.zip and place it in the root of internal memory.
- Go to Settings → System Update → Three Dots → Select a firmware file.
If the rollback doesn’t help, try flashing your phone through Fastboot (instructions for power users).
💡
Before rolling back the firmware, back up via Settings → Additional → Backup and Reset. This will save contacts, SMS and settings, but not apps!
Method 6: Complete reset to factory settings
If none of these methods work, then the radical solution is hard reset, which deletes all the data, but puts the phone back on track.
- Save important data (photos, contacts) to your PC or cloud.
- Go to Settings → Additional → Backup and Reset → Reset settings.
- Select Delete all data (including internal memory).
- After reset, do not restore data from the backup immediately – first check if the error has disappeared.
If the problem was in corrupted system files, resetting will help in 90% of cases, if not, it may be the physical wear of memory (relevant to older models, such as the Redmi 4X or Mi A1).
Method 7: Checking the health of internal memory
On devices older than 3-4 years, the error can be associated with wear of flash memory (especially if the phone often overheated or discharged to zero).
- 📊 Annexes AIDA64 (storage → State of health).
adb shell
su
cat /sys/block/mmcblk0/device/life_timeIf the value life_time exceed 80–90%, The memory is worn out, and the only way out is to replace the chip (in the service center).