Have you noticed that frequently used applications on Xiaomi suddenly close or reboot for a long time? This is due to the peculiarities of memory management in the firmware MIUI and HyperOS. The system aggressively cleans the background processes, saving resources, but this interferes with the work of messengers, games or navigators. The solution is to fix the application in RAM so that it remains active even when memory is scarce.
In this article, we will look at all the current ways to fix applications for Xiaomi, Redmi and Poco, from standard MIUI features to hidden settings and third-party tools. Importantly, the methods differ depending on the firmware version (before MIUI 14 and after), so we will specify the nuances for each, and you will learn which applications are really worth fixing and which are not so as not to overload the system.
Why Xiaomi is closing apps in the background
MIUI and HyperOS firmware are optimized for maximum performance on budget and medium hardware, and use an aggressive RAM cleaning mechanism that works on three principles:
- ๐ Prioritizing Active Applications: The system only remembers the programs you used in the last few years. 5-10 minute.
- ๐ Dynamic resource allocation: When a heavy application (e.g. a game) is launched, the background processes are forced to close.
- ๐ Energy saving: in Battery or Supersaving modes RAM more frequently.
In practice, this means that even if you have 8-12 GB of RAM, Xiaomi will keep 30-50% of RAM free, closing background tasks. This is not always bad โ this is how the smartphone works longer without hanging. But for instant messengers (Telegram, WhatsApp), navigators (Yandex.Maps, Google Maps) or games (PUBG Mobile, Genshin Impact), this behavior is critical: they lose session data or take a long time to load on return.
Standard ways to secure applications (without ROOT)
Since MIUI 12, Xiaomi has built-in app memory locking, which doesn't work on all models, but check it first, which is the safest method.
Method 1: Fixing through "Blocking in Memory"
This method is suitable for MIUI 14 and HyperOS.
- Open Settings โ Applications โ Application Management.
- Select the application you want (such as Telegram).
- Slip on the battery (or charge consumption in HyperOS).
- Activate the Block in Memory (or Lock in Memory) switch.
If there is no option, it means:
- ๐ฑ Your model doesnโt support this feature (often on the budget Redmi Note series or the Redmi Note series). POCO M).
- ๐ The firmware is modified (e.g., the global version) MIUI China).
- ๐ง The function is hidden in the developer (see the following method).
โ๏ธ Preparation for securing the annex
Method 2: Enable through "Developer Settings"
Some devices have hidden the lock option to unlock it:
- Activate Developer Mode: Go to Settings โ About Phone and tap the MIUI version 7 times.
- Back to Settings โ Additionally. โ For developers.
- Find the option to Lock Applications in Memory (or Fix Processes) and enable it.
- Reboot your smartphone.
After that, the fix option will appear in the battery settings for supported applications. Note: on HyperOS, the path may be different - look for Settings โ System โ Advanced Settings โ For developers.
๐ก
If after activating the option, the application still closes, try to further disable battery optimization for it in the Battery settings โ Optimization of charge consumption
Hidden methods for experienced users
If standard methods don't work, alternative solutions can be used, and they require more action, but often more effective.
Method 3: ADB commands (without ROOT)
With Android Debug Bridge (ADB), you can force the app to lock into memory, which works on all versions of MIUI and HyperOS, but requires a PC connection.
Instructions:
- Install ADB Tools on your computer.
- Enable debugging by USB on your smartphone (Settings โ For developers โ Debugging by USB).
- Connect your phone to your PC and type in the command line: adb shell cmd appops set <app package> android:persist true For example, for Telegram: adb shell cmd appops set org.telegram.messenger android:persist true
- Reset the device.
To find the application package, use the command:
adb shell pm list packages | grep <name>For example: adb shell pm list packages | grep telegram.
How to cancel the fixation through ADB?
Method 4: Using Tasker or MacroDroid (automation)
Automation applications like Tasker or MacroDroid allow you to create rules for restarting closed programs. It's not a full-fledged fixation in RAM, but it mimics its effect.
Example of settings in MacroDroid:
- Create a new macro with trigger Application closed (select the target application).
- Add the action Launch the application.
- Set the delay to 2-3 seconds to avoid a cyclical restart.
The downside of the method: the application will be briefly closed, but quickly recover. For instant messengers, this is often enough to not lose messages.
Compatibility table with Xiaomi models
Not all methods work on all devices, and the following are popular models (relevant for firmware 2023-2026):
| Model | Locking in memory (standard) | ADB-team | Tasker/MacroDroid | Notes |
|---|---|---|---|---|
| Xiaomi 13/13 Pro (HyperOS) | โ Yes. | โ Yes. | โ Yes. | Lock function is available in battery settings |
| Redmi Note 12 Pro+ (MIUI 14) | โ Yes (hiddenly) | โ Yes. | โ Yes. | You need to activate in the developer settings |
| POCO F5 (HyperOS) | โ Yes. | โ Yes. | โ Yes. | The option is called "Stamp the process" |
| Redmi 10C (MIUI 13) | โ No. | โ Yes. | โ Yes. | Budget model โ ADB or automation only |
| Xiaomi Pad 6 (HyperOS) | โ Yes. | โ Yes. | โ Yes. | It works stably but can reduce the time of autonomy |
Important: On devices with 6 GB RAM and less fixation 2-3 It is optimal to fix only critical programs (for example, a navigator). + messenger).
What happens if you attach too many applications
Fixing applications in RAM is an interference with the system, and it has side effects. Here's what happens when you attach 5+ programs to a smartphone with 8GB of RAM:
- ๐ข Slowing down the interface: The system will waste resources on maintaining background processes, making animations and transitions less smooth.
- ๐ Increased battery consumption: Fixed applications continue to consume power even in the background (up to the current level) +10-15% expense).
- ๐ Forced resets: in short supply RAM The system may fail to shut down critical processes (e.g, system_ui), Which will lead to a restart of the interface.
- ๐ซ Block Updates: Some apps (like Google Play Services) wonโt be able to update in the background.
- 4 GB of RAM: 1 appendix
- 6 GB of RAM: 1-2 applications
- 8 GB of RAM: 2-3 applications
- 12+ GB of RAM: 3-4 applications
Exceeding these values leads to degradation of productivity.-->
Be especially careful about the fixation:
- ๐ฎ Games: They take up a lot RAM They often have their own state-saving mechanisms (e.g., Genshin Impact saves progress on the server).
- ๐ฑ Social Media: Facebook, Instagram and TikTok aggressively optimized for background and no need to be fixed.
- ๐ Banking applications: their fixation may disrupt security mechanisms (e.g., automatic closing when inactive).
Alternative solutions: if nothing helps
If none of these methods worked, consider these options:
1. disable MIUI/HyperOS optimization
In the developer settings, there are options that reduce the aggressiveness of cleaning RAM:
- ๐ ๏ธ Limit background processes โ Set the standard limit.
- ๐ No maintenance โ Turn it off (but it will increase battery consumption).
- ๐ฑ Windows animation, Transition animation โ reduce to 0.5x speed up.
2. Use of custom firmware
LineageOS or Pixel Experience firmware does not have the aggressive RAM cleaning like MIUI.
- ๐ Unlocking the bootloader (loss of warranty).
- ๐ฅ Installations TWRP or other recovery.
- ๐ง Manual data backup (risk of information loss).
๐ก
Before installing custom firmware, check its compatibility with your model on the XDA Developers forum. Some firmware may not support cameras or communication modules.
3. Buying a smartphone with a large amount of RAM
If you are critical to keep 5+ apps in your memory, consider models with 12-16GB of RAM:
- ๐ฑ Xiaomi 14 Ultra (16 GB) RAM).
- ๐ฑ Redmi K70 Pro (12/16 GB RAM).
- ๐ฑ POCO F6 Pro (12 GB) RAM).
On such devices, the system less often resorts to forced cleaning, and attachment of applications becomes less relevant.