Why Xiaomi is spontaneously shutting down open apps โ€“ and how to stop it

You launched the messenger, switched to the browser, and then you came back a minute later โ€” and the app reboots from scratch. Or the game flies into the background when you answered the message. Familiar situation? The problem of spontaneously closing applications on Xiaomi, Redmi and smartphones. POCO โ€” One of the most common user complaints, and it's not just the resource-hungry shell that's responsible for it. MIUI, but also aggressive optimization algorithms that the manufacturer put into the firmware.

In this article, we will analyze 7 key reasons why even on Xiaomi flagships with 12 GB of RAM, applications close after 5-10 minutes in the background, and also give step-by-step instructions for setting up the system - from turning off autocleaning. RAM Spoiler: 80% of the time, the problem is solved without root rights and third-party utilities.

It's important to understand: MIUI Originally designed for the Chinese market, where users are used to a clean multitasking interface without unnecessary processes, European and global versions of firmware have inherited this philosophy, but often go too far. MIUI 14: Smart Cleanup is activated by default, which nails apps when you lock the screen โ€“ even if the free memory is more than 4 GB.

We tested the solutions on models from Redmi Note 10 to Xiaomi 14 Ultra and found patterns: the cheaper the device, the more aggressive the optimization. But even on top devices, the problem persists โ€” just shows up less often. Next, you will learn how to turn off unnecessary restrictions, what settings affect multitasking, and why sometimes it is not the phone, but the application itself that is to blame.

1. Autocleaning RAM: how MIUI "He's taking the trash out behind your back.

The main culprit behind the sudden closure of applications is the built-in mechanism for automatic cleaning of RAM. MIUI He's working on two scenarios:

  1. When the screen is locked, the system nails the background processes after 3-10 minutes (depends on the model).
  2. At a low charge level (less than 15%), the ultra-hard saving mode is activated, killing everything but the active application.

By default, the feature is enabled on all Xiaomi devices, but it can be adjusted or disabled.

Go to Settings. โ†’ The phone. โ†’ Memory. โ†’ Settings (cog in the upper right corner) โ†’ Autoclean. Here you'll see three options:

  • ๐Ÿ”„ Clearing when blocked is the main reason for closing applications.
  • ๐Ÿ“‰ Clean at low charge - you can leave, but then messengers will fly out on 10-15% of the battery.
  • ๐Ÿš€ Smart cleaning is an algorithm that guesses which apps you don't need. It's a curve, it's better to deactivate.
๐Ÿ“Š How often does your Xiaomi shut down its background apps?
Constantly (every 5-10 minutes)
Only when the screen is locked
Rarely, but accurately (1-2 times a day)
Never noticed a problem.

In the models with MIUI 13/14 The path may be slightly different: โ†’ Annexes โ†’ Application management โ†’ Settings (cogs) โ†’ Auto-cleaning RAM. If you have a global firmware, some items may be called differently (for example, "Clear when locked").

โš ๏ธ Note: On devices with 4-6 GB of RAM (e.g. Redmi) 9A or POCO M3) A complete shutdown of the auto-cleaner can cause braking, in which case leave the option "Clean at low charge", but increase the threshold to 5%.

Battery Optimization: Why Energy Savings Kill Apps

The second most popular reason is the energy saving regimes, which MIUI It applies to applications in the background, even if you've turned off auto-cleaning. RAM, The system can nail down processes due to energy consumption restrictions.

Check the settings like this:

  1. Open Settings โ†’ Battery and Performance โ†’ Battery Consumption Management.
  2. Select the app that closes (such as Telegram or YouTube Music).
  3. Make sure you select "No restrictions" (or "No restrictions" in English firmware).

If the option is not available, then the application is under deep optimization.

  • ๐Ÿ”‹ Go to Settings. โ†’ Annexes โ†’ Application management โ†’ [Select the application] โ†’ Battery.
  • ๐Ÿ”„ Enable the option "Allow background activity" (or "Background activity").
  • ๐Ÿšซ Turn off Optimization. MIUI" (if there is such a switch).

On some models (e.g. Xiaomi) 12T) If you don't find "Battery" in the app information, try the path: โ†’ Battery โ†’ [Three-point in the corner] โ†’ Managing application battery consumption.

๐Ÿ’ก

Create a shortcut to quickly access your battery settings: add the Tools widget to the home screen and select Battery, which will save you time when you set up new applications.

3. Limitations MIUI for "unoptimized" applications

Xiaomi divides all programs into two categories:

  • โœ… Optimized โ€“ have been tested MIUI and work in the background without restrictions (for example, WhatsApp, Mi Fit).
  • โŒ Non-optimized โ€“ all others with strict limits on background activity.

If your application falls into the second group, the system will close it at the earliest opportunity.

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select the desired application and scroll to the "Optimization" block. MIUI".
  3. If the status is โ€œUnoptimizedโ€, click on it and select โ€œOptimizeโ€.

In practice, this method does not always work โ€“ some applications (for example, in the case of the application, VK Music or 2GIS can stay in the grey area, in which case manual additions to exceptions will help:

  • ๐Ÿ›ก๏ธ Go to Settings. โ†’ Battery โ†’ [Threefold] โ†’ Managing application battery consumption.
  • ๐Ÿ” Find the application in the list and set the "No Limits" mode for it".
  • ๐Ÿ”„ Restart your phone โ€“ sometimes changes only apply after a reboot.

โš ๏ธ Attention: On firmware MIUI 14+ for the Chinese region (China) ROM) option โ€œOptimization MIUI" If you're not, you can only change the firmware to a global or European version.

Lack of RAM: When the phone really "chokes"

If you have a model with 3-4 GB of RAM (for example, Redmi) 8A or POCO C31), The problem may be a physical memory deficit. MIUI It starts nailing apps when there is less than 500-700MB of RAM left, even if you have turned off autocleaning.

Check the current state of memory:

  1. Open the settings โ†’ About the phone โ†’ Memory.
  2. See the schedule of RAM use in the section "Memory use".
  3. If less than 1 GB is free during normal operation, itโ€™s time to manually clean the background processes.

What to do:

  • ๐Ÿงน Close unused apps through the multitasking menu (swipe up).
  • ๐Ÿ—‘๏ธ Clean the cache once a week: Settings โ†’ Annexes โ†’ [Select the application] โ†’ Clear the cache.
  • ๐Ÿ”„ Turn off the autoload of unnecessary programs: Settings โ†’ Annexes โ†’ Application management โ†’ Auto-start.
  • ๐Ÿ“ฑ Use the โ€œLiteโ€ versions of apps (for example, Facebook Lite or Messenger Lite).

On models with 6+ GB of RAM (for example, Xiaomi) 11T or POCO F4) Memory shortages are unlikely, but itโ€™s worth checking for memory leaks. Some apps (especially games and social media) can eat up 1-2 GB of RAM even in the background. Use Developer Options to monitor for memory leaks:

Activate Developer Mode (7 times click on Version) MIUI In Settings โ†’ The phone)|

Open the Settings. โ†’ Additionally. โ†’ For developers|

Enable "Do Not Save Actions" (shows actual RAM usage)|

Check the Service at Work section for suspicious processes|-->

Xiaomi modelThe volume of RAMMinimum free RAM for stable operationRecommendations
Redmi 9A, POCO C312-3 GB300-500 MBTurn off the autoclean. RAM, Use the light versions of the applications
Redmi Note 10, POCO X3 Pro4-6 GB700 MB - 1 GBLimit background activity for non-critical applications
Xiaomi 12, POCO F4 GT8GB1.5โ€“2 GBYou can turn off all optimizations without risk of lag
Xiaomi 13 Ultra, Black Shark 5 Pro12+GB2.5โ€“3 GBThe problem with closing applications is more a bug than a feature

5. Security system locks applications MIUI

Few people know, but in MIUI There's a built-in security manager that can block the background activity of suspicious applications:

  • ๐Ÿ”“ root-access applications (such as Magisk or Lucky Patcher).
  • ๐Ÿ“ฅ Programs that are not downloaded from Google Play (APK-file).
  • ๐Ÿ”„ Applications that frequently exchange data in the background (VPN, torrent).

To check if your system is blocking your application:

  1. Open Security. โ†’ Scanning. โ†’ [Threefold] โ†’ Settings.
  2. Go to the Auto Start section and make sure the desired application is enabled.
  3. Go back and open Application Lock โ€“ your program should not be here.

If the application is blocked:

  • ๐Ÿ”“ Click on it in the list and select "Unblock".
  • ๐Ÿ›ก๏ธ Add to the exceptions of antivirus: Security โ†’ Antivirus โ†’ Settings โ†’ Exceptions.
  • ๐Ÿ”„ Restart your phone โ€“ sometimes the lock is only reset after a reboot.

This is especially common for users who install applications through APK (For example, modified versions of Spotify or YouTube Premium). MIUI perceives them as potentially dangerous and limits background work.

How to bypass the lock for APK-file
If unlocking through Security doesnโ€™t help, try the following method: Install Shizuku and App Ops (required) ADB-In App Ops, find your app and turn off the Restrict Background option. Reboot your phone. This method works even on the Internet. MIUI 14 without root rights Attention: Using Shizuku may violate the security policies of some banking applications.

6. Software bugs and conflicts: when the system is not to blame

Sometimes apps are not closed because of MIUI, a. for their own reasons:

  • ๐Ÿ› Bugs in the application code โ€“ for example, Instagram or TikTok are known for frequent crashes in the background.
  • ๐Ÿ”„ Conflicts with other programs โ€“ two utilities for cleaning RAM can interfere with each other.
  • ๐Ÿ“ฑ Incompatible with the Android version โ€“ old apps may not work properly on Android 13/14.

How to diagnose the problem:

  1. Check the error logs: adb logcat | grep -i "Kill" (requires a PC connection and enabled USB-debugging).
  2. Test in Safe Mode: Press the Power button โ†’ long tap on "Switch off" โ†’ "Safe Mode. If the application does not close in Safe Mode, it is the fault of third-party software.

Update the app and firmware

  • Go to Google Play and check for updates.
  • Update MIUI: Settings โ†’ About the phone โ†’ System update.

If the problem is in a particular app, try:

  • ๐Ÿ”„ Reinstall it (sometimes data cleaning helps).
  • ๐Ÿ“ฅ Install an older or beta version (e.g. via APKMirror).
  • ๐Ÿ’ฌ Write in support of the developer - sometimes bugs are fixed in the following updates.

๐Ÿ’ก

If the app is only closed on Xiaomi, but works on other brands โ€“ the problem is exactly optimization. MIUI. If the stains are also on Samsung/Google Pixel โ€“ the fault of the application.

7. Hardware restrictions: when iron does not pull

On old or budget models (Redmi) 5A, POCO C3) The problem may be related to:

  • ๐Ÿ”‹ Worn-out battery - at low voltage, the power controller forcibly closes the processes.
  • ๐Ÿ”ฅ Overheating of the processor - at a temperature above 45ยฐC system starts "ballast-dropping".
  • ๐Ÿ’พ Damaged flash memory โ€“ if RAM is error-proof, application data may be lost.

How to check:

  1. Battery: Install AccuBattery and check battery status. If the capacity has dropped below 70%, it's time to change the battery.
  2. Overheating: Use CPU Monitor to track temperature if phone is heated above 40ยฐC in simple - clean dust or replace the heat paste.

RAM

  • Run a memory test through MemTest86 (requires an unlocked loader).
  • If you have any errors, contact the service center.

On models with Snapdragon processors 4xx or Helio Gxx (e.g. Redmi 9 or POCO M2) Multitasking is initially limited to iron, and that's where it's going to help:

  • ๐Ÿ”„ Disabling all visual effects: Settings โ†’ Display. โ†’ Windows animation (turn off).
  • ๐Ÿ—‘๏ธ Removing unnecessary apps and widgets from the main screen.
  • ๐Ÿ“ฑ Use alternative launchers (such as Nova Launcher) that are less loading.

โš ๏ธ Note: If after replacing the battery or cleaning from dust, the problem persists, and errors of the type appear in the logs "mmc_read_fail" or "ECC "error" is a sign of hardware failure of flash memory, in which case only repairs in the service center will help.

FAQ: Frequent questions about closing apps on Xiaomi

โ“ Why Xiaomi with 12 GB of RAM applications are closed, and iPhone with 6 GB โ€” no?
MIUI It aggressively optimizes background processes, while iOS takes a different approach to memory management. On Xiaomi, even with more RAM, the system forcibly shuts down applications to save energy, while the iPhone keeps them frozen (without consumption). CPU, but with the preservation of data in RAM). In addition, iOS has no analogue of the function โ€œAutocleaningโ€ RAM", which is enabled by default on all Xiaomi smartphones.
โ“ Can you completely disable optimization? MIUI rootless?
Yeah, but not on all models. MIUI 12โ€“14 For the European and global versions, this is done through: โ†’ Annexes โ†’ Application management โ†’ [Select the application] โ†’ Battery โ†’ No restrictions on Chinese firmware (China) ROM) may be necessary to use ADB-commands: adb shell cmd appops set [application package] RUN_ANY_IN_BACKGROUND To massively disable optimization of all applications, you can use a script (requires a PC and enabled) USB-debugging).
โ“ Why After Updating MIUI Applications are closing more often?
In the new versions MIUI (particularly MIUI 13-14) Xiaomi has tightened its energy saving policy. MIUI 14, we have a Deep hibernation mechanism that pauses applications after 30 minutes without activity. To turn it off: Activate Developer Mode (7 taps per version) MIUI). Open the Settings. โ†’ Additionally. โ†’ For developers, find the "Deep Application Hibernation" option and turn it off. If you don't have the option, your model doesn't support manual hibernation control.
โ“ What apps are most often closed on Xiaomi?
According to users and tests, most often suffer from: ๐Ÿ’ฌ Messengers: Telegram, Viber, Signal (if not added to the exceptions of batteries). ๐ŸŽต Music services: Spotify, YouTube Music, Yandex Music (due to constant background activity). ๐Ÿ—บ๏ธ Navigators: Google Maps, Yandex Navigator, 2GIS (due to high energy consumption). ๐ŸŽฎ Games: PUBG Mobile, Genshin Impact, Brawl Stars (due to high RAM consumption). ๐Ÿ”„ VPN and torrents: NordVPN, qBittorrent (locked by security system). Solution for all cases: add the application to battery exclusions and disable "Optimization" for it MIUI".
โ“ Does resetting to factory settings help?
Yes, but temporarily. Reset removes all custom optimization settings, returning them to default values. This can help if: You manually changed the battery/RAM settings and something went wrong. The system clogged after long use (cache, temporary files). Applications conflict with each other (for example, two optimizers) RAM). After 1-2 weeks, the problem may return, because MIUI It'll start to use optimizations again. RAM. Add critical applications to battery exclusions. Set minimum limits for background activity.