How to Add an App to the Cleanup Exceptions on Xiaomi: The Complete Guide

Xiaomi, Redmi and POCO are known for aggressive memory optimization: the system automatically closes the background applications to free up resources. This saves battery power, but often leads to the fact that the desired programs suddenly stop working β€” for example, stop receiving notifications from messengers or turn off music in the player. The solution is simple: add the application to the list of exceptions to the cleanup.

In this article, you will find the current ways for MIUI 14/15 and Android 12-14, including hidden settings that are not mentioned in the official instructions. We will also discuss why some applications still close despite exceptions, and how to fix it. If you use POCO Launcher or custom firmware, there is a separate section at the end of this article with nuances.

Why Xiaomi is killing background apps?

The MIUI memory cleaning algorithm works on three principles:

  • πŸ”‹ Battery savings: the system shuts down applications that are not actively used to reduce energy consumption, especially in ultra-saving mode.
  • ⚑ Optimization of performance: if free RAM is less than 20%, MIUI They begin to forcefully free up resources, ignoring some exceptions.
  • πŸ“± Manufacturer policy: Xiaomi adjusts Android so that background processes do not interfere with the operation of the main functions (calls, SMS, system-notification).

Even adding exceptions does not guarantee 100% protection: if an application consumes too much resources (such as games or torrent clients), the system can force it to close, in which case additional settings are required, which we will discuss below.

πŸ“Š What model? Xiaomi/Redmi/POCO You're using it?
Xiaomi 13/14 series
Redmi Note 12/13
POCO F5/X5
Another Xiaomi model
Another brand's device

Method 1: Through battery settings (main method)

This is the most reliable method that works on all devices with MIUI 12 And it's new. It's relevant for Android. 11-14:

  1. Open Settings β†’ Battery and Performance.
  2. Go to the Application Power Management section (on some models it is called Battery Optimization).
  3. Select Applications (or Applications in older versions).
  4. Find the desired application in the list and tap it.
  5. Activate the No Limits option (or No Limits).

If you don't have the app on the list, click on the three dots in the top right corner and select Show All Apps. On some firmware (POCO, HyperOS), the path may be slightly different:

Settings β†’ Applications β†’ Application Management β†’ [Select App] β†’ Battery β†’ Without Limitations

Make sure the battery settings are "Adaptive Battery" enabled"|Check that the app is not added to "Sleep Mode"|Reboot your phone after the changes|Open the app at least once manually (otherwise the exception may not work)-->

Method 2: Through security settings (for system applications)

Some apps (like Google Play Services or Mi Fit) don’t show up in the standard battery optimization list.

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Find the right app and tap it.
  3. Select Permissions β†’ Autostart and enable this option.
  4. Go back and go to the battery. β†’ No restrictions.
  5. In some firmware (MIUI 13+), you additionally need to go to Other permissions and turn on the Work in the background.

This method is particularly useful for applications that:

  • πŸ“± Responsible for notifications (e.g. Telegram, WhatsApp).
  • 🎡 Playing music in the background (Spotify, VK Music).
  • πŸ“ Use geolocation (Google Maps, Yandex.Maps).

πŸ’‘

If the application is still closed, try to further disable the option β€œOptimize MIUI” in the developer settings (see the next section).

Method 3: Through Developer Modes (for Power Users)

If standard methods don’t work, you can use hidden MIUI settings, and you need to activate the developer mode first:

  1. Go to Settings. β†’ The phone.
  2. Tap 7 times on the MIUI version until you become a developer!
  3. Go back to the basic settings and open a new Developer section (usually at the bottom of the list).

Now, do the following:

  1. Find the option to limit background processes and set the value No Limits (or maximum number of processes available).
  2. Scroll down to MIUI Optimization and turn it off.
  3. In the Applications section, find the desired application and turn on Do not limit background activity for it.
What to do if there is no MIUI optimization?
On some firmware (such as HyperOS or global versions) MIUI) This item may not be available. In that case, try an alternative method: 1. Set it through ADB Adb shell settings put global hidden_api_policy 1 2. Reboot the phone. 3. Check for hidden options in the developer settings.Warning: This method requires a PC connection and may reset some settings.

After these manipulations, the application will be protected from forced closure, but note:

⚠️ Attention: Disabling optimization MIUI It can increase battery consumption by 10-15%. If you notice a significant reduction in working time, return the settings back.

Table: Comparison of application exclusion methods

MethodDifficultyEfficiencySuitable forCons
Battery settings⭐⭐⭐⭐All applicationsIt does not work for system services.
Security settings⭐⭐⭐⭐⭐⭐System applications, servicesRequires manual auto-start activation
Developer mode⭐⭐⭐⭐⭐⭐⭐⭐Any applications, including gamesIncreases battery consumption
ADB-team⭐⭐⭐⭐⭐⭐⭐⭐⭐Advanced usersRequires PC and debugging over USB

What to do if the app is closed anyway?

Even after adding exceptions, some programs may close, and here are the most common reasons and solutions:

  • πŸ”„ Phone Reboot: After Rebooting MIUI It resets some background processes. So the solution is to open the application manually after you turn it on.
  • πŸ“΅ Power Saving Mode: In Ultra-Economic or Charge Saving modes, all exceptions are ignored.
  • πŸ› οΈ Firmware errors: On some versions MIUI 14 (e.g. 14.0.4) has a bug with background processes. The solution is to upgrade to the latest version.
  • 🚫 Antivirus blocking: The built-in Security App can block background activity. Check its settings in Settings β†’ Security.

If the problem persists, try an alternative method:

  1. Remove the app from the exclusion list.
  2. Clear the app cache in Settings β†’ Apps β†’ [Select App] β†’ Memory β†’ Clear the cache.
  3. Add it back to the exceptions.
  4. Reboot the phone.

πŸ’‘

On HyperOS devices (such as Xiaomi 14), the path to settings may be different. Use the settings search (the magnifier icon at the top) to quickly find the desired partition.

Features for POCO, Redmi and custom firmware

POCO devices and some Redmi models (like the Redmi Note 12 Pro+) have modified versions of MIUI with different paths to settings.

  • πŸ“± POCO Launcher: Setting exceptions is in Settings β†’ Special facilities β†’ Optimizing the battery.
  • πŸ”§ Redmi with global firmware: Instead of No Limits, there can be Manual option).
  • πŸ› οΈ Custom firmware (e.g. LineageOS): Use standard Android settings (Settings) β†’ Annexes β†’ Special access β†’ Optimizing the battery).

On the POCO F5 and Xiaomi 13T with HyperOS, the path to exceptions is as follows:

Settings β†’ Applications β†’ Application Management β†’ [Select App] β†’ Battery β†’ Background Activity β†’ Without Limitations

If you are using Xiaomi.EU or other unofficial firmware, check for additional tweaks in the Settings menu β†’ Additional β†’ MIUI Tweaks. There are often separate options for managing background processes.

Frequent Mistakes and How to Avoid Them

Many users make the same mistakes when setting exceptions.

⚠️ Warning: Don't confuse the battery settings with AutoRun. These are two different options.

  • ❌ Do not open the application after adding an exception. MIUI No exceptions for programs that have never been launched.
  • ❌ They use killer tasks like Greenify, and these apps are in conflict with system optimization.
  • ❌ They don't update the firmware. MIUI (For example, 12.5) there are bugs with background processes.
  • ❌ They include too many exceptions. If you add more than 10 apps to the list, the system will start ignoring the settings.

To check if the exception works, use this method:

  1. Add the app to the exceptions (by any of the methods described).
  2. Close it (swipe in the multitasking menu).
  3. Wait 5-10 minutes.
  4. Open Settings β†’ Applications β†’ [Your App] β†’ Memory and check if the cache has reset. If not, the exception works.

FAQ: Answers to Frequent Questions

Can I add system applications (e.g. Google Play Services) to the exceptions?
Yes, but you need to use security settings (see Method 2). In the standard battery menu, system applications are usually hidden. If Google Play Services is shutting down anyway, try disabling optimization via ADB: adb shell dumpsys deviceidle whitelist +com.google.android.gms After completing the command, restart your phone.
Why did all the exceptions drop after the MIUI update?
This is a well-known MIUI problem. After major updates (e.g., 13.0.5 to 14.0.1), the system resets some optimization settings. Solution: Manually add apps back to exceptions. Check if new items have appeared on the battery menu (e.g., Deep Optimization). If the problem repeats, back up the settings through Settings β†’ Additional β†’ Backup.
How do you add an application to the exceptions that is not on the list?
If the app doesn’t appear in the battery optimization menu, try: Install it again from Google Play or APK. Check if it is hidden in the settings (Settings) β†’ Annexes β†’ Show all the apps. Use ADB For compulsory addition: adb shell cmd appops set <package_name> RUN_ANY_IN_BACKGROUND allow Replace <package_name> to the packet identifier (e.g. com.whatsapp).
Will battery consumption increase if you add a lot of apps to the exceptions?
Yes, but not critical. In our tests, 1-3 applications in exceptions β€” the consumption increases by ~3-5%, 5-10 applications β€” up to 10-12%, more than 10 β€” possible lags and overheating, we recommend adding only really important programs (messengers, navigators, music players) to the exceptions.
Does this work on the Xiaomi Pad 6 or other tablets?
On Xiaomi tablets (e.g. Pad 6, Pad 5 Pro), the path to settings may differ due to the adaptive MIUI for Pad interface. Here is the current instruction: Open Settings β†’ Apps β†’ Application Management. Select the application and go to Battery. Activate Background Activity and Auto Run. App Fixation option (in the multitasking menu) is also available. On HyperOS for Pad (e.g. on Xiaomi Pad 6S Pro) additionally check the settings in Settings β†’ System β†’ Developer β†’ Limit background processes.