“Not enough memory” on Xiaomi in the free space: real reasons and what to do

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.

📊 How often do you have a memory deficit error on Xiaomi?
Constantly.
Sometimes.
It used to be, it's not now.
Never.

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:

  1. Go to Settings → Applications → Application Management.
  2. Slip on the three dots in the upper right corner → Sort by size.
  3. Select the application from the list above → Storage → Clear the cache.
  4. 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

Done: 0 / 4

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:

  1. Turn on Developer Mode: Go to Settings → About Phone and tap 7 times on the MIUI version.
  2. Return to Settings → Additional → For developers and activate Debugging over USB.
  3. 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?
Make sure you have Xiaomi drivers installed (download from [official website](https://new.c.mi.com/global/miuidownload/index)). Try using another one too. USB-cable (original) and port USB 2.0 PC-only.

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:

  1. Go to Settings → Applications → Application Management.
  2. Find Security → Storage → Clear the data.
  3. 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.

MethodEfficiencyRisks.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:

  1. Put it in. SD-map (preferably class) UHS-I higher).
  2. Go to Settings → Storage → Internal Memory → Applications.
  3. Select the application → Move it to SD-map.
  4. 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:
  1. Download the desired version of MIUI from the official website.
  2. Rename the file to update.zip and place it in the root of internal memory.
  3. 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.

  1. Save important data (photos, contacts) to your PC or cloud.
  2. Go to Settings → Additional → Backup and Reset → Reset settings.
  3. Select Delete all data (including internal memory).
  4. 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_time

If 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).

How do you extend memory?
Avoid battery drain (keep the charge at 20-80%); don’t use cheap high-current charges; clean the cache regularly; and don’t store thousands of small files (they fragment memory).

Frequently asked questions

Why is the memory cache clogged again after a day?
This is normal MIUI behavior, where the system actively caches data to speed up. To reduce cache volume: Limit application background activity in Settings → Battery → Application Selection. Turn off automatic sync for unnecessary accounts (such as Mi Cloud or Google Photos). Install light firmware (such as MIUI Lite or custom Pixel Experience).
Can I enlarge /data without root?
No, you can't resize the partition without the superuser rights. The only legal way is to reset the phone to the factory settings with the internal memory formatting, and that would redistribute the partitions by default.
Does the replacement help? SD-bigger-up?
Only if you format it as an internal storage. MIUI It combines the memory of the card and the phone into one partition, but: Speed will be limited by speed. SD-maps (even UHS-II slower than internal memory. Not all applications support installation on SD. When you extract the map, the applications on it will stop working, and it will work for a temporary solution, but as a permanent option, it is not ideal.
Why does the MIUI update eat away at the memory itself?
Newer versions of MIUI (especially MIUI 13/14) reserve up to 5-7 GB for system needs (updates, service cache, machine learning). This is not a bug, but a feature - this is how Xiaomi optimizes the phone. To return some memory: Disable MIUI Auto Update in the settings. Remove unnecessary system applications through ADB (for example, Mi Video, Mi Music). Use lighter alternatives to standard applications (for example, Google Photos instead of Xiaomi Gallery).
What if none of the methods worked?
If the error persists after all the manipulations, you can: hardware failure of the memory controller (requires diagnosis in the service); damage to the firmware at the bootloader level (only complete flashing through Fastboot will help); Conflict with custom recavers (for example, TWRP) - try to return stock. In such cases, contact the authorized Xiaomi service or the Xiaomi.eu forum (for owners of custom firmware).