Not enough memory on Xiaomi: how to remove the bug and free up space on Android

Xiaomi Android smartphones often face the problem of memory shortage, especially if the device is in use for a long time or has a modest amount of built-in storage (16-32 GB). The message “Insufficient memory” can appear even if there is free space – the fault is clogged applications, junk MIUI files or improper operation of background software. In this article, we will analyze the unique cleaning methods that work specifically for Xiaomi, including hidden firmware functions and system processes optimization.

To make matters worse, MIUI is using internal memory for temporary files, backups and updates, for example, after installing an update, the system may not remove older firmware versions that take up to 1-2 GB. Many users are unaware that even lightweight apps like Facebook Lite or TikTok grow to hundreds of megabytes over time due to accumulated cache. We tested all methods on Redmi Note 10 Pro, POCO X3 and Mi 11 Lite models – and are ready to share working solutions.

1.Diagnostics: Why Xiaomi shows “insufficient memory” when it is available

Before cleaning your smartphone, it's important to understand the true cause of the error, and it's not always about the physical lack of space -- it's often the fault of:

  • 📱 Limitations MIUI: The firmware reserves up to 3-5 GB for system needs, even if they are not used.
  • 🗑️ Hidden garbage:.trashes,.thumbnails and files MIUI/backup Not displayed in a standard conductor.
  • 🔄 Background activity: Apps like Google Play Services or Mi Cloud create temporary files that are not automatically deleted.
  • 📦 APK-Remains: After uninstallation of programs, their data can remain in folders /data/app-lib.

To check the actual state of memory, go to Settings → About Phone → Memory. Pay attention to the System Data section – if it takes more than 10-15 GB, this is a signal that you need to deep clean. It is also useful to use third-party analyzers, such as Files by Google or SD Maid, which show hidden files.

📊 How often do you clean your memory on your smartphone?
Once a week.
Once a month
Only when there's a mistake.
Never clean.

2. Cleaning cache and junk files without root rights

The fastest way to free up 1-3 GB is to delete the app cache and system temporary files, which can be done in a number of ways in MIUI:

Method 1. Through storage settings:

  1. Open the Settings → Memory.
  2. Click "Clean" in the "Junk Files" section.
  3. Select categories: “App Cache”, “Downloads», «APK-file».
  4. Confirm removal.

Method 2: Manually cleansing the cache for individual applications:

  • Go to Settings → Applications → Application Management.
  • Select a program (such as YouTube or Instagram).
  • Press "Storage» → «Clear the cache».

For deep cleaning, use MIUI Security (built-in antivirus):

  1. Open the Security app.
  2. Go to the "Cleaning" tab.
  3. Start the Deep Cleanup (can take up to 5 minutes).

☑️ Checklist for quick cleaning

Done: 0 / 4

⚠️ Note: Do not clear the cache for system applications like com.miui.home or android.process.media – this can cause malfunctions. MIUI.

3. Transfer of applications to SD-card (if supported)

Many Xiaomi models (such as the Redmi 9A or POCO M3) support microSD memory expansion.

  • 📌 Only a portion of applications can be transferred to the map (usually games and programs with support for adoptable storage).
  • 🚫 System applications (Mi Store, Themes) cannot be ported.
  • ⚡ Speed of application with SD-Lower than internal memory (especially on cheap Class 10 cards).

Instructions for transfer:

  1. Put it in. SD-map (recommended) UHS-I or A1/A2).
  2. Go to Settings → Applications → Application Management.
  3. Select an app (such as Spotify) → «Warehouse» → «Change» → «SD-map».
  4. Wait until the transfer is completed (may take a few minutes).

If the "Change" option is inactive, the application does not support the transfer, in which case only forced formatting will help. SD-Cards as an internal storage device (see the next section).

How to check the speed SD-map?
Use the A1 SD Bench app (available on Google Play). Run a read/write test. If the speed is below 10MB/s, the map is not suitable for porting applications.

4. Formatting SD-The card is an internal memory (adoptable storage)

This method allows us to combine SD-Card with internal drive, but has critical limitations:

  • 🔒 The card will be encrypted and will not be read on other devices.
  • 📉 The system speed can drop by 20-30% (depending on the class of the card).
  • 🚨 When you remove the map, the application will stop working on it.

Step-by-step:

  1. Put it in. SD-smartphone-card.
  2. When a notification appears, click “Configure” → “Inner memory”.
  3. Confirm the formatting (all data will be deleted!).
  4. Once completed, restart the device.

Now, when installing new applications, the system will offer to save them to the SD-To move the programs already installed:

adb shell pm set-install-location 2

This command (introduced through ADB) enforced SD-map as the primary storage for new applications. Use the standard settings to return to the standard settings:

adb shell pm set-install-location 0

⚠️ Note: Some Xiaomi models (e.g. Mi) A3 Android One) Adoptable Storage is disabled at the firmware level. Check support through the adb shell sm list-disks command - if the output is empty, the method will not work.

5. Removal of system debris and old MIUI updates

MIUI firmware is known for accumulating gigabytes of unnecessary files, including:

  • 📦 Old versions of firmware (/cache/ota).
  • 🎨 Themes and wallpaper (MIUI/theme).
  • 📱 Backup copies (MIUI/backup).
  • 📊 Logs of the system (/data/log).

How to manually remove:

  1. Connect your smartphone to your PC and enable USB Debugging (Settings → About Phone → MIUI Version → 7 times press to unlock the developer mode).
  2. Use it. ADB To access hidden folders: adb shell su rm -rf /data/ota_package/* rm -rf /cache/ota/* rm -rf /data/log/*
  3. To delete themes, run rm -rf /data/system/theme/*

Without root rights, these folders are not available, but you can use the MiXplorer app (with superuser mode enabled) or SD Maid (the “CorpseFinder” option).

Type of fileLocation.Is it safe to remove?Place vacated
Old ones. OTA-update/cache/ota, /data/ota_packageYes.2GB
Logs of the system/data/log, /data/anrYes.up to 500MB
Cash to MIUI./data/system/themeYeah (but the themes will drop)up to 1GB
Backup copiesMIUI/backup, /data/backupYes (if you don't need to)3GB

💡

Before you delete system files, back up your system files via Settings → Additional → Backup and Reset. This will help you recover data when you crash.

6.Optimizing MIUI: disabling unnecessary functions

MIUI firmware is overloaded with background activity that eats up memory, and shutting down some functions can free up to 1-1.5 GB:

What can be safely disabled:

  • 📡 Mi Cloud Sync: Backup your photos and contacts to the cloud (if you don't use them) → Xiaomi account → Mi Cloud.
  • 🎵 Mi Music: a system player that scans files even if you don't use it. → Annexes → Music. → Auto-start.
  • 📰 Mi Browser: Pre-installed browser with aggressive ads. Freeze through Settings → Annexes → browser → Shut down.
  • 📊 Analytics MIUI: Send usage data. Disabled in Settings → Additionally. → Confidentiality → Sending data.

How to disable the autoload of applications:

  1. Go to Settings → Battery and Performance → Battery Management.
  2. Select “Select applications” → “Shoot up”.
  3. Turn off autoplay for unnecessary programs (e.g. Mi Video, Games).

For advanced users: Use ADB to disable system applications without root:

adb shell pm uninstall -k --user 0 com.miui.videoplayer


adb shell pm uninstall -k --user 0 com.miui.miservice

⚠️ Note: Do not disable system services like com.android.phone or com.miui.securitycenter – this will lead to the failure of the phone.

💡

Disabling the auto-run of applications not only frees up memory, but also increases battery life by 10-15%.

7.Reset to factory settings: when it's the only way out

If all previous methods failed and there is a critically low amount of free memory (1-2 GB), there is a hard reset, which will delete all data, but return the smartphone to a “clean” state. Xiaomi offers two options for resetting:

Method 1. Through settings:

  1. Go to Settings → About the phone → Reset settings.
  2. Select "Reset all settings."
  3. Confirm the action (you will need to enter a password from your Mi Account).

Method 2. Through Recovery Mode (if the phone is not turned on):

  1. Turn off your smartphone.
  2. Press the Power button + Volume up until the Mi logo appears.
  3. Select "Wipe Data» → «Wipe All Data».
  4. Confirm the reset and restart the device.

After discharge:

  • 🔄 Do not restore data from backup – it will return junk files.
  • 📥 Install only the necessary applications.
  • 🛡️ Turn off automatic app updates on Google Play.

8.Alternative methods: from cloud storage to root solutions

If the standard methods don’t help, consider advanced options:

1. Use of cloud storage:

  • 📁 Transfer photos and videos to Google Photos (free up to 15GB).
  • 🎵 Upload music to YouTube Music or Spotify (offline cache takes up less space).

2. Root access and custom firmware:

  • 🔧 Magisk Installation Allows You to Remove System Applications and Optimize Memory.
  • 📲 Firmware like LineageOS or Pixel Experience is devoid of garbage MIUI.

3. Connecting an external drive over OTG:

  • 💾 Use a flash drive or hard drive through USB OTG media-file.

4. Optimization through ADB:

adb shell pm trim-caches 500M # Clears the cache to the specified limit


adb shell cmd package bg-dexopt-job # Optimizes background processes

⚠️ Note: Installing custom firmware will void warranty and may result in a brick device. Use only verified instructions for your model.

FAQ: Frequent questions about memory shortages on Xiaomi

❓ Why After Cleaning the Cache, Memory Ends Again in a Day?
This is due to the background activity of apps (especially Facebook, Instagram, TikTok) that are constantly creating new temporary files. Solution: Limit background activity in Settings → Battery → Battery Management. Use Greenify to freeze unnecessary apps.
❓ Can I increase my memory without Xiaomi? SD-map?
Physically, no, but you can optimize usage: Remove unused applications (even system ones if you have root), migrate media to the cloud, use Lite versions of applications (like Facebook Lite).
❓ Why? MIUI It shows 10GB of memory is free, but it doesn’t have enough space»?
This involves backing up memory for system needs. MIUI blocks up to 3-5 GB for: OTA Updates, System Application Cache, Mi Cloud Temporary Files. Solution: Perform deep cleaning through MIUI Security or use ADB for manual cleaning (see Section 5).
❓ How to Clean Memory on Xiaomi Without Losing Data?
Follow this algorithm: Back up your photos and contacts in your Google Account. Remove cache and debris through Settings → Memory. Move the applications to the SD-Map (if supported) Use Files by Google to search for large files. Avoid factory resets is a last resort.
❓ What apps take up the most memory in Xiaomi?
Top.-5 «Previous articleGluttonous” apps (according to Xiaomi Community): TikTok – up to 1.5 GB (cash) + Facebook, up to the data 1 GB (including Messenger). PUBG Mobile/Call of Duty - before 2 GB (updates) + Google Play Services - up to cache 500 MB (background processes). Mi Browser - up 300 Solution: Clean the cache regularly or use Lite versions.