Why Xiaomi is constantly writing about memory shortages and how to fix it
Owners of Xiaomi, Redmi and POCO smartphones often face annoying notifications such as βNot enough memoryβ or βClear space on the deviceβ that appear even when there is free space. These messages are not just intrusive β they can slow down the system, as MIUI actively scans the storage in the background. The cause of the problem lies in the aggressive optimization of the shell, which is designed for the Chinese market with its specific conditions of use.
In this article, weβll look at 5 proven ways to disable these notifications, from simple menu settings to deep changes in system files (for advanced users). Itβs important to understand that some methods require root rights or disable system applications, which can affect the stability of the device. Weβll also explain why even after cleaning the memory, notifications can return in 1-2 days β a feature of MIUI algorithms that take into account not only free space, but also file fragmentation, application cache and backups.
If you are using a device with MIUI 14/15 or later, some of the methods may not work due to tightening security policies, in which case we recommend combining several approaches or considering alternative firmware (for example, Xiaomi.EU), where such notifications are disabled by default.
Method 1: Disabling notifications via βSecurityβ (without root)
The safest and most versatile method is to disable notifications directly in the Security app, which monitors memory in MIUI. This method works on most devices, including the Redmi Note 12, POCO X5 and Mi 13, but may vary depending on the firmware version.
Instructions:
- π± Open the Security app** (Shield icon with tick).
- π Go to Optimization or Acceleration (the name may vary).
- βοΈ Click on the three dots in the top right corner and select Settings.
- π Find the option of Memory Notifications or Storage Warnings and turn off the slider.
If there is no such item, try an alternative path:
- Go to Settings β Applications β Application Management.
- Find Security** and open Notices.
Make a backup copy of important data|Check the vacant space (should be) β₯ 1GB)|Close all background applications|Restart the device after the changes-->
Method limitation: On some firmware (e.g. MIUI Global), these settings may reset after a system update, and Security may continue to scan memory in the background, simply without showing notifications.
π‘
If notifications continue to appear after disabling, try clearing the Security app cache in the Settings menu β Apps β Storage.
Method 2: Clearing the cache of system applications (for all versions of MIUI)
Often, notifications of memory shortages arise from a crowded cache of system services, such as com.miui.cleanmaster or com.android.providers.media.
How to clear the cache:
- Go to Settings β Applications β Application Management.
- Click on the three dots in the top right corner and select Show All Apps.
- Find the following applications and clear their cache (Storage) β Clear the cache): π§Ή Cleaner (com.miui.cleanmaster) π‘οΈ Security (com.miui.securitycenter) π Media Storage (com.android.providers.media) π MIUI Daemon (com.miui.daemon)
| Annex | Package | What does cleaning give? |
|---|---|---|
| Cleaner | com.miui.cleanmaster | Remove data about the βjunkβ that the system proposes to clean |
| Security | com.miui.securitycenter | Resets Memory and Virus Scan Counters |
| Media Storage | com.android.providers.media | Updates the database of media files, which can free up to 500 MB |
Important: Cleaning the Media Storage cache can cause the gallery and music to disappear temporarily (they will recover after the reboot), and this method does not permanently disable notifications - the cache will accumulate again, but the problem will not return until 3-5 days later.
What if cleaning the cache does not help?
Method 3: Disable system applications via ADB (without root)
For users willing to take more drastic measures, there is a method of disabling system services through ADB (Android Debug Bridge), which does not require root rights, but requires connecting the smartphone to the computer, the advantage of the method is that notifications disappear forever until you reset your settings.
Step-by-step:
- Turn on Developer Mode: Go to Settings β About Phone. Click 7 times on MIUI until the message βYouβre a developerβ appears.
USB debugging
Settings β Additional β For Developers
Connect the phone to the PC and confirm the debugging permission.
ADB Tools
adb shell
pm disable-user --user 0 com.miui.cleanmaster
pm disable-user --user 0 com.miui.securitycenter.provider
pm disable-user --user 0 com.miui.analyticsWhat these teams do:
- π« com.miui.cleanmaster β disables the built-in optimizer that scans memory.
- π com.miui.securitycenter.provider β blocks the data provider for security notifications.
- π com.miui.analytics β stops the collection of usage statistics (may indirectly affect notifications).
π‘
Disabling system applications via ADB does not remove them completely, but only blocks startup. When you reset your settings or update your MIUI, they can be activated again.
β οΈ Warning: Disabling com.miui.securitycenter will completely remove access to security settings, including virus scanner and app lock. If you need these features, use an alternative method:
adb shell dumpsys deviceidle whitelist +com.miui.cleanmasterThis team adds an optimizer to the energy saving whitelist, which reduces its activity.
Method 4: Change the memory threshold (requires root)
For root-right users, it is possible to change the thresholds at which MIUI starts showing memory shortage notifications, a method that requires editing system files and is only suitable for advanced users.
Instructions:
- Install a file manager with root support (such as Solid Explorer or FX File Explorer).
- Cross the path: /system/etc/device_features/ and find the file. miui.xml (or miui_flags.xml newer).
- Open the file in the text editor and find the lines: <bool name="storage_low_notification_enabled">true</bool> <integer name="storage_low_threshold_mb">512</integer>
- Change the values to: <bool name="storage_low_notification_enabled">false</bool> <integer name="storage_low_threshold_mb">1024</integer> (This will turn off notifications or raise the threshold to 1 GB).
- Save the file, set resolutions 644 (rw-r--r---) and restart the device.
β οΈ Warning: Incorrect editing of system files can lead to bootloop.Before changes, back up the file. MIUI your edits will be thrown away.
Alternative path (for MIUI 14+):
- π Open the file. /system/etc/prop.local.
- Add a line: ro.miui.storage_notify_threshold=2048 (that sets the threshold in 2 GB).
Method 5: Reset to factory settings (last resort)
If none of these methods worked, and memory notifications appear every few hours, it may be that the problem lies in corrupted system data, in which case a full hard reset will help, but you should only use it after you have backed up all the data.
How to reset:
- Go to Settings β About the phone β Reset settings.
- Select to erase all data (reset to factory).
- Confirm the action and wait for the reboot (it will take 5-10 minutes).
β οΈ Attention: Reset will remove:
- πΈ All photos, videos and music (unless saved) SD-map).
- π± Installed applications and their data (save games, settings messengers).
- π Accounts and passwords (except those synced to Mi Account).
After discharge:
- π Do not restore data from backup MIUI β It may contain damaged settings.
- π₯ Install applications gradually, avoiding mass downloads.
- βοΈ Turn off memory notifications immediately via method 1 or method 3.
π‘
Resetting to factory settings is the only way to fix deep system errors, but it should be used last when other methods have failed.
Additional tips: how to prevent notifications from returning
Even after the notifications about the lack of memory are turned off, they can return after the MIUI update or after a few weeks of use. To minimize the risk of their recurrence, follow these recommendations:
- π΅ Turn off Automatic Optimization: Go to Settings β Battery and productivity β Optimize and deactivate all automatic processes.
- ποΈ Use alternative cleaners: Install SD Maid or Files by Google instead of Xiaomiβs built-in Cleaner.
- π Clean the cache manually regularly: Once a week, go to Settings β Warehouse β Cache data and clear it.
- π₯ Move the applications to SD-If your device supports Adoptable Storage, use the card. SD-map as an internal memory.
Also, you should pay attention to the hidden consumers of memory:
| Source of the problem | How to fix it |
|---|---|
| Backup copies of Mi Cloud | Turn off automatic reservations in Settings β Mi Account β Cloud |
| Logs and dumps of the system | Delete the folder. /sdcard/MIUI/debug_log via file manager |
| Google Play Services Cash | Clear the cache in Settings β Apps β Google Play Services β Storage |
If you notice that memory is running out too quickly, check your device for viruses with Malwarebytes β some malware creates hidden gigabyte-sized files.