You run an app on your Xiaomi, step back for a minute, and it's closed, or the game suddenly crashes and the messengers stop sending notifications. Familiar situation? This is not an accident, but a feature of MIUI, the firmware that all smartphones of the brand are equipped with. The system aggressively manages background processes, saving battery power and RAM, but often does it too zealously, interfering with normal operation.
In this article, weโll look at all the possible reasons why Xiaomi shuts down apps, from standard optimization features to hidden power saving settings, how to turn off auto-clean memory, configure exceptions for important programs, and even change system behavior through engineering menus, and why some models (such as the Redmi Note 12 or POCO X5) are more problematic than flagships like the Xiaomi 13 Ultra.
Important: The solutions work on all current versions of MIUI 14/15 (including global and Chinese firmware), but some items may differ depending on the model. If your smartphone is older than 2020, check out the feature section on older devices with low RAM โ there are separate recommendations.
1.Why Xiaomi is killing background apps: the main reasons
Before you fix the problem, you need to understand the root of the problem, and at Xiaomi, there are several mechanisms that are responsible for spontaneously closing applications:
- ๐ Aggressive energy saving regime โ MIUI The default limits background activity to save charge, even if the battery is charged at 100%.
- ๐งน Autocleaning Memory โ the system forcibly frees RAM, killing processes that it believes the user does not need.
- โ๏ธ Optimization MIUI โ built-in function that โimprovesโ the system but often interferes with the stability of applications.
- ๐ฑ Lack of RAM on budget models (for example, Redmi) 10A With 2GB of RAM, the system simply canโt hold many processes.
- ๐ Firmware bugs - in some versions MIUI (especially in beta versions, there are errors that cause applications to close for no reason.
The most common reason is a combination of energy saving and self-cleaning. MIUI believes that if you don't interact with an app for 5 to 10 minutes, it can be safely closed, but for instant messengers, music players or navigators, it's critical: they have to work in the background.
Another nuance: on new smartphones (such as Xiaomi 14), the problem may be less frequent due to more RAM and an optimized processor, but on older devices (such as the Redmi 5 Plus), even after resetting, applications will be closed due to hardware limitations.
2.How to turn off auto-cleaning memory in MIUI
The first thing you need to do is turn off automatic RAM cleaning, which works on the principle of "kill everything that is not in use right now," and often closes even the necessary processes.
Instructions for MIUI 14/15:
- Open Settings โ About the phone and tap 7 times on the line version of MIUI to activate the developer mode.
- Return to the main settings menu and select Additional โ For developers.
- Find Do Not Save Active Applications (or Limit Background Processes) and disable it.
- Below, find Memory Cleanup when you lock and deactivate too.
If these items are not there, then your version of MIUI is hiding them.
- Go to Settings โ Applications โ Application Management.
- Slip on three dots in the upper right corner and select Special Access โ Memory Cleanup.
- Turn off the automatic cleaning option.
Activate the Developer Mode|Disable "Do not save active applications"|Turn off "Memory cleaning when blocked"|Check the special access settings-->
After that, the system will stop forcibly killing the processes when you lock the screen, but that's only half the solution, and then you need to adjust the energy saving.
โ ๏ธ Note: On some models (e.g, POCO F5) If you notice a significant reduction in operating time, return the settings back and use alternative methods from the following sections.
3. Battery setup: How to stop MIUI from killing apps
MIUI divides all programs into power categories, and by default, most applications go into Restricted mode, which means that the system will close them as soon as possible, and to avoid that, you have to manually configure exceptions.
Do the following:
- Open Settings โ Battery and Performance โ Battery Management
- Select Application Selection (or Battery Settings for Applications).
- Find the desired application (for example, Telegram or Yandex.Navigator) in the list and tap on it.
- Select No Limits (or No Limits) mode.
For mission-critical applications (messengers, banking programs, navigators) also include:
- ๐ Auto-Run โ Allows the application to start when the phone is turned on.
- ๐ Background activity - allows you to work in the background without restrictions.
- ๐ Notifications โ ensures that you will receive alerts.
These settings are also in the same place, in the battery management menu for the specific application. MIUI check to the latest version or check if they are hidden under additional parameters (image) โ๏ธ top-right).
| Battery mode | What MIUI does | Suitable for |
|---|---|---|
| No restrictions. | Does not close the application, allows you to work in the background without restrictions | Messengers, Navigators, Music Players |
| Optimized. | Limits background activity, but does not kill the process immediately | Social networks, email clients |
| Limited. | Closes the application when the screen is locked or after 5-10 minutes of inactivity | Games that are rarely used |
| Deep optimization | Completely blocks background activity, kills the process when clotting | For nothing (turn off for all apps!) |
If the application still closes after these settings, check if the settings reset after the MIUI update. Sometimes the system returns default values.
๐ก
After changing the battery settings, restart your phone. This will help you apply the changes at the Android core level.
4. MIUI Optimization: Hidden Settings That Kill Apps
MIUI has hidden optimization features that work in the background and can interfere with the stability of applications, one of which is Smart Optimization, which analyzes your smartphone usage and forcibly closes down โunnecessaryโ processes.
To turn it off:
- Go to Settings โ Further โ Optimization.
- Put it on the badge. โ๏ธ top-right.
- Disable options: Smart Optimization Memory Optimization Adaptive Optimization (if any)
Another hidden parameter is "Background Process Limitation," which determines how many applications can run in the background at the same time, and by default, MIUI sets tight limits, especially on devices with low RAM.
To change that:
- Activate the developer mode (if you havenโt already).
- Go to Settings โ Additional โ For developers.
- Find the item Limiting background processes.
- Select the Standard Limit or No Limits (if available).
โ ๏ธ Note: Virtual memory (RAM-Extension only works on devices with UFS-On older smartphones (like the Redmi 6), this feature may not have an effect or even slow down the system.
6. Advanced methods: ADB, engineering menu and custom firmware
If standard settings don't work, you'll have to use advanced methods, which take longer and sometimes more technical knowledge, but give you maximum control over the system.
Method 1: ADB-commands to disable optimization
With ADB (Android Debug Bridge), you can force application-specific optimization to be disabled.
- Install. ADB-PC drivers.
- Enable USB debugging on your phone (Settings โ About Phone โ MIUI Version โ 7 taps โ For developers โ USB debugging).
- Connect your phone to your computer and execute the command: 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).
Method 2: Engineering Menu (MTK/Qualcomm)
On some Xiaomi smartphones (especially with Qualcomm processors), you can change the behavior of the system through the engineering menu.
- In the phone app, dial the code ##4636##.
- Go to the Battery Information or Usage Statistics section.
- Find options related to background processes and turn off restrictions.
Method 3: Castom firmware (for experienced)
If nothing works, you can install an alternative firmware (like LineageOS or Pixel Experience) that wonโt aggressively kill apps, but will require:
- ๐ Unlocking the bootloader (will result in a data reset!).
- ๐ ๏ธ Installations of custom recaveri (TWRP).
- ๐ฑ Hand-stitching through fastboot.
This method is suitable only for experienced users, as it carries the risk of losing the warranty and the "brick" (turning the phone into a "brick").
๐ก
ADB-Teams are the most effective way to disable optimization for specific applications, but require a PC connection. The engineering menu doesn't work on all models, and custom firmware is only suitable for power users.
7. Features for older Xiaomi models (until 2020)
On Xiaomi smartphones released in 2018-2019 (for example, Redmi Note 7, Mi 9), the problem with closing applications is especially acute.
- ๐ Small RAM (often 3-4 GB).
- ๐ข Outdated processors (Snapdragon) 6xx/7xx first-generation).
- ๐ Old versions. MIUI (before MIUI 12) where optimization worked harder.
For such devices, recommendations:
- Reverse MIUI 12 โ if you have a newer version, try flashing the old one, which in some cases improves stability.
- Use lightweight launchers like Nova Launcher or Lawnchair, which consume less memory than a standard MIUI launcher.
- Turn off all widgets โ they are constantly hanging in memory and take up resources.
- Install Magisk patch โ Disable Flag Secure or Universal SafetyNet Fix can help with application background work.
If the phone is slowing down after all the settings, it may be time to consider replacing it.Modern apps (especially games and social media) require more resources than older smartphones can provide.
8. Frequent Mistakes and Myths About Closing Applications in MIUI
There are many "advice" on the Internet that not only do not help, but also do harm.
Myth 1: โYou need to constantly clean your RAM manuallyโ
โ Reality: Manually cleaning memory through Task Manager doesnโt improve performance, but often degrades. MIUI They manage memory better than the user, and forced closure of applications causes the system to waste resources on re-runs.
Myth 2: โSwitching off animations will speed things upโ
โ ๏ธ Reality: Turning off animations makes the interface visually faster, but doesn't free up RAM or prevent apps from closing.
Myth 3: โYou have to shut down all Google services.โ
โ Reality: Google Play Services are critical to many apps, and shutting them down will cause messaging apps, maps, and banking to fail.
Myth 4: โResetting to factory settings will solve the problemโ
โ ๏ธ Reality: Resetting will only help if the problem is caused by a specific bug (for example, after a failed update).In 90% of cases, after a reset, applications will close again - because this is a feature of the app. MIUI, not a mistake.
Myth 5: โYou have to shut down all background processes.โ
โ Reality: Completely disabling background processes through Settings โ Annexes โ Background activity will cause notifications, synchronization and even calls to stop working.
Instead of following dubious advice, stick to the methods described in this article. They are tested on real devices and do not harm the system.