Android Apps Close When You Cancel: How to Fix Xiaomi

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.

๐Ÿ“Š What kind of Xiaomi model do you have?
Redmi Note 10/11/12
POCO X3/X4/X5
Xiaomi 12/13/14
Redmi 9/10 series
Another model

Before you start settings, check if the applications are actually closed by the system, rather than being crashed due to errors.

  1. Open the Settings. โ†’ The phone. โ†’ Version. MIUI and tap 5 times on the inscription "Kere Version" (developer mode is activated).
  2. Back to Settings โ†’ Additionally. โ†’ For developers and enable Do not close applications (if optional).
  3. 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

Done: 0 / 4

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:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Select the desired application (such as WhatsApp) โ†’ Auto-start โ†’ Turn on.
  3. 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 regimeImpact on background applicationsRecommendations
Balance (default)Moderate limitation of background processesSuitable for most users
ProductivityMinimum restrictionsUse if your phone is warm or discharged quickly
Saving chargeAggressively closing all background tasksDisable for key applications (messengers, navigators)
Super economyCloses everything except the active appOnly for emergencies (e.g. 5% charge)

To customize the exceptions:

  1. Open the Settings. โ†’ Battery and productivity โ†’ Choice of regime.
  2. Choose Balance or Performance.
  3. Tap setting battery saving setting โ†’ Annexes.
  4. 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:

  1. Open the Settings โ†’ Memory.
  2. Click Clear in the "App Cache" section.
  3. 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?
If you see in the Memory section that most of the space is occupied by the System or Other category, this may be due to a firmware error, in which case a factory reset (donโ€™t forget to back up!) or a Fastboot flashback will help.

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:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Sort the list by โ€œWorks in the backgroundโ€.
  3. 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:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Find Security (or Security)
  3. 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 reset

Where 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
Unblocking the bootloader and obtaining root rights deprive you of warranties, and also increase the risk of installing malware. 12S Ultra) this can lead to blocking of data encryption.

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:

  1. Make a backup of the data (Settings โ†’ Additional โ†’ Backup).
  2. Go to Settings โ†’ About the phone โ†’ Reset settings.
  3. 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.

FAQ: Frequent questions about closing apps on Xiaomi

Why do Xiaomi shut down apps even at 50% battery charge?
This is due to the function of the adaptive battery in MIUI, It closes the background processes regardless of the charge level. โ†’ Battery โ†’ Adaptive battery.
How do I know which application is being closed by the system?
Use the built-in Activity Monitor: Activate Developer Mode (as described above). Go to Settings โ†’ For developers โ†’ Activity monitor. Run a problem app, fold it, and watch for logs. You can also use third-party tools like Background App Inspector.
Does the shutdown help? MIUI Optimization for all Xiaomi models?
No, on some flagships (such as the Xiaomi 13 Pro), this option is missing or works differently. Instead, use the Background Limitation setting in the developer menu.
Can you return factory optimization settings if the phone starts to run out quickly after the changes?
Yes for this: Go to Settings โ†’ Battery โ†’ Battery settings. Select Reset. Confirm action, all user exceptions will be removed.
What to do if you update after the update MIUI The options for managing background processes are missing?
In the new versions MIUI (Starting with 14, some settings are moved. Try: Search for options through the search bar in Settings (the magnifier icon at the top); Update all system applications through the Mi App Store. Contact Xiaomi through Settings โ†’ Reviews.