Deep Cleanup on Xiaomi: How to Disable the Feature and Save Application Data

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.

๐Ÿ“Š You have experienced data loss due to deep cleaning?
Yeah, all the time.
Sometimes.
No, but I want to prevent it.
I don't know what that is.

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

  1. Open the Security app (the shield icon).
  2. Go to Cleanup (or Accelerate in some versions).
  3. Press on. โš™๏ธ Settings in upper right corner.
  4. Turn off Deep Cleaning (or Auto Cleaning) slider.
  5. Confirm the action by pressing OK.

If your MIUI version doesnโ€™t have a separate deep cleaning switch, try an alternative path:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Select the app you want (such as WhatsApp).
  3. Press the Battery โ†’ Background activity.
  4. Activate the option without restrictions.

โ˜‘๏ธ Preparation for deep cleaning shutdown

Done: 0 / 4

On some devices (e.g. Xiaomi Mi 11 with MIUI 13), the option may be called Battery Optimization.

  1. Go to Settings โ†’ Battery and Performance.
  2. Select Battery Settings โ†’ Battery Optimization.
  3. 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.

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select an application (such as Viber).
  3. Press the Battery โ†’ Background activity.
  4. 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:

  1. Go to Settings โ†’ Battery and Performance โ†’ Battery Management.
  2. Select the Apps Selection โ†’ All Apps.
  3. 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:

  1. 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.AutoStartManagementActivity

These 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.securitycenter
What if the ADB does not recognize the device?
1. Make sure that Xiaomi drivers are installed (you can download on the official website). 2. Try another one. USB-cable (preferably original). 3. Enable the debugging option in the developer settings USB (security parameters) and Unlocking OEM. 4.Reboot the PC and phone.

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.

MethodCompatibilityAdvantagesDeficienciesRisks.
Through MIUI settingsMIUI 12โ€“14โœ… Simplicity, does not require PCโŒ It may not work for some models.โš ๏ธ No.
Exceptions for applicationsMIUI 11โ€“14โœ… Save optimization for other applicationsโŒ Requires manual configuration of each applicationโš ๏ธ No.
ADB-teamAll 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:

  1. Go to Settings โ†’ Display โ†’ Sleep mode.
  2. Turn off the power saving option of the screen.
  3. 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.

  1. Try using it. ADB-method (described above).
  2. Install an alternative launcher (like Nova Launcher) that can block the closure of background applications.
  3. 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.

  1. Go to Settings โ†’ Battery and Performance โ†’ Smart Optimization.
  2. Turn on the slider and wait until the system collects data (usually 1-2 days).

FAQ: Answers to Frequent Questions

โ“ Why after turning off deep cleaning, the phone became discharged faster?
Deep cleaning saves battery power by closing the background. After it's turned off, applications continue to run in the background, which increases energy consumption. To smooth the effect: Turn off autoplay for unnecessary applications. Use Dark Theme and reduce screen brightness. Activate Adaptive Battery in settings (if available).
โ“ Can you turn off deep cleaning on Xiaomi without root rights?
Yes, all of the methods described in this article (MIUI, ADB, application exceptions) work without root rights, but full control of system processes may require unlocking the bootloader and installing custom software.
โ“ What applications are most often affected by deep cleaning?
In the risk zone: ๐Ÿ’ฌ Messengers: Telegram, WhatsApp, Viber (losing sessions). ๐ŸŽต Music services: Spotify, Yandex.Music, YouTube Music (interrupted playback). ๐Ÿ—บ๏ธ Navigators: Google Maps, Yandex.Maps (longer loading). ๐ŸŽฎ Games: PUBG Mobile, Genshin Impact (Resetting Progress). ๐Ÿ“Š Financial applications: SberBank Online, Tinkoff (requires re-entry).
โ“ Will deep cleaning return after resetting settings?
Yes, when you completely reset (via Settings โ†’ Reset), all system settings return to factory settings, including deep cleaning. To avoid this: back up via Mi Cloud or Google Drive. After reset, manually turn off deep cleaning again. Use MacroDroid to automatically apply the settings.
โ“ Is there a difference between โ€œdeep cleaningโ€ and โ€œauto cleaning"?
Yes, these are two different functions: Deep Cleanup, which enforces background cleanups and cache cleaners. Auto-Cleanup, which removes temporary files and debris without closing applications. Disabling one function does not affect the other. For example, on the Redmi Note 10 Pro, you can turn off deep cleanup, but leave the auto-clean to free up memory.