Xiaomiโs MIUI-based smartphones are known for aggressively optimizing background processes. The system automatically pauses or closes apps to save battery power and RAM. For most users, this is convenient, but if you need messengers (Telegram, WhatsApp), navigators (Yandex.Maps, Google Maps) or fitness trackers (Strava, Nike Run Club) to work in the background without interruptions, you will have to manually adjust the exceptions.
Compounding the problem, MIUI 14 and newer are even stricter on background processes than previous versions. Even after manually configuring some applications, some applications can close after 5-10 minutes of inactivity. In this article, we present current ways to disable automatic app closure on Xiaomi in 2026, including hidden developer settings and bypassing restrictions through ADB.
Why is Xiaomi closing apps in the background?
The reasons for aggressive optimization of background processes in MIUI lie in the firmware architecture:
- ๐ Battery savings โ the system forcibly stops applications that are not actively used to reduce charge consumption, especially on models with a battery up to 4000 mAh (for example, Redmi Note 10 or the Redmi Note). POCO X3 Pro).
- ๐ง RAM management โ on devices with 4-6 GB of RAM MIUI It removes background processes to free up resources for active tasks, even flagships like the Xiaomi 13 Ultra.
- ๐ค Android policy โ starting with Android 8.0 Oreo, Google has tightened the rules for background services. MIUI further tighten these restrictions.
- ๐ฑ Performance โ by default, the system believes that the user is more important than the speed of opening new applications than the stable operation of the background.
It's important to understand that MIUI doesn't just kill apps -- it uses a Doze Mode mechanism that pauses background processes when the screen is off, and even if you add an app to the exceptions, it can slow down, but it doesn't shut down completely.
Method 1: Setup autostart and background activity
The easiest method is to allow the app to auto-start and run in the background through standard MIUI settings, which works on all models, including the Redmi 12, POCO F5 and Xiaomi 14.
- 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 select Permissions โ Additional โ Background activity.
- Set the value without limits.
After these steps, the application will be able to work in the background, but it is not guaranteed that it will not be suspended after a few hours. For reliability, use this method together with method 2 (block battery optimization).
Auto-start on.|Background activity without restrictions|Notifications permitted|Battery optimization is disabled (see method 2)-->
Method 2: Disabling Battery Optimization for an Application
MIUI has a separate battery optimization mechanism that can block background processes even when auto-start is allowed, to turn it off:
- 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 No Limits.
On some models (e.g. POCO X5 Pro), the path may be different: Settings โ Battery โ Battery settings โ Battery Optimization.
โ ๏ธ Warning: Disabling battery optimization for too many applications can lead to a 10-20% increase in charge consumption, and it is recommended to use this method only for mission-critical programs (navigators, messengers, health trackers).
๐ก
If the Battery Optimization list doesnโt have the right app, try running it at least once first โ after that, it will appear in the settings.
Method 3: Blocking an application in multitasking
MIUI has a feature to "pin" applications in the multitasking menu, which prevents them from closing when you clear the memory, which works temporarily until the device restarts.
- Open the application that you want to leave in the background (for example, Spotify or Yandex.Music).
- Click the recent apps button (square or swipe up with pause).
- Find the app card and swipe down (don't delete!) a lock icon will appear. โค๏ธ.
- Slip on the lock icon to secure the app.
Now the app won't close even if you click Clear Everything in the Multitasking Menu.
- ๐ The attached application doesnโt update in the background โ it just doesnโt close when you clear the memory.
- ๐ After rebooting the smartphone, the lock is reset.
- ๐ You can only attach one application (on some models - up to 3).
Method 4: Developer settings (hidden parameters)
For advanced users, MIUI offers hidden settings that allow more flexibility in managing background processes.
- Go to Settings. โ The phone.
- Find the MIUI version and tap it 7 times in a row. You will be notified of becoming a developer!
- Go back to the main settings menu and open a new section for developers.
The following parameters can now be configured:
| Parameter | Recommended value | The effect |
|---|---|---|
| Limitation of background processes | Standard Limitation or No Limitations | Increases the number of processes that can work in the background at the same time. |
| Not to keep up the action | Disconnected. | Prevents automatic closing of applications when the screen is blocked. |
| Limitation for background processes | 4 processes (maximum) | It allows you to keep more applications in memory. |
| Windows animation and transition animation | Disabled (0x) | Speeds up switching between applications, reducing the chance of closing backgrounds. |
โ ๏ธ Warning: Changing the Do Not Save Action setting can lead to memory leaks and unstable system operation. Use it only if other methods have not helped.
What to do if there is no โDevelopersโ item?
Method 5: ADB commands to completely disable optimization
If standard methods don't work, you can use ADB (Android Debug Bridge) to deep-tube the system, which requires a connection to a computer, but gives you maximum control over the background processes.
Instructions:
- Download and install Platform Tools (includes ADB).
- Enable USB debugging in the developer settings (see Method 4).
- Connect your smartphone to your PC and type in the command line: Adb devices Make sure the device is defined.
- Run the command to disable battery optimization: adb shell dumpsys deviceidle whitelist +com.example.app Replace com.example.app with your application's batch name (e.g. org.telegram.messenger for Telegram).
- To disable Doze Mode, use: adb shell dumpsys battery unplug adb shell dumpsys deviceidle force-idle Attention! This command simulates charging connection, which can increase battery consumption.
To find the batch name of the application, use the command:
adb shell pm list packages | grep "appendix name"For example, for WhatsApp:
adb shell pm list packages | grep whatsapp๐ก
ADB commands are reset after the reboot. To make the changes permanent, use a script or task in Tasker.
Method 6: Use of third-party utilities (without root)
If you don't want to mess with ADB, you can use specialized apps from Google Play that automate setting up background processes.
- ๐ ๏ธ Donโt Kill My App! โ Shows the exact instructions for your Xiaomi model and version MIUI. Reference: Google Play.
- ๐ AutoStart - manages autorun and background activity for all applications. MIUI 12โ14.
- โก Greenify allows you to manually choose which apps you don't optimize, requires customization, but is effective.
- ๐ฑ MIUI Optimization Tweaks โ a utility for fine firmware configuration (requires) ADB, but simplifies the process).
The advantage of these apps is that they are tailored to specific models (such as the Redmi Note 11 Pro+ or Xiaomi 12T) and MIUI versions. However, beware โ some utilities may contain ads or request unnecessary permissions.
Method 7: Alternative solutions (if nothing helps)
If all of the above methods have failed, try the following options:
- ๐ Update MIUI โ in new versions of the firmware (for example, MIUI 14.0.5+) Sometimes they fix background process bugs. Check for updates in Settings โ The phone. โ Updating the system.
- ๐ฑ Resetting โ if the problem appears after the update, try resetting to factory settings (Settings) โ The phone. โ Reset settings. Don't forget to make a backup!
- ๐ง Install custom firmware โ firmware like LineageOS or Pixel Experience do not have aggressive optimization MIUI. Disadvantages - loss of warranty and possible bugs.
- โก Using the second device โ for critical tasks (for example, jogging tracking), you can use a separate cheap smartphone or smart watch (Xiaomi Watch 2 Pro).
Some models (such as Black Shark 5) have a game mode that can be adapted to the background of applications. To enable: Settings โ Special Features โ Game Mode.