How to turn off Xiaomi Redmi deep cleaning: the complete guide

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.

πŸ“Š How often do you have apps coming out?
Every day.
Several times a week
Rarely.
Never noticed.

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

Done: 0 / 1

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.

ParameterIncluded.Off.
Memory behaviorAggressive cleaningStandard Android
USB permissionsAsks when connecting.Permitted by default
NotificationsFiltered by the systemThey come right away.
StabilityTall.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?
On Android, processes that do not have an active background service can be completely offloaded from memory. Auto-run permission creates an anchor that helps the process recover faster after the forced termination of the system.

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.cleaner

This 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.messenger

Adding 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.

Questions and Answers (FAQ)

Why does the phone start to work faster after cleaning the memory?
This is a visual effect. Freeing RAM allows the system to allocate resources to an active application faster, but constantly rebooting background programs (messengers) ends up with more CPU power than their content in memory.
Can the Security app be removed completely?
Without unlocking the bootloader and the Root rights, it's not. It's a system application integrated into the shell, and it can only be restricted or hidden from the desktop, but it can't be completely removed by regular means.
Are your settings reset after the MIUI update?
Yes, major system updates (e.g., switching from MIUI 13 to 14) often reset the power saving and autostart settings to factory values.
Does the optimisation disabling affect the operation of banking applications?
In rare cases, banks may detect the presence of changed developer settings or disabled optimization as a sign of an insecure environment. If the bank application has stopped running, return the MIUI Optimization settings to their original state.