Fixing applications in RAM on Xiaomi: all ways 2026

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.

๐Ÿ“Š What firmware you use on Xiaomi?
MIUI 12/13
MIUI 14
HyperOS
Custom (LineageOS, Pixel Experience, etc.)
I don't know.

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.

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select the application you want (such as Telegram).
  3. Slip on the battery (or charge consumption in HyperOS).
  4. 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

Done: 0 / 4

Method 2: Enable through "Developer Settings"

Some devices have hidden the lock option to unlock it:

  1. Activate Developer Mode: Go to Settings โ†’ About Phone and tap the MIUI version 7 times.
  2. Back to Settings โ†’ Additionally. โ†’ For developers.
  3. Find the option to Lock Applications in Memory (or Fix Processes) and enable it.
  4. 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:

  1. Install ADB Tools on your computer.
  2. Enable debugging by USB on your smartphone (Settings โ†’ For developers โ†’ Debugging by USB).
  3. 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
  4. 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?
To remove the fixation, execute the same command by replacing true with false: adb shell cmd appops set org.telegram.messenger android:persist false After that, the application will close according to the standard system rules.

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:

  1. Create a new macro with trigger Application closed (select the target application).
  2. Add the action Launch the application.
  3. 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):

ModelLocking in memory (standard)ADB-teamTasker/MacroDroidNotes
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.

FAQ: Frequent questions about fixing apps on Xiaomi

โ“ Why does the app close after it is fixed?
Probable causes: ๐Ÿ”‹ Power saving mode is enabled (turn it off in battery settings). ๐Ÿ”„ The app has been updated and its package has changed (check the current package through the app). ADB). ๐Ÿ“ฑ The system has been forced to close it due to a shortage. RAM (check your free memory). ๐Ÿ› ๏ธ On some firmware MIUI In China, the lock function is unstable. Solution: Try a combination of methods -- for example, fix it through a lock. ADB and further disable battery optimization.
โ“ Can system applications be fixed (e.g., "Phone" or "Messages")?
Technically, yes, but it's not recommended. System applications are already optimized for background work, and forced fixation can be used to fix them: ๐Ÿšซ Lead to interface failures (for example, the disappearance of the notification panel). ๐Ÿ”„ Cause conflicts with system updates. ๐Ÿ“ฑ Increase battery consumption by 5-10%. Exception: If you have Xiaomi with heavily cropped firmware (for example, for the European market), where system applications are constantly rebooted, you can try to pin com.android.phone (calls) through the Internet. ADB.
โ“ How to check if the application is actually fixed in RAM?
There are two ways: through developer settings: Open Settings โ†’ Developer โ†’ Services in progress. See the list of active processes - the fixed application will be marked as persistent. Through ADB: adb shell dumpsys meminfo | grep -i "persist" In the conclusion, look for your application package. You can also use RAM monitoring applications, such as Simple System Monitor (requires ROOT for full access).
โ“ Does the fastening of applications affect the battery life?
Yes, but the degree of influence depends on the application: Application type Increased battery consumption Reason Messengers (Telegram, WhatsApp) +3-5% Constant synchronization of messages Navigators (Yandex.Maps) +7-12% Active use GPS and Network Games (PUBG Mobile) +15-20% High consumption CPU/GPU Even in the background of Music Players (Spotify) +1-2% Minimum Activity Tip: If autonomy is critical, only attach the apps that are really needed in the background (e.g., navigator while traveling).
โ“ Can I always use the app through Magisk (ROOT)?
Yeah, with. ROOT-Additional features: Install the Universal module GMS Doze or Disable Flag Secure via Magisk. Use AppOps to force the persist flag: su appops set <package> android:persist allow Advantage ROOT-It works even on custom firmware and allows you to fix system applications: โš ๏ธ Attention: Unlock the bootloader and receive ROOT In addition, some banking applications (for example, SberBank Online) can block the work on rooted devices.