Xiaomiโs MIUI-based smartphones are known for aggressive power optimization, which often leads to forced application closure in the background, creating problems for instant messengers (no notifications come), fitness trackers (activity recording is interrupted), music players (playback stops) and even navigation services. In this article, weโll discuss 5 proven ways to get apps to work in the background on any model from the Redmi Note 10 to Xiaomi 13 Ultra.
The problem is compounded by the fact that with each new version of MIUI (especially 13 and 14), optimization algorithms get tougher and the settings are hidden deeper. We tested all methods on current firmware and identified those that work consistently. Importantly, some parameters may differ depending on the regional version of the software (global, Chinese, European) - we will warn about this separately.
Before you start settings, check the version of MIUI in the Settings menu โ About Phone โ MIUI version. If you have MIUI 12.5 or older, some menu items may be called differently โ use the search by settings (the magnifier icon in the upper right corner).
Why Xiaomi is blocking the background of applications?
Background closure is not a bug, it's a system-level feature of MIUI.
- ๐ Battery savings. Algorithms. MIUI Analyze the activity of applications and force them to close those that are not currently in use, according to Xiaomi, this increases battery life by 15-20%.
- โก Performance optimization: Background processes consume RAM, which can lead to slowdowns on budget models (e.g. Redmi). 9A or POCO M3).
- ๐ก๏ธ Malware protection: Some viruses disguise themselves as legitimate apps and work in the background, sending spam or mining cryptocurrency. MIUI Blocks suspicious activity.
- ๐ฑ Adaptation to the Chinese market: China is a popular place for "super-apps" like WeChat, which manage the background processes themselves. MIUI non-critical.
The problem is that the system does not distinguish between really unnecessary processes (such as a closed browser) and critical ones (messengers, navigators), as a result of which users are faced with:
- ๐ต Missed WhatsApp or Telegram calls (notifications are delayed or not coming at all).
- ๐ต Interrupted music playback in Spotify or Yandex Music when the screen is locked.
- ๐ถ Stop recording a workout in Strava or Google Fit in 5-10 minutes.
- ๐ Loss of connection with the navigator (Yandex Navigator, Google Maps) in the background.
โ ๏ธ Warning: Disabling optimization for all applications in a row can reduce battery life by 30-40.
Method 1: Allowing Auto-Run of the Application
The most basic method is to add an app to the autorun list, which will allow it to start automatically after the phone has restarted and run in the background without any additional restrictions.
Instructions:
- Open Settings โ Applications โ Application Management.
- Select the application you want (such as Telegram).
- Slip on Autostart and turn on the switch.
- Go back and go to Permissions โ Additional โ Auto Run to make sure the app is added to the list.
On MIUI 14, the path may be different:
Settings โ Applications โ Permissions โ AutorunAfter turning on auto-start, check the application:
Reboot the phone.
Open the app and roll it up.
Wait 5-10 minutes.
Check if it has closed in the background (via the menu of recent apps)-->
โ ๏ธ Note: On some models (Redmi Note 11, POCO X3 Pro after updating to MIUI 13 autostart may not be available. In this case, use Method 3 (battery settings).
Method 2: Disabling Battery Optimization
The MIUI system by default limits background activity to all applications except system applications.
Steps:
- Go to Settings โ Battery and Performance โ Battery Consumption Management by Apps.
- Select the No Limits mode for the desired application.
- If there is no such item, tap on the three-point menu (โฎ) in the upper right corner and select Battery Settings, then turn off optimization for a specific application.
On MIUI 14 (Global Version), the path looks like this:
Settings โ Battery โ Application Selection โ [application name] โ Without restrictionsFor maximum effect, combine this method with Method 1 (autostart).
- ๐ Turn on auto-start.
- โก Turn off battery optimization.
- ๐ Prevent the system from closing the application when the screen is locked (see Method 4).
| Xiaomi model | The Way to Battery Settings | Notes |
|---|---|---|
| Redmi Note 10/11 | Settings โ Battery โ Selection of applications | In Chinese firmware, the item is called App battery saver. |
| POCO F3/F4 | Settings โ Battery โ Battery management | Reboot is required after changes |
| Xiaomi 12/13 | Settings โ Battery and Performance โ Battery Optimization | MIUI 14 is available in the โAdaptive Batteryโ mode โ it must be turned off |
| Redmi 9/9A | Settings โ Battery โ Battery settings | No restrictions may be available โ use High Performance |
๐ก
If the application is closed after optimizing, check the charge saving settings in the application itself. For example, in Telegram you need to go to Settings โ Data and memory โ Saving battery power and disabling it.
Method 3: Prohibits the application from closing when the screen is locked
By default, MIUI closes the background apps 5-10 minutes after the screen locks.
For MIUI 12-13:
- Open Settings โ Lock screen โ Sleep mode.
- Select Never for Closing Background Apps.
For MIUI 14:
- Go to Settings โ Display โ Lock screen.
- Slip on the additional settings โ Sleep mode.
- Turn off the option of background processes cleaning when blocking.
On some models (POCO X4 Pro, Redmi K50) this item may be hidden.
- Activate Developer Mode (7 times tap the MIUI version in your phone settings).
- Back to Settings โ Additionally. โ For developers.
- Find the item Do not turn off background processes and turn it on.
โ ๏ธ Warning: Disabling background cleaning can lead to 10-15% increased battery consumption and rare slowdowns with prolonged use of the phone without rebooting.
Redmi Note 10/11/12
POCO F3/F4/F5
Xiaomi 12/13/14
Redmi 9/9A/9C
Another model-->
Method 4: Using App Pinning (App Pinning)
Application Protection (or App Pinning) allows you to attach an application to memory, preventing the system from closing it, which works even after the screen is locked.
How to turn on:
- Open Settings โ Applications โ Application Protection (on some models, the path: Settings โ Additional โ Application Protection).
- Add the desired app to the list by dragging it or clicking on the + icon.
- Activate the Block in Memory Switch.
Features of the method:
- ๐ The application will not close even if there is a lack of RAM (the system will start to close other processes).
- ๐ต It only works for applications added manually โ nothing is automatically protected.
- ๐ After restarting the phone, the protection must be turned on again (on some firmware).
On MIUI 14 for Xiaomi 13 and POCO F5, the feature is called App Lock in Memory and is located here:
Settings โ Applications โ Application Management โ [select application] โ Block in memoryWhat to do if there is no Application Protection?
Method 5: ADB commands for deep tuning (for advanced)
If standard methods do not help, you can use them. ADB-Android Debug Bridge is the most reliable way to force optimization to go, but it requires a computer connection.
Step-by-step:
- Download and install Platform Tools (includes adb.exe).
- Enable USB debugging on your phone: Settings โ About Phone โ MIUI Version (Tap 7 times) Settings โ Additional โ For Developers โ Debugging on USB
- Connect the phone to the PC and confirm the debugging permission.
- Open the command line (Win + R โ cmd) and type:
adb shell dumpsys deviceidle whitelist +com.example.app
adb shell cmd appops set com.example.app RUN_ANY_IN_BACKGROUND allow
adb shell cmd appops set com.example.app RUN_IN_BACKGROUND allowReplace com.example.app with a real application package (e.g. org.telegram.messenger for Telegram). You can find out the package using the App Inspector app or command:
adb shell pm list packages | grep "keyword"For mass optimisation disabling for all applications (not recommended!):
adb shell settings put global hidden_api_policy 1โ ๏ธ Attention: Misuse of the right ADB-If you have the commands, restart the phone or the changes won't take effect. Also note that after you reset or update. MIUI repeat the procedure.
๐ก
ADB-commands are the most powerful tool, but you need to be careful, use them only if other methods have not worked, and follow the instructions exactly.
Additional Tips for Stable Work
Even after setting up the background, applications can be closed due to other MIUI limitations.
- ๐ถ Turn off the "Adaptive Battery": Settings โ Battery โ Battery settings โ Adaptive battery (disable) This feature dynamically limits background processes depending on the level of charge.
- ๐ Add the app to the traffic saving exceptions: Settings โ Connections and sharing โ Saving traffic โ Exceptions are relevant for messengers and navigators that actively use the Internet.
- ๐ก๏ธ Turn off Optimization. MIUI" (only MIUI 12.5+): Settings โ The phone. โ Version. MIUI (Tap 10 times) Settings โ Additionally. โ Optimization MIUI (Disable) Attention: this item is hidden and appears only after multiple taps according to firmware.
- ๐ Use "High Performance" in Battery Settings: Settings โ Battery โ Performance mode โ High performance This will reduce the aggressiveness of optimization, but reduce battery life.
For owners. POCO-smartphone (POCO F3, POCO X4 Pro) has an additional setting:
Settings โ POCO Launcher โ Launcher settings โ Memory โ Disable Memory Cleanup