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:
- Open Settings β Applications β Application Management.
- Select the problem app and go to Battery Consumption.
- 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:
| Script | When it works. | How the applications are affected |
|---|---|---|
| Easy cleaning | When locking the screen or switching to another application | Closes unused processes but maintains a state (e.g. tabs in the browser) |
| Deep cleaning | Long-term downtime (30)+ minutes) or low battery charge | Forcedly 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:
- Go to Settings. β Special opportunities β Cleaning up memory.
- Turn off the lock-up cleaning and deep cleaning options.
- For devices with MIUI 14 additionally disable Smart Cleaning in Settings β System system β Advanced settings.
β οΈ 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:
- Download. APK old version from APKMirror (e.g. 23.30.14 for stable operation).
- Remove updates to Google Play Services in Settings β Annexes β Remove updates.
- Install the downloaded APK and restart the device.
Why does it work?
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:
- Go to Settings. β The phone.
- Click on MIUI Version 7 times until the notification βYou are a developer!β appears.
- Go back to the main settings menu and open a new section for developers.
Now, find and change these parameters:
| Parameter | Recommended value | What gives |
|---|---|---|
| Not to keep up the action | β Shut down. | Prevents the closure of applications when switching to another |
| Limitation of background processes | Standard Limitation or No Limitations | Controls 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 transitions | Disable (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:
- Go to Settings. β Special opportunities β Memory Extension.
- Turn off the option of Expanding RAM.
- 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:
- Check the error log through the Logcat app (available on Google Play). ANR (Application Not Responding or crash.
- Install an alternative launcher (like Nova Launcher) β if apps stop shutting down, itβs your fault MIUI Launcher.
- Try running the problem app in Safe Mode (click the power button) β Safe regime).
Effective decisions:
- Reverse to stable version MIUI via Fastboot (instruction below).
- Install custom firmware (e.g. Pixel Experience or LineageOS).
- Reset to factory settings (donβt forget to back up!).
Instructions for rolling back firmware through Fastboot
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:
- Remove all apps installed in the last 2-3 weeks.
- Reset network settings in Settings β SIM-maps and mobile networks β Resetting network settings.
- 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).