Have you noticed how frequently used applications on Xiaomi suddenly reboot when switching between them? It is due to the peculiarities of memory management in MIUI โ the system optimizes background processes, closing "unnecessary" programs. But what if it is critical to you that Telegram, WhatsApp or a game remain active in memory? The solution is: attaching applications to RAM.
In this article, we will discuss all the current ways to fix applications in RAM on Xiaomi, Redmi and POCO smartphones (including models on MIUI 14/15 and HyperOS). You will learn how to do this without root rights, which applications are really worth fixing, and why it is sometimes better not to interfere with the system.
What does it mean to โfix the application in RAMโ and why it is necessary
RAM attachment is the forced retention of a programโs process in an active state even when the system tries to shut it down to free up resources. At Xiaomi, this is especially true because of the aggressive memory management policy in MIUI, which often closes background applications in order to save battery power.
When that might come in handy:
- ๐ฑ Messengers (Telegram, WhatsApp, Viber): not to miss notifications of new messages.
- ๐ฎ Games (PUBG Mobile, Genshin Impact: Avoid booting from scratch when returning.
- ๐ต Music players (Spotify, YouTube Music): for uninterrupted playback in the background.
- ๐ Fitness trackers (Strava, Google Fit): so that data is not reset during training.
However, fixing applications in RAM is not always useful: it can lead to an increase in battery consumption by 10-15% and a slowdown in the system if too many processes are fixed.
Method 1: Built-in "Stick" function in MIUI (without root rights)
The easiest and safest method is to use the built-in โSecureโ option available in the latest versions of MIUI 14/15 and HyperOS. It does not require superuser rights and works on most modern Xiaomi devices (starting with the Redmi Note 10 and later).
Instructions:
- Open recent apps (swipe up from the bottom edge of the screen and hold).
- Find the card of the desired application (for example, Telegram).
- Click on the app icon and select Secure (or Lock on English firmware).
- Confirm the action. The lock icon will appear on the app card.
Limitations of the method:
- โ ๏ธ It only works for applications that are open in recent tasks.
- โ ๏ธ After restarting the phone, the fixing is reset.
- โ ๏ธ Not all models support this function (for example, POCO F1 Or the old Redmis, it might not be there).
โ๏ธ Preparation before fixing
Method 2: Developer settings (for power users)
If your firmware doesn't have a "Secure" feature, you can use the hidden developer settings, which works on all Xiaomi devices, but requires developer mode activation.
Steps:
- Activate Developer Mode: Go to Settings โ About Phone. Click 7 times on the MIUI Version (you will be notified "You are a developer").
Settings โ Additional โ For Developers
Do not unload background processes
Don't keep activities
disconnect
Limit of background processes
Standard limit
No restrictions.
โ ๏ธ Warning: Disabling Don't Keep Activities can lead to increased battery consumption and overheating of the device. Use this method only if you really need to.
For the point fixing of individual applications:
- In the same developer settings, find Forced to hold applications in memory (if any).
- Add the right programs to the list (for example, com.whatsapp for WhatsApp).
Instructions:
- Connect the phone to the PC and confirm the debugging permission.
- Open the command prompt (Windows) or terminal (macOS/Linux) in the folder with adb.exe.
- Enter the command to check the connection: Adb devices must appear serial number of your device.
- Run the command to secure the application (replace com.example.app with a batch name): adb shell cmd appops set com.example.app RUN_ANY_IN_BACKGROUND allow
- For additional fixation, type: adb shell am set-standby-bucket com.example.app active
Examples of packet names of popular applications:
| Annex | Package name |
|---|---|
| Telegram | org.telegram.messenger |
| com.whatsapp | |
| VK | com.vkontakte.android |
| YouTube | com.google.android.youtube |
| Genshin Impact | com.mihoyo.GenshinImpact |
โ ๏ธ Attention: After update MIUI or resetting the action ADB-Repeat the procedure if necessary.
๐ก
To avoid entering commands every time, save them to a text file and run them through bat/sh script.
Method 4: Special Applications (with and without root rights)
If you don't want to mess with manual settings, you can use third-party utilities, and we'll look at two options: for devices without root rights and with root.
The song is โDonโt Kill My App!โ
Don't Kill My App! doesn't fix apps directly to RAM, but it optimizes system settings to make them less likely to close, and is suitable for most Xiaomi devices on MIUI 12-15.
How to use:
- Download the app from the Play Market.
- Choose your Xiaomi model from the list.
- Follow the step-by-step instructions (usually you need to disable auto-optimization and add the application to exceptions).
Root rights: "RAM Expander" or "Greenify"
If you have root access, the possibilities are expanded:
- ๐ง RAM Expander (SWAP): Creates virtual memory, reducing application downloads.
- ๐ฟ Greenify: hibernates unnecessary processes, leaving resources for important processes.
- ๐ AppOps: allows you to manually manage application rights, including background work.
For installation:
- Get root rights (for example, through Magisk).
- Download one of the apps above (available on XDA Developers).
- In the settings, select applications for fixing or optimizing.
๐ก
Using root-right applications can disrupt MIUI and lead to a device blink.
Method 5: Set up Auto-Run and Exceptions in MIUI
Sometimes the problem isn't with RAM, but with the system blocking the application from auto-starting, and MIUI has separate settings to manage that.
How to set up:
- Go to Settings โ Applications โ Application Management.
- Select the application you want (such as Telegram).
- Activate options: Autostart (allows you to start when the system starts), Background activity (allows you to work in the background), Show notifications (important for messengers).
Settings โ Battery and Performance โ Battery Consumption Management
No restrictions.
In addition:
- ๐ Turn off the power saving mode for fixed applications.
- ๐ B Settings โ Special facilities โ Optimization MIUI Turn off optimization for the right programs.
What to do if the application is still unloaded from RAM
Even after all the manipulation, some applications may continue to shut down, and here are the possible causes and solutions:
| Problem. | Reason. | Decision |
|---|---|---|
| The application is unloaded in 5-10 minutes | Aggressive MIUI optimization | Turn it off. MIUI Optimization through ADB: adb shell settings put global miui_optimization_disabled 1 |
| The fixing is reset after resetting | Resetting temporary settings | Use Tasker or MacroDroid to automatically re-pin |
| The game is despite the fixing | Lack of free memory | Close all background applications before launching the game |
| The messenger does not receive notifications | Blocking Push Messages | Check the Notification and Mobile Data settings for the application |
If nothing helps:
- ๐ฒ Try alternative firmware (e.g. Pixel Experience or LineageOS) where memory management is less aggressive.
- ๐ Reset the settings to factory (pre-make a backup!).
- ๐ฆ Install a lightweight version of the app (e.g. Telegram X or Facebook Lite).