You open the messenger to check the messages, and instead of chatting, you see a blank download screen. Or the music is interrupted after 5 minutes of listening in the headphones. Familiar? Xiaomi smartphone owners regularly face the problem when applications unexpectedly close in the background - even if they were not folded manually. Is it MIUI, aggressive battery saving algorithms or errors of the applications themselves?
This problem is not new: it has been plaguing users of Redmi, POCO and Xiaomiβs flagship series for several years. But in 2026, things got more complicated β with the release of MIUI 14/15 and HyperOS, the logic of the background processes changed. We analyzed 7 key reasons why applications are closed without your knowledge, and collected working solutions β from basic settings to hidden settings for power users. Without unnecessary βset as you likeβ β only specific actions with explanations, including unique chips for new HyperOS firmware.
1: Aggressive Optimization of MIUI: Why the System Kills Applications
The main culprit is the built-in memory optimization function in MIUI. By default, the system thinks that background applications are wasting resources, and forcibly closes them to free up RAM. The logic is simple: the more free memory, the faster the active application will work.
- π± Messengers (Telegram, WhatsApp) do not receive notifications
- π΅ Music services (Spotify, Yandex Music) stop after a few minutes
- π Navigators (Google Maps, Yandex Maps) lose communication with GPS
- π Background tasks (Google Drive sync, Torrent downloads) are interrupted
In MIUI 14/15 and HyperOS, the algorithm became even stricter: the system analyzes user behavior and closes those applications that it believes are βrarely used.β For example, if you havenβt opened VK 2 days, the chance that the messenger will be killed in 10 minutes in the background is 90%, and Xiaomi does not not notify you: no pop-ups or logs in Settings β Apps.
β οΈ Warning: On devices with 4GB of RAM or less, optimization works as aggressively as possible. Even if you have 1.5GB of storage free, the system will still close the background processes.
How do you fix this? There are two ways.
- Disable application-specific optimization (Section 3 of this article).
- Set up global memory settings β but this requires access to hidden settings (Section 5).
2.Battery settings: Hidden limitations you didn't know about
The second most popular reason is the Battery Saving feature (Settings β Battery). Even if you haven't manually activated the Power Saving mode, MIUI automatically applies restrictions to applications that:
- π Consume more than 5% charge per hour in the background
- πΆ Uses mobile data or Wi-Fi for longer than 15 minutes in a row
- π Activate GPS or other sensors
HyperOS has a new mechanism called Adaptive Savings, which learns from your habits and blocks the background activity of apps at βuncomfortableβ times, for example, if you normally sleep between 23:00 and 7:00, even the allowed apps can be suspended during this period.
| Battery mode | What's limiting | How it affects background applications |
|---|---|---|
| No restrictions. | Nothing. | Applications work in the background without interruption |
| Balanced (by default) | Background synchronization, push notifications | Applications close after 30-60 minutes of inactivity |
| Energy conservation | All background processes except calls | Apps are killed immediately after clotting |
| Super-economic | Everything except basic functions (calls, SMS) | Background work is completely blocked |
The problem is, even in No Limits mode, some applications still close, and that's because of the individual savings settings for each application, to check them out.
- Open Settings β Battery β Selection of applications.
- Tapping on the desired application (for example, Telegram).
- Check the "Background Activity" item - it should be turned on.
- Below, find βStopβ and βSecondaryβ β both settings must be activated.
π‘
If the β Battery Settings list β App selection doesn't have the right app, it hasn't consumed power in the last day. To make it appear, open it and wait 5-10 minutes.
3. How to manually allow background work for applications
The easiest way to fix this problem is to add an application to the exceptions, which removes all automatic MIUI restrictions for a particular program, and the instructions are relevant for MIUI 12-15 and HyperOS:
Open Settings β Applications β Application Management |Select the desired application (e.g. VK)|Tap "Permissions" β "Additional" |Enable "Background Activity" and "Out-Start" |Go back and select "Battery" β "No Limits" |Reboot your smartphone (required!)
-->
For HyperOS, there is an additional step:
- Go to Settings β Applications β Special Permissions β Autorun.
- Find your app and turn on the switch.
- Return and open Special Permits β Background activity β there should also be a switch switch.
If after these actions the application still closes, check:
- π Application updates β sometimes bugs are fixed in newer versions.
- π₯ Cache and data β clear them in Settings β Apps β [Application] β Storage.
- π§ Developer settings are more about this in the next section.
β οΈ Warning: Some applications (e.g., Google Play Services or Mi Push) cannot be added to exceptions through standard settings. They will need to use ADB- commands (Section 6).
4. Hidden developer settings: how to disable killing processes
If standard methods don't work, it's time to dig deeper, and there are hidden parameters in MIUI and HyperOS that control the behavior of background processes, to activate them:
- Open the Settings. β The phone.
- Tap the 7 once on the "MIUI Version" (or "HyperOS Version").
- Enter a pattern lock or password.
- Return to the main settings menu and a new section for developers will appear.
Now find and change the following parameters:
- Do not save actions β disable (if enabled, kills all processes when locking the screen).
- Process Limitation β Set a βStandard Limitβ (the default may be βAggressiveβ).
- Background Processes β Select βNo Limitsβ (not available on all devices).
- MIUI Optimization β Disconnect (Reboot is mandatory!)
What to do if there is no MIUI optimization?
Important: disabling MIUI optimization can increase battery consumption by 10-15%, but background applications will stop closing. If you are critical to autonomy, use this method selectively - only for the most important programs.
5.RAM problems: why even 12 GB does not save from closing applications
Many users mistakenly think that a large amount of RAM (8/12 GB) will solve the problem with background processes. In practice, this is not true: even on Xiaomi 13 Ultra with 16 GB of RAM, applications can close. Why?
It's about Xiaomi's memory management algorithm, which divides all applications into 3 categories:
- Active (on screen now).
- Cache (curled up, but can quickly recover).
- Suspended (frozen, take up a minimum of resources).
When memory is scarce, MIUI kills suspended processes first, then cached processes, without considering how important an app is to the user, for example, Google Chrome with 20 tabs will be prioritised over Spotify playing music.
How do you get around that?
- π§ Set the background process limit manually (in the developer settings).
- π± Use Freezing Applications through Settings β Apps β Freezing β This marks unnecessary programs as βunpriority.β
- π Turn off animation in the developer settings (accelerates switching between applications).
π‘
HyperOS devices have a feature called Advanced Memory (Settings β Memory) that uses some of the internal storage as virtual RAM, but doesn't help with background processes, only speeds up multitasking.
6. ADB- Commands: A Radical Solution for Power Users
If none of the previous methods worked, the last option is to use ADB (Android Debug Bridge), a debugging tool that allows you to manually disable all restrictions for a particular application.
You'll need:
- π₯οΈ Computer with installed ADB-driver.
- π± Included debugging by USB on the phone (Settings) β For developers β Debugging by USB).
- π Cable USB (preferably original).
Steps:
- Connect the phone to the PC and confirm the debugging permission.
- Open the command line (Windows) or terminal (macOS/Linux) in the adb folder.
- Enter the command to check the connection: Adb devices must appear serial number of your device.
- Run the command to disable battery optimization: adb shell dumpsys deviceidle whitelist +com.example.app Replace com.example.app with your application's batch name (e.g. org.telegram.messenger for Telegram).
- Reboot the phone.
List of package names of popular applications:
| Annex | Package name |
|---|---|
| Telegram | org.telegram.messenger |
| com.whatsapp | |
| Spotify | com.spotify.music |
| Google Maps | com.google.android.apps.maps |
| VK | com.vkontakte.android |
β οΈ Warning: Some apps (like Facebook or Instagram) ignore ADB- commands because of built-in battery-saving mechanisms, in which case only root or modified firmware will help.
7. Alternative solutions: from root to firmware change
If you've exhausted all the standard methods, there are radical measures left: they require technical skills and may be insecure, but they give you complete control over the background processes.
Option 1: Getting root rights
With a rue, you can:
- π§ Remove system applications that kill processes (e.g., com.miui.powerkeeper).
- π Modify configuration files (/system/build.prop) to disable optimization.
- π οΈ Use Magisk modules, such as Disable Flag Secure or Universal GMS Doze.
Option 2: Installation of custom firmware
AOSP-based firmware (e.g. LineageOS, Pixel Experience) does not have aggressive MIUI optimization.
- β οΈ Loss of camera and sensor functions (on some models).
- π The need for manual installation of updates.
- π± Risk of "bricking" the device in case of error.
Option 3: Use of the second space
MIUI has a "Second Space" function (Settings β Special Options β Second Space).
- Create a separate profile with other settings.
- It's got to turn off all optimizations.
- Only run critical applications in the second space.
π‘
Before installing custom firmware or getting a root, be sure to unlock the bootloader through the official Xiaomi tool. Without this, you will not be able to flash alternative software.