Androidโs operating system โ especially Xiaomiโs MIUI firmware โ aggressively manages background processes, which is designed to save battery power, but often causes instant messengers to stop notifying, music players to break down, and navigators to lose connection. In this article, weโll look at all the possible ways to disable automatic application termination, from standard settings to hidden commands for power users.
The problem is compounded by Xiaomi regularly changing the logic of the background processes in new versions of MIUI 14/15.What worked a year ago may be useless today.We tested each method on current devices (including Redmi Note 12 Pro+, Xiaomi 13 Ultra and POCO F5) and selected only working solutions for 2026.
โ ๏ธ Note: Some methods require unlocking the bootloader or root rights.This can lead to loss of warranty or unstable system operation. โ Google โ Backup.
Why Xiaomi is killing apps in the background: the real reasons
Many users mistakenly think that the only problem is MIUI's greed for resources, and in fact, there are three key mechanisms behind this:
1. Android Battery Optimization (Doze Mode) is an Android 6.0+ built-in mode that limits the background activity of applications when the device is not in use. In MIUI, this mechanism works even harder due to additional restrictions.
2. MIUI Battery Saver is Xiaomi's proprietary technology that analyzes energy consumption and forcibly closes "gluttonous" processes. Even if you turn it off in the settings, some of the functions will remain active at the core level of the system.
3. Manufacturer Restrictions (OEM) โ Xiaomi, like other brands (Samsung, Huawei), is modifying Android to suit its objectives. As a result, standard settings Do not optimize in the battery menu are often ignored.
- ๐ Up to 30% of applications are killed by the system in the first 5 minutes after curtailment (test data on the data of the test). MIUI 14.0.5).
- โก Messengers (Telegram, WhatsApp) and navigators (Yandex.Maps, Google Maps) suffer most often.
- ๐ฑ Redmi with MediaTek processors (Helio) G99, Dimensity 1080 - background restrictions are stricter than on Snapdragon.
Method 1: Standard MIUI settings (without root)
To start with, the simplest of them is the built-in MIUI tools, which require no additional rights and work on most devices, but their effectiveness depends on the firmware version.
Open Settings โ Applications โ Application Management and select the desired application.
- Allow AutoRun: Go to AutoRun and turn on the switch. This will allow the application to start automatically after the device restarts.
- Turn off battery optimization: In the app menu tap Battery Optimization โ select No Limits. On some devices, this item may be called Battery Management.
- Disable closing in background: In the same menu, find the Ending in the background and turn off the option. On MIUI 15, this item may be hidden - see the next section.
โ ๏ธ Attention: POCO And some Redmi menu items may be different. If you don't find Battery Optimization, try the path: โ Battery โ Choice of applications โ [attachment] โ No restrictions.
โ๏ธ Checking settings MIUI
Method 2: Hidden Developer Settings
If standard methods donโt work, itโs time to activate the developer mode, which gives you access to additional parameters that Xiaomi hides from ordinary users.
To activate the mode:
- Go to Settings. โ The phone.
- Tap 7 times on the MIUI version (you will be notified "You became a developer!").
- Return to the main settings menu and open Additional settings โ Developer settings.
Now find and change the following parameters:
- ๐ Limit background processes โ Select No Limits or Standard Limit (4 Processes).
- ๐ซ Don't keep up โ Disable (this prevents applications from remaining in memory).
- โก Optimization MIUI โ Disable (can be called Smart Optimization).
- ๐ฑ Background check โ Enable (for stable operation of notifications).
๐ก
Once you change the developer's settings, restart the device. Some settings only apply after the reboot.
| Parameter | Recommended value | The effect |
|---|---|---|
| Limit background processes | No restrictions. | Allows you to keep up to 8 applications in memory |
| Not to keep up the action | Disconnected. | Prevents resetting of application state |
| Optimization of MIUI | Disconnected. | Removes aggressive memory management |
| Background check | Included. | Improves the delivery of notifications |
Method 3: ADB-deep optimization teams
If previous methods have failed, itโs time to connect Android Debug Bridge (ADB), a tool for advanced users to give direct commands to the system.
What you need:
- ๐ฅ๏ธ Computer with Windows/macOS/Linux.
- ๐ฑ USB-cable (preferably original).
- ๐ง Installed Xiaomi and ADB-tools drivers.
Step-by-step:
- Enable USB Debugging in Developer Settings.
- Connect your phone to your PC and confirm your trust in your computer.
- Open the command line (cmd) and enter:
adb devices(Your device should be displayed)
adb shellNow, follow the commands to disable optimization (replace com.example.app with your app package, such as org.telegram.messenger):
dumpsys deviceidle whitelist +com.example.app
cmd appops set com.example.app RUN_ANY_IN_BACKGROUND allow
cmd appops set com.example.app RUN_IN_BACKGROUND allowHow do I find out the application package?
โ ๏ธ Attention: After update MIUI Some teams may reset. Repeat the procedure after each major update.
Method 4: Using Magisk and Root Modules
If you have a bootloader unlocked and you have Magisk installed, you can go a step further, which gives you maximum control over the background, but requires technical skills.
Required modules:
- ๐ ๏ธ Disable Flag Secure โ removes screen recording and background activity restrictions.
- ๐ Universal GMS Doze Fix โ fixes problems with Doze Mode for Google apps.
- โก MIUI Optimization Disabler โ Disables Optimization completely MIUI (It can reduce battery life!).
How to determine:
- Download the modules from the Magisk repository.
- Open the Magisk app, go to Modules and click Install from Storage.
- Select the desired modules and confirm the installation.
- Reset the device.
๐ก
MIUI Optimization Disabler may conflict with some banking applications (e.g. Sberbank Online).
Method 5: Alternative launchers and memory settings
Not everyone knows, but the launcher (Android shell) also affects memory management, such as Nova Launcher or Hyperion Launcher, which allows you to flexibly customize background processes.
What can be done:
- ๐ฑ Install Nova Launcher and enable Save in Memory for Critical Applications in Settings.
- ๐ In the Nova Settings โ Memory Select Aggressive caching (will increase RAM consumption but reduce process killings).
- ๐ Use Tasker or MacroDroid to automatically restart dead apps (requires setting triggers).
Also check the memory settings in the Developer Settings:
- Limit of background processes โ Set the Standard Limit (4 processes) or No Limits.
- Do not save actions โ disable (important for multitasking).
Method 6: Configure with Shizuku and AppOps
Shizuku
AppOps
Instructions:
- Install Shizuku from GitHub.
- Follow the instructions in the application to connect via ADB (one-time setting).
- Install AppOps.
- In AppOps, find your app and turn it on: RUN_IN_BACKGROUND RUN_ANY_IN_BACKGROUND WAKE_LOCK
This works even on MIUI 15 and doesn't require unlocking the bootloader, but once the device is restarted, some resolutions may reset and have to be turned on again.
Method 7: Radical measures - change firmware
If nothing works, the last option is to switch to custom firmware, which completely removes the limitations of MIUI, but requires unlocking the bootloader and losing the warranty.
Recommended firmware for Xiaomi:
- ๐ฑ Pixel Experience โ pure Android with minimal modifications.
What to consider:
- ๐ Battery life can be reduced by 10-20% (no aggressive optimization) MIUI).
โ ๏ธ Note: On devices with MediaTek processors (Helio) G96, Dimensity 700, etc. Unlocking a bootloader often leads to loss. IMEI. Before the firmware, make a backup module NVRAM through MTK Client.