The deep cleaning feature on Xiaomi, Redmi and POCO smartphones is designed to free up RAM and optimize system operation, but many users are faced with the fact that once activated, applications lose login data, cache and settings, and the background processes are forcibly closed, which is especially critical for instant messengers, games and applications with authorization.
In this article, you will learn how to completely disable deep cleaning, configure exceptions for individual applications and avoid data loss. We will analyze all available methods, from standard MIUI settings to hidden settings through ADB. We will also find out which Xiaomi models support these settings and what to do if the option is not available in your firmware version.
Before you start making changes, consider that turning off deep cleaning can affect the autonomy and performance of the device. But for most modern smartphones (for example, Xiaomi 13, Redmi Note 12 or POCO F5), this effect is minimal.
What is Deep Cleaning and Why It Should Be Disabled
Deep Cleanup is a MIUI function that aggressively closes the background and clears the cache of applications, and it activates automatically when:
- ๐ Low battery charge (less than 15%);
- ๐ฑ Long screen time (more than 30 minutes);
- ๐ manually run through the Security menu โ Cleanup;
- ๐ restart.
The main problem is that after deep cleaning, applications lose their state: for example, Telegram logs off, Spotify stops playing music in the background, and games reset progress, which is due to the fact that MIUI kills background processes without saving the session.
In addition, the feature can slow down some applications, as they have to reload data from scratch each time, for example, Google Maps or Yandex.Maps open longer after cleaning the cache.
Method 1: Disconnect via MIUI settings (for all models)
The easiest method is to use the standard Security menu. It works on most devices with MIUI 12 and later (including Xiaomi 12T, Redmi Note 11, POCO X5).
- Open the Security app (the shield icon).
- Go to Cleanup (or Accelerate in some versions).
- Press on. โ๏ธ Settings in upper right corner.
- Turn off Deep Cleaning (or Auto Cleaning) slider.
- Confirm the action by pressing OK.
If your MIUI version doesnโt have a separate deep cleaning switch, try an alternative path:
- Go to Settings โ Applications โ Application Management.
- Select the app you want (such as WhatsApp).
- Press the Battery โ Background activity.
- Activate the option without restrictions.
โ๏ธ Preparation for deep cleaning shutdown
On some devices (e.g. Xiaomi Mi 11 with MIUI 13), the option may be called Battery Optimization.
- Go to Settings โ Battery and Performance.
- Select Battery Settings โ Battery Optimization.
- Click All Apps and select No Limits for the right programs.
Method 2: Configure exceptions for individual applications
If you don't want to turn off deep cleaning completely, you can add apps to exceptions. This is true for messengers, navigators and games.
- Open Settings โ Applications โ Application Management.
- Select an application (such as Viber).
- Press the Battery โ Background activity.
- Activate options: ๐ Auto-start; ๐ฑ Background activity; โก No restrictions (if available).
For MIUI 14 and later (e.g. Xiaomi 13 Pro or Redmi K60), the path may be different:
- Go to Settings โ Battery and Performance โ Battery Management.
- Select the Apps Selection โ All Apps.
- Find the right application and install it without restrictions.
Note that even after these settings, some apps (like Facebook or Instagram) may still be closed, due to internal optimization, and in such cases, turning off the power saving in the settings of the app itself will help.
๐ก
If after setting the exceptions, the application still closes, try to disable the Adaptive Battery function in Settings โ Battery โ Battery settings.
Method 3: Using ADB to completely disable (for power users)
If the standard methods do not work (for example, POCO F4 s MIUI 13.5), may be used ADB-This will disable deep cleaning at the system level. USB.
Steps:
- Enable Developer Mode: Go to Settings โ About Phone. Click 7 times on MIUI Version. Go back to Settings โ Additional โ Developer. Activate USB Debugging.
Connect the phone to the PC and confirm the debugging permission.
ADB Tools
adb.exe
adb shell
pm uninstall -k --user 0 com.miui.securitycenter
pm disable-user --user 0 com.miui.securitycenter/com.miui.permcenter.autostart.AutoStartManagementActivityThese commands will disable the MIUI Security Center, which is responsible for deep cleaning, and once the device is restarted, the function will be deactivated.
pm install-existing --user 0 com.miui.securitycenterWhat if the ADB does not recognize the device?
Warning: Disabling com.miui.securitycenter may cause some system functions, such as a fingerprint scanner or a face scanner, to function in an unstable manner.
Comparison of Deep Cleaning Disconnection Methods
To choose the best method, check out the table below, which shows the pros and cons of each method, as well as compatibility with MIUI versions.
| Method | Compatibility | Advantages | Deficiencies | Risks. |
|---|---|---|---|---|
| Through MIUI settings | MIUI 12โ14 | โ Simplicity, does not require PC | โ It may not work for some models. | โ ๏ธ No. |
| Exceptions for applications | MIUI 11โ14 | โ Save optimization for other applications | โ Requires manual configuration of each application | โ ๏ธ No. |
| ADB-team | All versions of MIUI | โ Complete shutdown at the system level | โ Hard for beginners, requires PC | โ ๏ธ Possible disruptions MIUI |
| Castomic PO (TWRP) | Only for the unlocked loader | โ Maximum flexibility | โ Difficult, risk of bricking" | โ ๏ธ Loss of guarantee |
For most users, the first two methods are sufficient. ADB is recommended only if the standard settings do not work. Installing custom software (for example, LineageOS) is an extreme option, since it requires unlocking the bootloader and can lead to a loss of warranty.
Frequent problems and their solutions
Even after the deep cleaning is turned off, users may face a number of problems, and let's look at the most common cases and how to fix them.
Problem 1: Apps will still close after the screen is locked.
โ ๏ธ Note: On some devices (e.g. Redmi) 9A s MIUI 12.5) an additional function is running to power the screen:
- Go to Settings โ Display โ Sleep mode.
- Turn off the power saving option of the screen.
- Also check Settings โ Battery โ Power Saving Mode and set Performance.
Problem 3: There is no Deep Clean option on POCO.
POCO series devices (e.g., POCO X3 Pro or POCO F3) often use a simplified version of MIUI without some features.
- Try using it. ADB-method (described above).
- Install an alternative launcher (like Nova Launcher) that can block the closure of background applications.
- Check the settings in Settings โ Special features โ Battery optimization.
๐ก
If none of the methods worked, try resetting to factory settings (with data saved), sometimes helping to bring back hidden options in the MIUI menu.
Alternative Optimizations Without Deep Cleaning
Disabling deep cleaning can lead to increased battery consumption and slowing down the device, and to avoid this, use alternative optimization methods:
- ๐งน Manually clean the cache: Regularly clean the cache manually through Settings โ Warehouse โ Cleanup. This removes unnecessary files without closing background processes.
- โก Autoboot Optimization: Disable Autorun of Unnecessary Applications in Settings โ Annexes โ Application management โ Auto-start.
- ๐ Use Light Mode: Turn on Power Saving Mode only when the battery is low (less than 20%).
- ๐ฑ Firmware Update: Install the latest version MIUI โ New builds often improve optimization algorithms.
Third-party utilities such as Greenify (for manual background control) or AccuBattery (for battery consumption monitoring) can also be used, which allow you to flexibly customize background tasks without aggressive cleaning.
For devices with MIUI 14 and later (such as Xiaomi 13 Ultra), Smart Optimization is available, which analyzes the userโs habits and closes only really unnecessary processes.
- Go to Settings โ Battery and Performance โ Smart Optimization.
- Turn on the slider and wait until the system collects data (usually 1-2 days).