Why Xiaomi is shutting down its apps and how to stop it

Introduction: Aggressive MIUI optimization

If your Xiaomi, Redmi or Poco smartphone is constantly shutting down apps in the background, youโ€™re not alone. This problem is familiar to millions of users of MIUI-based devices, where aggressive battery and memory optimization often interferes with the normal operation of instant messengers, music players and even system services. Unlike โ€œpureโ€ Android, Xiaomiโ€™s firmware actively interferes with the work of applications, suspending them to save charge.

The reason for this behavior lies in the MIUI architecture: the default system restricts background activity to extend battery life. However, for many users, this turns into a headache โ€” for example, when Telegram stops receiving notifications or Google Maps โ€œfalls asleepโ€ during navigation. In this article, we will analyze all possible reasons and give specific instructions for setting up, which work on models from Redmi Note 10 to Xiaomi 14 Ultra.

Itโ€™s important to understand that the problem isnโ€™t always about the firmware curve, and that often comes from incorrect user settings, conflicting apps, or even hardware constraints (such as a lack of RAM on budget models), and we analyzed user reports from the 4PDA, Mi Community, and Xiaomi support forums to gather relevant solutions.

The main reasons for closing applications Xiaomi

MIUI uses several mechanisms that can lead to the forced closure of applications, including:

  • ๐Ÿ”‹ Optimizing the battery: MIUI Default limits background activity to save charge, especially after updates.
  • ๐Ÿ—‘๏ธ Memory Cleanup: Cleanup function RAM In the notification curtain kills all background processes.
  • ๐Ÿšซ Auto-Run Lock: Applications without auto-Run rights canโ€™t work in the background.
  • ๐Ÿ“ฑ Lack of RAM: On devices with 3-4 GB of memory, the system is forced to close applications to free up resources.
  • ๐Ÿ”„ Updates MIUI: After major updates (for example, transition to the MIUI 14) optimization settings are reset.
  • ๐Ÿ› ๏ธ Conflicting Services: Antiviruses, cache cleaners, or โ€œacceleratorsโ€ can interfere with the operation of applications.

On models with Snapdragon 4xx/6xx processors (e.g. Redmi 9A, Poco M3), the problem is more common due to limited resources and more aggressive MIUI optimization. At the same time, flagships on the Snapdragon 8 Gen 2 (e.g., Xiaomi 13 Pro) are less likely to face forced closure, but they are not immune to failures after updates.

To determine the exact cause, check:

  1. Does the problem appear after closing all applications through the โ€œClearโ€ button in the multitasking menu?
  2. Is it only for certain applications (such as instant messengers) or for everyone?
  3. Is it due to low battery life (less than 15%)?
๐Ÿ“Š What model? Xiaomi/Redmi/Poco you?
Redmi Note 10/11/12
Poco X3/X4/X5
Xiaomi 11/12/13/14
Budget model (up to 15k) โ‚ฝ)
other

How to Turn Off Battery Optimization for Individual Applications

The most effective way to prevent shutdown is to exclude the application from battery optimization. Here is a step-by-step guide for MIUI 12-14:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select the desired application (for example, WhatsApp or Yandex.Navigator).
  3. Go to the Battery Consumption section.
  4. Select No Limits (or No Limits in Older Versions).
  5. Save the changes and restart the device.

For Android 12+ (MIUI 13/14), the path may be slightly different.

Settings โ†’ Battery and Performance โ†’ Application Selection โ†’ [Select App] โ†’ Battery Consumption โ†’ Without Limits

Important: After changing your settings, check the app for 10-15 minutes. If the problem persists, move to the next section.

Open the application settings |Select "Battery consumption" |Set "No restrictions" |Reboot phone |Check the application-->

โš ๏ธ Note: Some models (e.g. Redmi) 9T s MIUI 12.5) After resetting, the battery optimization returns to default values. The solution is to repeat the setting or disable the automatic optimization via Settings. โ†’ Battery โ†’ Settings โ†’ Optimizing the battery.

Set up autostart and background activity

Even if you have disabled battery optimization, the application may be closed due to the Autostart lock. In MIUI, this function works separately from battery consumption and often causes notification problems.

To allow auto-start:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Click on the three dots in the top right corner and select AutoRun.
  3. Find the desired application in the list and turn on the switch.
  4. Some applications (e.g. Viber) also require you to allow Background activity in their individual settings.

On MIUI 14, the path to auto-launch changed:

Settings โ†’ Applications โ†’ Permissions โ†’ Autorun

If the app is not on the auto-start list, try:

  • ๐Ÿ”„ Reinstall the application.
  • ๐Ÿ“ฅ Clear cache and data through Settings โ†’ Annexes โ†’ [Annex] โ†’ Warehouse.
  • ๐Ÿ”ง Enable Developer Mode and disable Background Process Limitation (see next section).
AnnexRequired permits in MIUIAdditional action
TelegramAuto Start + Without Battery LimitsDisable "Notification Optimization" in the application settings
Google MapsAuto Start + Background Activity + Exact LocationAdd exceptions to save traffic
Spotify/Yandex MusicAuto Start + No Battery Limits + Output Permission over Other WindowsDisable the โ€œAdaptive batteryโ€ in the Android settings
WhatsAppAuto Start + No Battery Restrictions + Notification PermissionEnable "Show notifications" in the application settings

๐Ÿ’ก

If notifications still donโ€™t come after you set up autorun, check if MIUI Optimization, a system application that can only be disabled via ADB, blocks them.

Advanced solution: Disabling restrictions through ADB

If standard settings donโ€™t help, you can deeply disable optimization via Android Debug Bridge (ADB).This method requires a PC connection and works on all versions of MIUI, but can reduce battery life.

Instructions:

  1. Turn on Developer Mode (7 times click on the MIUI version in Settings โ†’ About Phone).
  2. Return to Settings โ†’ Additional โ†’ For developers and enable USB debugging.
  3. Connect your phone to your PC, install ADB Tools, and execute the commands:
adb shell


pm grant [package annexes] android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS




cmd appops set [packet applications] RUN_ANY_IN_BACKGROUND allow

To find [app package], use the command:

adb shell pm list packages | grep -i "appendix name"

Example for Telegram:

adb shell pm grant org.telegram.messenger android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS

โš ๏ธ Attention: Disabling optimization through ADB This method can lead to increased battery consumption (up to 10-15% in 8 hours of standby mode.

How to return standard optimization settings?
To cancel the changes, execute the command: adb shell cmd appops set [application package applications] RUN_ANY_IN_BACKGROUND default or reset the application settings through Settings โ†’ Annexes โ†’ [Annex] โ†’ Warehouse โ†’ Clear the data.

RAM Cleanup and Accelerators: Why They Are Harmful

Many users are used to manually clearing memory through a button in the notification curtain or using applications like Clean Master, but this often exacerbates the problem of closing applications.

  • ๐Ÿงน MIUI aggressively kills processes during cleaning RAM, including system services.
  • ๐Ÿ”„ Android controls memory itself โ€“ forced cleaning knocks down algorithms.
  • โšก "Accelerators are in conflict with built-in optimization MIUI, languishing.

Instead of hand cleaning:

  1. Turn off the Clean in the Curtain button: drag the notification bar down, click on three points โ†’ Settings of the notification panel โ†’ turn off Memory Cleanup.
  2. Remove all cleaners and boosters โ€“ they donโ€™t increase performance on modern smartphones.
  3. If the phone is really slowing down, check the processorโ€™s load through Settings โ†’ About Phone โ†’ System Status.

On models with 6GB of RAM and higher (like the Poco X5 Pro), manual memory cleaning is almost useless - Android manages resources efficiently itself.

๐Ÿ’ก

Cleaning up RAM in MIUI does not speed up the phone, but rather forces the system to reload frequently used applications, which wastes more battery and resources.

Hardware restrictions: when the fault of the "iron"

On Xiaomiโ€™s budget models (e.g. Redmi A1, Poco C40), the problem of closing applications may be due to a lack of RAM. If the device has only 2-3 GB of RAM, the system is forced to aggressively control processes.

How to determine the fault of the "iron":

  • ๐Ÿ“Š Open the Settings. โ†’ The phone. โ†’ Status of the system โ†’ Memory and see how much free RAM remains in normal use.
  • ๐Ÿ” If it is less than 200-300 MB free, the system will close applications.
  • ๐ŸŽฎ The problem is made worse when you run games or heavy apps (such as Genshin Impact or Lightroom).

Solutions for weak devices:

  1. Close unused apps manually through the multitasking menu.
  2. Turn off animations in the developer settings (Windows animation scale โ†’ No animations).
  3. Use the โ€œlightโ€ versions of apps (e.g. Facebook Lite, Messenger Lite).
  4. Increase the size of the paging file (requires root rights or custom recap).

On models with 4 GB of RAM (for example, Redmi Note 11), the problem is less common, but can occur when you run 10+ apps or video background recording (for example, in YouTube + navigator).

Frequent questions and answers

Why did apps start to close more often after the MIUI update?
Xiaomi often tightens optimization policies in new firmware versions. After the update: Reset autorun and battery settings for problem applications. โ†’ Battery โ†’ Settings โ†’ Battery optimization. If the problem persists, reset through Settings โ†’ System system โ†’ Resetting settings โ†’ Reset all settings (without deleting data).
How to check which app is closing others?
Use the built-in activity monitor: Enable Developer Mode (see above). Go to Settings โ†’ Additional โ†’ Developer โ†’ Activity Monitor. Launch a problem app and see what process closes it. Frequent culprits: com.miui.powerkeeper (battery optimization), com.miui.securitycenter (security).
Can I completely disable MIUI optimization?
Completely not, but you can weaken significantly: Disable MIUI Optimization via ADB: adb shell pm uninstall --user 0 com.miui.powerkeeper Attention: this can lead to unstable work! Install custom firmware (e.g. Pixel Experience or LineageOS). Use Magisk modules like Disable MIUI Battery Optimization.
Why Navigator (Yandex.Maps)/Google Maps) closed during the trip?
Navigation applications require: Disable battery optimization (see section above). Allow precise location in application settings. Add the app to traffic saving exceptions (Settings) โ†’ SIM-maps and mobile networks โ†’ Saving traffic โ†’ Unlimited applications: Disable Adaptive Battery in Android settings (Settings) โ†’ Battery โ†’ If the problem persists, try using offline cards to reduce network load.
How to keep the messenger working (Telegram/Viber) background?
The critical message for messengers is: Disable battery optimization (No restrictions). Allow autostart and background activity. In the messenger settings, disable notification optimization (in Telegram: Settings โ†’ Notifications โ†’ Battery Optimization). Add the app to screen lock exceptions (Settings โ†’ Screen lock โ†’ Screen lock โ†’ Applications without locking). If notifications don't come even after that, check if MIUI Security Center blocks them (in the security settings).