Why Xiaomi is closing its apps: 7 reasons and ways to solve them

You run your favorite app on a Xiaomi smartphone, but it suddenly shuts down after a few minutes, or does the game crash on the boot and the messenger stop working in the background? MIUI β€” And it's not always memory or software bugs, but 80 percent of the time, it's because of hidden system settings, aggressive battery optimization, or conflicts with Google services.

In this article, we will take a closer look at the 7 main reasons why Xiaomi is forced to close applications, from standard power saving features to rare Android kernel bugs. You will learn how to distinguish normal system behavior from a failure, what settings are responsible for the background operation of programs, and what to do if the application crashes even after resetting to factory parameters.

Important: Some "fiche" MIUI (For example, auto-cleaning RAM or Deep Optimization) work differently on devices with Snapdragon and Mediatek chips, and we'll note these nuances in the relevant sections.

1. Aggressive battery optimization in MIUI

The main reason for the spontaneous closure of applications on Xiaomi is the built-in charge saving feature, which by default limits the background activity of programs, MIUI automatically assigns applications one of three modes:

  • πŸ”‹ Without restrictions – the application works in the background without interruptions (suitable for messengers and navigators).
  • ⚑ Optimized – background activity is limited, but notifications come (standard mode for most programs).
  • 🚫 Strictly limited – the application closes after 5-10 minutes of inactivity (used to save battery).

The problem is, MIUI Often assigns Strictly limited to even critical applications such as WhatsApp, Telegram or banking customers:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Select the problem app and go to Battery Consumption.
  3. Set No Limits mode and enable AutoRun option.

πŸ’‘

If after changing the settings, the application still closes, try temporarily disabling the Adaptive Battery function in Settings. β†’ Battery β†’ Battery settings.

On devices with MIUI 14+ There's an additional layer of optimization called Intelligent Consumption Control, which analyzes user behavior and forcibly closes applications that the system thinks are "too active" in the background).

2. Automatic cleaning RAM

Xiaomi is actively promoting its Memory Extension technology, but rarely mentions the reverse side of the coin – aggressive cleaning. RAM. Unlike other manufacturers, MIUI It does not just release memory when it is lacking, but forcibly closes the background processes every 15-30 minutes, even if the memory is free. RAM enough.

This function is called Memory Cleanup and works in two scenarios:

ScriptWhen it works.How the applications are affected
Easy cleaningWhen locking the screen or switching to another applicationCloses unused processes but maintains a state (e.g. tabs in the browser)
Deep cleaningLong-term downtime (30)+ minutes) or low battery chargeForcedly completes all background tasks, including messengers and music
Smart cleaning (only) MIUI 13+)According to the AI algorithm (analyzes user habits)It can even close actively used applications if the system considers them β€œunnecessary”.

To turn off automatic cleaning:

  1. Go to Settings. β†’ Special opportunities β†’ Cleaning up memory.
  2. Turn off the lock-up cleaning and deep cleaning options.
  3. For devices with MIUI 14 additionally disable Smart Cleaning in Settings β†’ System system β†’ Advanced settings.
πŸ“Š How often does your Xiaomi shut down its background apps?
Constantly (every 5-10 minutes)
Sometimes (once an hour)
Approximately (only when memory is lacking)
Never noticed.

⚠️ Attention: Complete disabling of cleaning RAM It can slow down the system on devices with 4-6 GB of RAM.+ GB (e.g. Xiaomi 13 Pro or Redmi) K60 Ultra) risk is minimal.

3. Conflicts with Google Services (GMS)

On Xiaomi devices for the global market (with firmware Global) ROM) There are often conflicts between built-in services. MIUI and components of Google Mobile Services (GMS). This is especially true after Google Play Services or Android System WebView updates.

Typical symptoms:

  • πŸ“± Apps are closed immediately after launch (e.g. Google Maps or YouTube).
  • πŸ”„ The error "Application is stopped" without additional details.
  • πŸ”Œ The problem disappears in flight mode or after disconnecting the mobile Internet.

Decisions:

Clear the Google Play Services cache in Settings β†’ Annexes

Disable Android System WebView Auto Update in Google Play

Install an alternative version of WebView (e.g. Bromite System WebView)

Reset network settings in Settings β†’ SIM-maps and mobile networks β†’ Resetting network settings

-->

If the problem persists, try rolling back the Google Play Services version:

  1. Download. APK old version from APKMirror (e.g. 23.30.14 for stable operation).
  2. Remove updates to Google Play Services in Settings β†’ Annexes β†’ Remove updates.
  3. Install the downloaded APK and restart the device.
Why does it work?
Google services are often optimized for the latest versions of Android, but MIUI It uses a modified kernel, which leads to incompatibility. GMS are deprived of β€œextra” functions, but work more stable on custom firmware.

4. Developer settings and hidden settings

Many functions MIUI, The app closures are hidden in the Developer menu. If you haven't turned on this mode before, do the following:

  1. Go to Settings. β†’ The phone.
  2. Click on MIUI Version 7 times until the notification β€œYou are a developer!” appears.
  3. Go back to the main settings menu and open a new section for developers.

Now, find and change these parameters:

ParameterRecommended valueWhat gives
Not to keep up the action❌ Shut down.Prevents the closure of applications when switching to another
Limitation of background processesStandard Limitation or No LimitationsControls how many applications can run in the background
Optimization MIUI (MIUI 12+)❌ Shut down.Disables Smart Optimization, which is often wrong
Animation of windows / Animation of transitionsDisable (0x)Speeds up switching between applications (indirectly affects stability)

On devices with MIUI 14, a new parameter, Intelligent Consumption Control (in the Battery section), has been introduced, and turning it off can solve the problem of spontaneously closing applications, but it will increase battery consumption by 10-15%.

πŸ’‘

Setting Do Not Save Actions is the most effective way to prevent applications from closing when switching between them. RAM.

5. Lack of memory and cache

Even if your Xiaomi is equipped with 12 GB of RAM, MIUI It can artificially restrict its use, and it's because of the Android kernel, which reserves some of it. RAM When less than 20 percent of the free memory is left, the system begins to force applications to close, first the background, then the active ones.

How to check and correct:

  • πŸ“Š Open the Settings. β†’ The phone. β†’ Memory status and see the usage schedule RAM.
  • 🧹 Clear the cache of system applications (for example, MIUI Launcher, Security via Settings β†’ Warehouse β†’ Clean up.
  • πŸ—‘οΈ Remove unused applications – even if they are β€œlight,” their background processes take up memory.
  • πŸ”„ Restart the device (this resets the memory state and removes the β€œhang” processes).

On smartphones with Mediatek Helio (for example, Redmi Note 11 or Poco) M4 Pro) often helps to disable the virtual function RAM:

  1. Go to Settings. β†’ Special opportunities β†’ Memory Extension.
  2. Turn off the option of Expanding RAM.
  3. Reset the device.

⚠️ Warning: If applications start closing more often after cleaning the cache, this is a sign of damage to system files, in which case only a factory reset or flashing through Fastboot will help.

6. Firmware and bug errors MIUI

Sometimes the reason for closing applications is critical errors in the firmware itself, which is especially true for:

  • πŸ†• Betta versions MIUI (for example, MIUI 15 Beta for Xiaomi 14).
  • 🌍 Localized firmware (e.g, EU ROM Russia ROM).
  • πŸ”„ Devices after upgrade β€œby air" (OTA), if the process is interrupted.

How to diagnose the problem:

  1. Check the error log through the Logcat app (available on Google Play). ANR (Application Not Responding or crash.
  2. Install an alternative launcher (like Nova Launcher) – if apps stop shutting down, it’s your fault MIUI Launcher.
  3. Try running the problem app in Safe Mode (click the power button) β†’ Safe regime).

Effective decisions:

  1. Reverse to stable version MIUI via Fastboot (instruction below).
  2. Install custom firmware (e.g. Pixel Experience or LineageOS).
  3. Reset to factory settings (don’t forget to back up!).
Instructions for rolling back firmware through Fastboot
1. Download the official firmware from the Xiaomi Firmware website. 2. Unpack the archive and place the file flash_all.bat Fastboot Tools folder. 3. Connect your phone in Fastboot mode (clip Volume Down) + Nutrition). 4. Launch it. flash_all.bat on behalf of the administrator. ⚠️ All data will be deleted!

7. Viruses, malware and fake apps

A less obvious but common cause is malware that masquerades as system processes and shuts down other applications, most commonly found on devices:

  • πŸ“² With established APK from unverified sources (especially hacked games or modified messengers).
  • πŸ”“ With the application verification disabled in Google Play Protect.
  • 🌐 Connected to public Wi-Fi networks (e.g. at cafes or airports).

Signs of infection:

  • πŸ” Applications are closed at fixed intervals (e.g. every 7 minutes).
  • πŸ“₯ There is unexpected traffic in the settings β†’ SIM-maps and mobile networks β†’ Using traffic.
  • πŸ”‹ Battery discharges 30-50% faster than usual.

How to check and clean the device:

Install Malwarebytes or Kaspersky Mobile from Google Play

Start a deep scan (not fast!)

Check the list of installed apps for suspicious ones (such as System Update or Android Helper)

Disable Administrator Rights for Unknown Applications in Settings β†’ Passwords and security β†’ Device administrators

-->

If the antivirus does not find anything, but the symptoms persist:

  1. Remove all apps installed in the last 2-3 weeks.
  2. Reset network settings in Settings β†’ SIM-maps and mobile networks β†’ Resetting network settings.
  3. Perform a reset to factory settings (pre-saving data).

⚠️ Warning: Some viruses block access to reset settings. β†’ System system β†’ Reset settings, try to do it through Restore Mode (clip Volume Up). + Power with the phone turned off).

FAQ: Frequent questions about closing apps on Xiaomi

❓ Why After Updating MIUI Applications are closing more often?
In the new versions MIUI (starting MIUI 13) Battery and memory optimization enhanced. After update: Reset Battery Optimization Settings for all applications (Settings) β†’ Battery β†’ Battery settings β†’ Reset settings. Disable Adaptive Battery and Intelligent Consumption Control. Clear the cache of system applications (MIUI Security, MIUI If the problem persists, try to roll back to the previous firmware version.
❓ Can I completely disable the closure of applications in the background?
Technically yes, but it's not recommended - the system may start to brake or overheat.Optimum option: Open Settings β†’ Special opportunities β†’ Clean up the memory and disable all options. β†’ Battery set for critical applications No Limits mode. In the Developer menu, turn off Background Limitation. On devices with 8+ GB RAM This will not cause problems, but on budget models (for example, Redmi). 9A) may lead to hanging.
❓ Why Games Are Coming to Xiaomi with Snapdragon Processor?
On devices with Qualcomm Snapdragon chips (for example, Xiaomi) 12T POCO F4) Games departures are often associated with: Overheating – Snapdragon aggressively trottlits performance when heated to 45Β°C. Check the temperature through the app CPU Monitor. Graphics drivers, update Adreno Drivers through Google Play. Graphics settings MIUI β€” Turn off game improvement in Settings β†’ Special opportunities β†’ Game Turbo, try installing it. GFX Tools and manually reduce the graphics settings in the game.
❓ How to check which application conflicts and closes others?
Use the built-in activity monitor: Enable Settings β†’ For developers β†’ Process log (or install Simple System Monitor from Google Play). Run a problem app and wait for it to close. Check the log for high-consumption processes. CPU/RAM Frequent "guilty" before departure": MIUI Security, Google Play Services, Android System.
❓ Will the transition to custom firmware (for example, Pixel Experience) help)?
Yes, 90% of the time. Custom firmware (like LineageOS, Pixel Experience or ArrowOS) doesn't have aggressive optimization. MIUI They're running pure Android: ⚠️ The warranty on the device will be lost. πŸ“± Certain functions (e.g, IR Blaster or Game Turbo may not work. πŸ”§ You need to be able to work with Fastboot and TWRP. For beginners, it is better to try MIUI EU ROM (unofficial firmware without bloatware before switching to full-fledged caste.