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.
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:
- Open Settings β Battery and Performance.
- Go to the Application Power Management section (on some models it is called Battery Optimization).
- Select Applications (or Applications in older versions).
- Find the desired application in the list and tap it.
- 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 LimitationsMake 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.
- Open Settings β Applications β Application Management.
- Find the right app and tap it.
- Select Permissions β Autostart and enable this option.
- Go back and go to the battery. β No restrictions.
- 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:
- Go to Settings. β The phone.
- Tap 7 times on the MIUI version until you become a developer!
- Go back to the basic settings and open a new Developer section (usually at the bottom of the list).
Now, do the following:
- Find the option to limit background processes and set the value No Limits (or maximum number of processes available).
- Scroll down to MIUI Optimization and turn it off.
- 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?
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
| Method | Difficulty | Efficiency | Suitable for | Cons |
|---|---|---|---|---|
| Battery settings | β | βββ | All applications | It does not work for system services. |
| Security settings | ββ | ββββ | System applications, services | Requires manual auto-start activation |
| Developer mode | βββ | βββββ | Any applications, including games | Increases battery consumption |
| ADB-team | ββββ | βββββ | Advanced users | Requires 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:
- Remove the app from the exclusion list.
- Clear the app cache in Settings β Apps β [Select App] β Memory β Clear the cache.
- Add it back to the exceptions.
- 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 LimitationsIf 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:
- Add the app to the exceptions (by any of the methods described).
- Close it (swipe in the multitasking menu).
- Wait 5-10 minutes.
- Open Settings β Applications β [Your App] β Memory and check if the cache has reset. If not, the exception works.