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.
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:
- Open the Settings → Memory.
- Click "Clean" in the "Junk Files" section.
- Select categories: “App Cache”, “Downloads», «APK-file».
- 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):
- Open the Security app.
- Go to the "Cleaning" tab.
- Start the Deep Cleanup (can take up to 5 minutes).
☑️ Checklist for quick cleaning
⚠️ 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:
- Put it in. SD-map (recommended) UHS-I or A1/A2).
- Go to Settings → Applications → Application Management.
- Select an app (such as Spotify) → «Warehouse» → «Change» → «SD-map».
- 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?
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:
- Put it in. SD-smartphone-card.
- When a notification appears, click “Configure” → “Inner memory”.
- Confirm the formatting (all data will be deleted!).
- 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 2This 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:
- Connect your smartphone to your PC and enable USB Debugging (Settings → About Phone → MIUI Version → 7 times press to unlock the developer mode).
- Use it. ADB To access hidden folders: adb shell su rm -rf /data/ota_package/* rm -rf /cache/ota/* rm -rf /data/log/*
- 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 file | Location. | Is it safe to remove? | Place vacated |
|---|---|---|---|
| Old ones. OTA-update | /cache/ota, /data/ota_package | Yes. | 2GB |
| Logs of the system | /data/log, /data/anr | Yes. | up to 500MB |
| Cash to MIUI. | /data/system/theme | Yeah (but the themes will drop) | up to 1GB |
| Backup copies | MIUI/backup, /data/backup | Yes (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:
- Go to Settings → Battery and Performance → Battery Management.
- Select “Select applications” → “Shoot up”.
- 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:
- Go to Settings → About the phone → Reset settings.
- Select "Reset all settings."
- 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):
- Turn off your smartphone.
- Press the Power button + Volume up until the Mi logo appears.
- Select "Wipe Data» → «Wipe All Data».
- 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.