Why Xiaomi is Killing Background Apps and How to Fix It
Xiaomi MIUI-based smartphones aggressively optimize background processes, as every device owner knows. It automatically shuts down applications to save battery life and free up RAM. But what if you need a messenger, a navigator or a work tool to work all the time?
The problem lies in three key mechanisms of MIUI: 1 Battery optimization โ the system limits the activity of applications in the background; 2) Automatic memory cleaning โ MIUI removes โextraโ processes when blocking the screen; 3) Restrictions for third-party applications โ some programs initially fall into the โblacklistโ.
This article provides a complete guide to disabling forced app closures on Xiaomi, including hidden settings and workarounds for MIUI 14/15. Methods tested on Redmi Note 12 Pro+, Xiaomi 13 Ultra, POCO F5 and other current devices of the brand.
Method 1: Setup autostart and background activity
The first thing you need to do is let the app auto-start and run in the background, without which even the most important programs will close 5-10 minutes after they fold.
Instructions for MIUI 14/15:
- Open Settings โ Applications โ Application Management.
- Select the application you want (such as Telegram or Google Maps).
- Slip on Autostart and turn on the switch.
- Go back and activate the Background Activity option (if any).
- In the Battery section (within the app settings), select No Limits.
โ ๏ธ Note: Some firmware may call Background Activity Allow Background or hide in Submenu Additional. If you don't have an option, move on to the next method.
Select the application in "Application Management" |
Turn on "Stop" |
Activate "Background Activity" |
Set the battery mode "No restrictions" |
Reboot your smartphone (optional)-->
Method 2: Turning off battery optimization for individual applications
MIUI by default limits background activity to all applications except system applications, to remove this limitation:
Steps:
- Go to Settings โ Battery and Performance โ Battery Optimization.
- In the top corner, press three dots (โฎ) and select All Apps.
- Find the desired application in the list and tap it.
- Choose the option without restrictions.
- Save the changes and restart the device.
๐น Important: After these actions, the application will consume more energy. If you notice a strong battery consumption, return the settings back or use method 3 (below).
Messenger (WhatsApp, Telegram) |
Navigator (Google Maps, Yandex.Maps) |
Music player (Spotify, VK Music) |
Fitness tracker (Strava, Google Fit) |
Other-->
Method 3: Use of "Pin App"
The memory lock (or Pin App) feature allows you to attach an application to RAM so that the system does not close it even when resources are scarce, which is the most reliable way for MIUI, but does not work on all models.
How to turn on:
- Open Recent Apps (swipe up with a delay).
- Find the right app and swipe it down (without closing!).
- Icon will appear ๐ Hold it, press it.
- Now the app will hang in the background even if you open other programs.
| Xiaomi model | Does it support Pin App? | Alternative method |
|---|---|---|
| Redmi Note 12/13 | โ Yes. | โ |
| POCO F4/F5 | โ Yes. | โ |
| Xiaomi 13/14 | โ ๏ธ Partially (for system applications only) | Method 4 (ADB) |
| Redmi 10A/10C | โ No. | Method 2 + Method 5 |
โ ๏ธ Attention: On some firmware MIUI The Pin App function is not working properly and can cause the interface to hang. If you notice lags, unplug the app and use alternative methods.
Method 4: ADB commands to completely disable optimization
If standard settings don't work, you can use USB debugging (ADB), which requires a computer connection but gives you maximum control over background processes.
Instructions:
- Turn on Developer Mode (7 times tap the MIUI version in Settings โ About Phone).
- Activate Debugging by USB in Settings โ Additional โ For developers.
- Connect your smartphone to your PC and execute the command: adb shell dumpsys deviceidle whitelist +com.example.app (replace com.example.app with your applicationโs batch name, for example, org.telegram.messenger).
- To completely disable battery optimization, use: adb shell dumpsys battery unplug (carefully: this can increase battery consumption!).
How to find out the package name of the application?
๐น Note: After the teamโs smartphone is rebooted ADB To keep the changes constant, you need to write them into an auto-run script (for example, through Tasker).
Method 5: Bypasses for stubborn applications
If none of these methods worked, try these alternative solutions:
- ๐ฑ Use Developer Mode: Activate the option Do not limit background processes in the developer settings (Settings) โ Additionally. โ For developers โ Limitations of processes).
- ๐ Turn off Adaptive Brightness: Sometimes it conflicts with background processes. โ Display.
- ๐ ๏ธ Install a third-party launcher: Some launchers (like Nova Launcher) allow you to lock applications into memory via plugins.
- โก Try Greenify: A background management application (requires root or ADB).
๐ก
If the app is closed anyway, check its settings inside the app itself. For example, Telegram has an option to โAutoload Mediaโ in the background, which can affect the stability of the work.
What do you do if nothing helps?
If you have tried all the methods, but the application is still closed, the problem may lie in:
- ๐ Too Aggressive Firmware: Some Custom Builds MIUI (For example, Xiaomi.eu has very limited options. Try to reflash the device to the official version.
- ๐ Lack of RAM: On budget models (Redmi) 9A, POCO M3) 2-3 GB of RAM may not be enough to hold applications, so the solution is to close all unnecessary programs manually.
- ๐ Bug in a specific application: Some programs (e.g. older versions) VK Or AliExpress) you fall in the background. Update the app or write in support of the developer.
๐ก Last resort: If it is critical that the app works at all times (for example, for tracking or monitoring), consider buying a separate device. 4X or Mi A1 (with pure Android) specifically for background tasks.
๐ก
There is no universal solution on devices with MIUI โ it is often necessary to combine several methods (for example, ADB + Pin App + battery settings).