Do you open the messenger, switch to the browser, and when you return, you find that the chat has rebooted from scratch? Or does the game interrupt once you answered the message? The problem of when applications on Xiaomi close when they fold is familiar to many owners of smartphones of this brand. The reason for this is the aggressive optimization of energy consumption in firmware MIUI, Limited budget model resources or incorrect user settings.
In this article, we will understand 7 Key reasons why background processes are killed by the system, and we will give step-by-step solutions for each - from turning off smart battery savings to manually setting application priorities. 12/13, POCO X5 Xiaomi 13T, You will also learn how to check which applications are affected by forced closure, and what to do if standard methods do not help.
Why Xiaomi is killing apps in the background: the main reasons
Firmware MIUI It's known for its aggressive memory and power management policies, which involve trying to extend battery life, but often leads to unwanted shutdowns:
- ๐ Power saving mode: Powered by default on many models (e.g. Redmi) 10A or POCO M5). The system forcibly closes the background processes, even if the battery charge is above 50%.
- ๐งน Cleanup RAM scheduled: MIUI Automatically removes unused applications after 5-10 minutes of inactivity, regardless of their importance.
- ๐ฑ Lack of RAM: On budget smartphones (for example, Redmi) 9A 2-3 GB RAM) The system is forced to free up memory for active tasks.
- โ๏ธ Autorun settings: By default, many apps (including Telegram, Viber) are denied the right to work in the background.
- ๐ Updates MIUI: After major updates (for example, transition from MIUI 13 by 14) resets user optimization settings.
Interestingly, the problem is more often manifested on models with Snapdragon processors. 4xx/6xx (For example, Redmi Note 11), than on the flagships with Snapdragon 8 Gen 2. This is due to the different distribution of resources in the firmware for different chipsets.
Before you start settings, check if the applications are actually closed by the system, rather than being crashed due to errors.
- Open the Settings. โ The phone. โ Version. MIUI and tap 5 times on the inscription "Kere Version" (developer mode is activated).
- Back to Settings โ Additionally. โ For developers and enable Do not close applications (if optional).
- Run a problem app, fold it, and watch for 1-2 minutes, and if it doesn't close, it's settings, not hardware constraints.
How to turn off automatic cleaning RAM Xiaomi
The most radical way to prevent app closure is to disable embedded optimization. MIUI. However, this can reduce battery life by 10 to 15 percent. If you're willing to compromise, follow the instructions:
โ๏ธ Disconnecting the cleanup RAM
Step 1: Activate the Developer Mode
Go to Settings. โ About the phone and tap 7 times on the line Version MIUI. You will receive a notification saying, โYou are a developerยป.
Step 2: Disabling Optimization
Now open the Settings. โ Additionally. โ For developers and find options:
- Optimization MIUI โ Shut down.
- Limitation of background processes โ Select No Limitations or Standard Limitation.
- Don't stay active โ Disable (this will prevent apps from rebooting when they return).
Step 3: Set up auto-start
Even after optimizing is disabled, some applications may be blocked to avoid:
- Go to Settings โ Applications โ Application Management.
- Select the desired application (such as WhatsApp) โ Auto-start โ Turn on.
- Activate the option to Allow background activity.
๐ก
If there is no option in the list for developers MIUI, So your model (like Xiaomi 13 Ultra) uses a different memory management mechanism, in which case you can go straight to autorun settings.
Optimizing energy consumption: balance between productivity and operating time
Turning off optimization completely isn't always the best solution. โค 4,000mAh (like the Xiaomi 11 Lite) this can lead to the need to recharge by the evening:
| Energy saving regime | Impact on background applications | Recommendations |
|---|---|---|
| Balance (default) | Moderate limitation of background processes | Suitable for most users |
| Productivity | Minimum restrictions | Use if your phone is warm or discharged quickly |
| Saving charge | Aggressively closing all background tasks | Disable for key applications (messengers, navigators) |
| Super economy | Closes everything except the active app | Only for emergencies (e.g. 5% charge) |
To customize the exceptions:
- Open the Settings. โ Battery and productivity โ Choice of regime.
- Choose Balance or Performance.
- Tap setting battery saving setting โ Annexes.
- Add messengers, music players and navigators to the list of exceptions.
๐ก
In the models with MIUI 14 and later, the "Super Savings" option may not be available, instead using Ultra Savings, which further restricts background processes.
If the applications are closed after the changes, check the individual battery settings for each of them:
- ๐ Settings โ Annexes โ Application management โ [Select an application] โ Battery.
- ๐ Install No Limits or Background Activity.
Cache cleaning and memory release: when the problem is clogged
Sometimes apps are not closed because of optimization, but because of a lack of free memory. If your Xiaomi has less than 1 GB of free space, the system begins to force free RAM, It's killing the background. Here's how to fix it:
Step 1. Clean up the app cache
Go to Settings. โ Annexes โ App management, select a problematic app (like Instagram) and tap Clear Cache. for mass cleaning:
- Open the Settings โ Memory.
- Click Clear in the "App Cache" section.
- Confirm the action (this will not delete your data, only temporary files).
Step 2: Freeing RAM
If you're a model with โค 4GB RAM (Like Redmi. 9C), try:
- ๐๏ธ Remove unused apps (especially games and social media that take up a lot of memory).
- ๐ Reboot the phone โ it will reset the temporary processes that take up the phone RAM.
- ๐ฑ Use the โLiteโ version of the application (for example, Facebook Lite instead of the usual Facebook).
What to do if the memory is full of system files?
Step 3: Disconnect unnecessary background processes
Some system services MIUI (Mi Video, Mi Music, for example, work in the background even if you're not using them:
- Go to Settings โ Applications โ Application Management.
- Sort the list by โWorks in the backgroundโ.
- For unnecessary applications, select Stop and disable Auto Start.
Problems with specific applications: Telegram, Vkontakte, games
Some apps are more likely to suffer forced closures on Xiaomi, and consider typical cases and solutions:
1. Telegram/WhatsApp/Viber
Messengers are shutting down due to aggressive battery optimization.
- ๐ In the application settings, turn off Traffic Saving and Background Data Limitation.
- ๐ฑ In the phone settings (Battery) โ Selection of applications) add messenger in exceptions.
- ๐ In Telegram itself: Settings โ Data and memory โ Background link โ Choose Always Active.
2. Navigators (Yandex.Maps, Google Maps, 2GIS)
Navigators often close when the screen is locked.
- ๐ In the application settings, enable Permanent Location Determination.
- ๐ In the phone battery settings add the navigator to the list No restrictions.
- ๐ Activate voice support โ it will prevent the system from killing the process.
3.Games (PUBG Mobile, Genshin Impact, Call of Duty)
Games are closing due to shortages RAM Or overheating. The following steps will help:
- ๐ฎ In the game settings, reduce the graphics to Balanced or Low.
- โ๏ธ Use a cooling stand or play in a cool room.
- ๐ In Settings โ Special permits โ Turbo mode add the game and disable the restriction FPS.
๐ก
For Genshin Impact on Xiaomi models with 6 GB RAM It is recommended to manually allocate 4 GB of memory for the game. โ Annexes โ Genshin Impact โ Select Memory to Increase Memory Limit (if option is available).
Problems after update MIUI: How to restore stability
Major updates MIUI (For example, 13 to 14, custom optimization settings are often reset. If applications start to close after an update, follow these steps:
1.Reset battery settings
Go to Settings. โ Battery and productivity โ Battery settings โ Reset. It'll bring back the factory power saving settings, and then you'll have to reconfigure the application exceptions.
2. Clearing the data of the security service
Sometimes failures are caused by the service cache MIUI To get rid of him:
- Open Settings โ Applications โ Application Management.
- Find Security (or Security)
- Slip the Warehouse โ Clear the data and Clear the cache.
3. rollback to the previous version MIUI (advanced)
If the problem appeared after the update and is not solved by other methods, you can return the old firmware. For models on MediaTek processors (for example, Redmi Note 11), this is fraught with blocking the bootloader, so pre-unblock it through the official Xiaomi website.
๐ก
Before rolling back the firmware be sure to make a backup through Settings โ Additionally. โ Backup and reset. Use Mi Cloud or local storage.
Alternative solutions: from root rights to third-party utilities
If standard methods don't work, consider advanced methods. They require technical skills and may be insecure, but sometimes they're the only ones that save the day.
1.Use of ADB optimizing
With the help of teams ADB You can manually disable optimization for specific applications:
adb shell dumpsys deviceidle whitelist +com.whatsapp
adb shell dumpsys battery resetWhere com.whatsapp is the batch name of the application (you can find it through the App Inspector in Google Play).
2. Memory management utilities
Apps like Greenify or Brevent allow you to flexibly adjust background activity, but they require:
- ๐ Unlocked bootloader (on most Xiaomi this is officially possible through the manufacturerโs website).
- ๐ ๏ธ Superuser rights (root) that void the warranty.
Risks of using root rights
3. Custom firmware
LineageOS or Pixel Experience are not aggressively optimized MIUI. However, their installation requires:
- ๐ฑ Supports for the model (check out the forum) XDA Developers).
- ๐ง Ability to work with Fastboot and TWRP.
- โ ๏ธ Understanding the risks (possible device brick).
What to do if nothing helps: diagnosis and service
If youโve tried all the ways, but the Xiaomi apps still close when folded, the problem may be hardware malfunctions:
- ๐ Battery wear: If battery capacity has dropped below 70%, Forcedly shuts applications to extend battery life. Check battery status via ##4636## (Battery Information sectionยป).
- ๐ฅ๏ธ Failure of RAM: On models with soldering RAM (for example, POCO F3) Memory controllers may fail, and only service centers can diagnose this.
- ๐ Firmware conflict: If the phone was previously flashed by unofficial methods, errors in the work may occur MIUI. The solution is a complete flashing through Fastboot.
Before you carry your phone to the service, perform a full reset:
- Make a backup of the data (Settings โ Additional โ Backup).
- Go to Settings โ About the phone โ Reset settings.
- Choose Delete all data and confirm.
๐ก
If the problem disappeared after the reset, it means that the settings or conflicting applications were to blame, and if not, you need to diagnose it at an authorized Xiaomi service center.
โ ๏ธ Note: On models with dynamic RAM (for example, Xiaomi 12 Pro 8+3 GB) forced closure of applications may be associated with malfunctioning of virtual memory, in which case only updating the firmware to the latest version will help.