How to fix the application in Xiaomi memory: from basic settings to hidden MIUI chips

Xiaomiโ€™s MIUI-based smartphones are actively optimizing background processes to save battery life. However, this โ€œcareโ€ often causes the right apps to suddenly shut down or restart, especially for instant messengers (Telegram, WhatsApp), navigators (Yandex.Maps, Google Maps), and games (Genshin Impact, PUBG Mobile), where interruption can cost a missed message or a lost match.

In this article, we will discuss all the available ways to fix applications in memory, from standard MIUI functions to hidden settings through ADB and engineering menus. You will learn how to turn off aggressive battery optimization, set up autoboot and even manually lock processes in RAM. Importantly, not all methods are equally effective on different versions of MIUI (12-15) and models (Redmi, POCO, Xiaomi), so we will point out the nuances for each.

If you're tired of Spotify constantly rebooting when you lock your screen, or if Viber doesn't send notifications without an open app, this is the guide for you. But remember, too much attachment of apps to memory can increase battery consumption and slow down the system.

๐Ÿ“Š Which app most often closes itself on your Xiaomi?
Messengers (Telegram, WhatsApp)
Social networks (VK, TikTok)
Navigators (Yandex.Maps, Google Maps)
Games (PUBG, Genshin Impact)
Other

1. Standard method: fixing the application in the multitasking menu

The easiest and safest method is to secure the app right in the MIUI interface.It works on all modern Xiaomi smartphones (from Redmi Note 10 to Xiaomi 14) and does not require superuser rights.

How to do this:

  1. Open the application you want to secure (e.g. Telegram).
  2. Press the button "Multi-tasking" (square or swipe up with pause).
  3. Find the card of the desired application and hold it with your finger for 1-2 seconds.
  4. In the menu that appears, select "Secure" (icon with a pin).

After that, the application will remain in memory even after cleaning the RAM through the "Close everything" button, but the method has limitations:

  • ๐Ÿ”น It works for only one application at a time (on some firmware - up to 3).
  • ๐Ÿ”น After restarting the smartphone, the fixation is reset.
  • ๐Ÿ”น Does not protect against closing the system in case of memory shortage.

โš ๏ธ Attention: POCO F5 Xiaomi 13T s MIUI 14 The "Secure" option may not be in the multitasking menu, in which case use the alternative methods in the following sections.

2. disable battery optimization for selected applications

MIUI aggressively closes the background processes to save charge. To avoid this, you need to manually exclude the application from optimization. This method works on all versions of MIUI (including MIUI 15 on Xiaomi 14 Ultra).

Instructions:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Select the app you want (such as WhatsApp).
  3. Slip "Battery Optimization" (or "Battery Consumption" on older versions).
  4. Select โ€œNo Limitsโ€ (or โ€œOpt out Optimizationโ€).

For maximum effect, also turn off Auto Start (if it is on) and allow Background Activity in the same menu, which will prevent the application from closing when the screen is locked.

Battery optimization for the application is disabled |

Background activity allowed |

Auto-start disabled (if not needed) |

High priority notifications included-->

On some models (Redmi Note 12 Pro+, POCO X5 Pro) the path to settings may be different: Settings โ†’ Battery and Performance โ†’ Application Selection โ†’ [app] โ†’ Battery Optimization.

โš ๏ธ Attention: After update MIUI Battery optimization settings may be reset, check them after each major update (e.g., when switching from a battery to a battery). MIUI 13 on MIUI 14).

3. Set up the autoload of applications

Autoboot allows apps to run automatically when a smartphone is turned on or after cleaning the RAM.This doesnโ€™t lock them into memory permanently, but increases the chances that they wonโ€™t shut down unexpectedly.

How to set up:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Slip on "Outload" (or "Outrun" on MIUI 12).
  3. Find the desired application in the list and turn on the switch.

On newer versions of MIUI (14-15), the path may be different: Settings โ†’ Applications โ†’ Permissions โ†’ AutoRun.

What apps should be added to the autoload:

  • ๐Ÿ’ฌ Messengers: Telegram, WhatsApp, Viber (for instant notifications).
  • ๐Ÿ—บ๏ธ Navigators: Yandex.Maps, Google Maps (so that you do not lose data about the route).
  • ๐ŸŽต Music services: Spotify, Yandex Music (for playback in the background).
  • ๐ŸŽฎ Games with a permanent online connection: Genshin Impact, Honor of Kings.
Why does autoboot not guarantee 100% performance in the background?
Even with the autoboot enabled, MIUI can close the application if: - The system is experiencing a lack of RAM (for example, when starting a heavy game). - Power Saving mode or "Ultra-Economic Mode" is enabled. - The application has not been used for a long time (more than 12 hours).

4. Hidden settings: blocking processes through the engineering menu

For advanced users, there is a way to force the application process in memory through an engineering menu, which works on most Xiaomi devices, but requires caution โ€“ wrong actions can lead to crashes.

Instructions:

  1. Open the dialer and enter the code ##4636## (some models may not work โ€“ see the alternative below).
  2. In the menu that opens, select "Battery Information" (or "Usage Statistics").
  3. Slip on Menu (three dots in the upper right corner) and select Process Statistics.
  4. Find the desired application in the list and click on it.
  5. In the "Lock" (or "Blocking") section, set a tick.

If #4636### is not working, try an alternative method:

  1. Install the Activity Launcher app from Google Play.
  2. Open it and find "Engineering Mode" or "Testing".
  3. Run Process Stats and repeat steps 4-5 from the instructions above.

โš ๏ธ Attention: Blocking processes through an engineering menu can increase battery consumption by 10-15% and cause lags when multitasking.

adb shell am start -n com.android.settings/.DevelopmentSettings

But this method requires an unlocked bootloader and enabled debugging on USB.-->

5. Advanced method: fixation through ADB (no root)

The most reliable way to store an application in memory is to use ADB commands. This method does not require root rights, but you need to:

  • ๐Ÿ–ฅ๏ธ A computer with installed Xiaomi drivers and ADB.
  • ๐Ÿ“ฑ Included debugging by USB smartphone.
  • ๐Ÿ”Œ USB-Type C Cable (preferably original).

Step-by-step:

  1. Connect the smartphone to the PC and allow debugging (a request will appear on the screen).
  2. Open the command prompt (cmd) and type: Adb devices Make sure the device is defined.
  3. Enter the command to disable optimization (replace com.example.app with your application package, for example, org.telegram.messenger): adb shell dumpsys deviceidle whitelist +com.example.app
  4. Then lock the app in memory: adb shell am set-inactive com.example.app false

How do I find out the application package?

  1. Install App Inspector from Google Play.
  2. Open the application and find it in the list โ€“ the package will be listed in the format com.company.app.

Once the commands are executed, the application will be protected from closing by the system even when the RAM is cleared through the "Close Everything" button, but after the smartphone is restarted, the effect will reset - you will have to repeat the procedure.

AnnexPackage name (package name)Team for ADB
Telegramorg.telegram.messengeradb shell dumpsys deviceidle whitelist +org.telegram.messenger
WhatsAppcom.whatsappadb shell dumpsys deviceidle whitelist +com.whatsapp
Yandex.Maps.ru.yandex.yandexmapsadb shell dumpsys deviceidle whitelist +ru.yandex.yandexmaps
Spotifycom.spotify.musicadb shell dumpsys deviceidle whitelist +com.spotify.music

๐Ÿ’ก

ADB commands are the most powerful tool for fixing applications, but require re-execution after each reboot.

6.Alternative solutions: third-party utilities and root-methods

If the standard methods don't work, you can use third-party tools, but they require an unlocked bootloader or super-user rights.

Popular utilities:

  • ๐Ÿ› ๏ธ Greenify allows you to freeze unnecessary processes, freeing up memory for important applications.

How to use Greenify without root:

  1. Install Greenify from Google Play.
  2. Launch and provide access to special features (Settings โ†’ Special features โ†’ Greenify).
  3. Add to the list of โ€œfreezeโ€ apps those that are not needed in the background (for example, Facebook, TikTok).
  4. Enable the option "Aggressive Hibernation".

โš ๏ธ Attention: Root methods can take away warranty and lead to unstable smartphone operation. On Xiaomi, with the unlocked bootloader, Google Pay, Mi Pay and some banking applications also stop working.

What do you do if nothing helps?
If the application still closes: 1. Check if Power Saving Mode is turned on (Settings โ†’ Battery). 2. Update MIUI to the latest version - new firmware often fixes memory management bugs. 3. Try rolling back the firmware to an older version of MIUI (if the problem appears after the update). 4. For games, use Game Mode (Settings โ†’ Special Features โ†’ Game Turbo Mode), which prioritizes resources for the running application.

FAQ: Frequent questions about fixing apps in Xiaomi memory

Can system applications (e.g., โ€œCallsโ€ or โ€œMessagesโ€) be stored in memory?
No, MIUI system applications can't be fixed in the standard way. They're already high priority in memory. If Calls or Messages close, the problem is the firmware failure. Try resetting through Settings โ†’ About Phone โ†’ Reset (without deleting data).
Why did all the fixing settings of applications reset after the MIUI update?
Large updates (e.g. with the MIUI 13 on MIUI 14) reset: Battery optimization settings. Autoboot lists. ADB-This is due to the change in the memory management policy in the new versions.
How do I know how much memory a fixed application takes?
Open Settings โ†’ About Phone โ†’ System Status โ†’ Memory. This shows: Total RAM. Occupied/free space. A list of processes with memory consumption (slip on "More"). The attached applications will be marked as "Locked" or "Fixed."
Will fixing apps on POCO with a POCO Launcher shell work?
Yeah, but with nuances: POCO F4, POCO X5 Pro and other models with POCO Launcher multitasking menu differs, but the "Stick" option remains.The path to battery optimization settings: Settings โ†’ Battery โ†’ Choice of applications. ADB-The teams work in the same way as the standard MIUI. If you do not have an option, install a standard launcher. MIUI theme-wise.
Can I keep the app in memory forever so I donโ€™t have to repeat it after a reboot?
No root rights, not even. ADB-Solutions: Use Tasker to automatically execute commands after your smartphone is turned on. Set root and use Magisk's "Disable Flag Secure" or "Universal SafetyNet Fix" module. Some firmware (e.g. xiaomi.eu) has a built-in permanent fix option.