Xiaomi and Redmi smartphone owners often face intrusive security, which periodically blocks background processes, leading to delays in receiving notifications or restarting important programs, a process users call βdeep cleaning,β although technically it is aggressive memory management and energy saving.
In this article, we will discuss all the available ways to deactivate these limitations, learn how to configure exceptions for specific applications and change system parameters through hidden menus, which will allow your device to work more stable without constant system interference with running tasks.
It's worth noting that MIUI and HyperOS are designed to be as energy efficient as possible, which is why it kills background processes so hard, but for instant messengers and tools to be comfortable, you have to adjust these settings to suit your needs.
The principle of memory optimization in MIUI
The MIUI system algorithm constantly monitors the state of RAM, and when the free volume is reduced, the forced process-closing mechanism is activated, not always a "deep clean" in the usual sense, but rather a preventive measure to keep the interface running.
At the core is the Low Memory Killer, which ranks applications by importance, system services are top priority, and third-party utilities can be shut down first, and understanding this logic helps to properly customize exceptions.
Users often confuse conventional cache cleaning and background freezing: the first frees up space on the drive, the second unloads RAM, and the second type of optimization is critical to the stable operation of messengers.
β οΈ Warning: Disabling all system constraints completely can result in accelerated battery discharge.The balance between performance and autonomy is left to the user.
Modern versions of MIUI 14 and HyperOS use more complex heuristic algorithms, which analyze the frequency of use of applications and can independently decide whether to close them, even if you previously set exceptions.
Set up exceptions in the Security app
The easiest way to prevent a system from shutting down programs is to add them to the exclusion list, which doesnβt turn off deep cleaning globally, but creates a whitelist for mission-critical applications.
To start, open the standard Security app (green icon with shield) and go to Battery or Charge Consumption, where you can control application behavior in the background.
Find the app you want to use (like Telegram or WhatsApp) and click on it. You'll be offered several options. Choose No Limits. This is a key parameter that prevents the system from forcibly shutting down the process.
- π No restrictions β the application can work in the background without power restrictions.
- π Charge savings β the system limits background activity to save energy.
- π« Limit β the application cannot work in the background (relevant for rarely used programs).
Then you need to fix the application in memory. Open the menu of running applications (swipe from the bottom up and hold or menu button), find the window of the desired program and click on the lock in the corner or pull the window down until the lock icon appears.
This manipulation ensures that even if you manually clean the memory with the cross button, the application will remain on the list of running processes, but this does not protect against system βkillingβ processes when memory is scarce, unless the previous step is performed.
βοΈ Set-up of exceptions
Disable MIUI Optimization through the Developer Menu
There is a more radical method that affects system debugging settings: disabling MIUI Optimization changes the behavior of the system when installing applications and working with permissions, which indirectly affects the aggressiveness of memory cleaning.
To access these settings, activate the developer mode. Go to Settings β About Phone. Find the MIUI Version (or OS Version) string and quickly click on it 7-10 times in a row.
Once you have the message βYouβve become a developer,β go back to the main settings menu. Go to Additional β For Developers. Scroll down to the bottom of the list to the Additional Settings section.
Find the switch to turn on MIUI optimization. When you try to turn it off, the system will require you to enter the unlock password and the confirmation code that will appear on the screen. Enter them to confirm the action.
| Parameter | Included. | Off. |
|---|---|---|
| Memory behavior | Aggressive cleaning | Standard Android |
| USB permissions | Asks when connecting. | Permitted by default |
| Notifications | Filtered by the system | They come right away. |
| Stability | Tall. | Failures are possible |
β οΈ Attention: After optimizing MIUI The developer menu interface can become empty or change the structure. To return the settings, you will need a full data reset or re-enable the option through a developer reset.
This method is especially useful for those who use ADB To fine-tune or install modified versions of applications. In standard mode, Xiaomi can block installation APK-files from unknown sources, requiring additional confirmation.
Autostart and Background Process Management
Another layer of protection against deep cleaning is auto-run settings: If an application cannot start on its own after a reboot, the system considers it less important and completes its processes faster.
In the Security app, find the AutoRun tool, and it shows you a list of programs that are allowed to start with the system, and activate the switches for all the messengers and email clients you need.
Why is auto-starting important for notifications?
Itβs also worth checking the battery settings for each specific application. Go to Settings β Applications β All apps. Select the program you want, find Battery Consumption and make sure itβs ticked opposite Background.
Some users use third-party utilities to freeze applications. Be careful: using such programs (such as Greenify or Hail) in conjunction with Xiaomi system optimization can create a conflict, as a result of which the application will not work at all.
- π Autostart β Allows the application to start when the phone is turned on.
- π Background mode β allows processes to work when the screen is off.
- π Notifications β Allows display of push notifications in the curtain.
The integrated application of these three settings creates a powerful barrier to system cleaning, and the application is trusted and protected from all sides: at start, in the background and when displaying information.
Using ADB for Advanced Configuration
For power users who donβt have enough standard settings, there is a method to disable system components via ADB (Android Debug Bridge), which allows you to remove or freeze system applications responsible for analytics and cleaning.
You will need a computer to work, USB-cable and installed driver ADB. On the phone in the menu "For developers" turn on debugging by USB. Connect your smartphone to your PC and enter a command:
adb shell pm disable-user --user 0 com.miui.cleanerThis command disables the system component of the cleaner, but be careful: removing critical system packages can lead to unstable interface operation or "bootloop" (cyclic reboot).
Complete removal of the system application "Security" (Security) is impossible without unlocking the bootloader and obtaining the rights of the superuser (Root), which automatically cancels the warranty on the device.
A safer option through ADB is to reset the energy saving settings for a specific package, which can be done by the team:
adb shell dumpsys deviceidle whitelist +com.telegram.messengerAdding to the DeviceIdle protects the system from putting the application into deep sleep mode, which is often the reason for missed messages in messengers.
π‘
Before use ADB-A mistake in the team's syntax can lead to loss of access to the system.
Frequent problems after optimizing
After making changes to the system settings, users may experience a number of side effects, the most common being increased battery consumption, and background processes begin to consume resources that were previously severely limited.
If there is little RAM physically (e.g. 4 GB or less), failure to clean will cause the system to use the paging file on the internal drive more actively, which is slower than normal RAM.
In some cases, widgets or live wallpaper may stop working, because they are also background processes, and when memory is overflowing, the system can behave unpredictably if the cleaning mechanisms are disabled incorrectly.
- π Decreased Autonomy: An Expected Consequence of Background Services.
- π Micro-freezes β possible with a lack of free RAM.
- π² Heating β the processor can work more often in active mode due to background tasks.
If you notice a critical performance drop, it is recommended that you return the MIUI Optimization settings to their original state, which will restore the balance between performance and functionality.
π‘
Disabling deep cleaning is a trade-off: You get stable messengers, but you sacrifice some of the autonomy of the device.