How to add an application to the list of protected on Xiaomi: full instructions for MIUI

Xiaomi’s MIUI-based smartphones are known for aggressive background control. Often useful applications like messengers, health trackers, or banking services suddenly stop working because the system blocks their activity in the background, and the solution lies in adding such programs to a list of secure applications that prevents them from being forced to close.

In this article, we will discuss three key methods of protecting applications on Xiaomi: through battery settings, auto-run and a special section "Secure applications" (available on all versions). MIUI). We also find out why, even after adding an exception, some programs continue to β€œfly out” and how to fix it. MIUI 12–14.

Why Xiaomi is blocking apps in the background?

MIUI firmware is optimized to save battery life, and one of the main mechanisms is to force the background processes to close.

  • πŸ”‹ High-power applications (such as navigation or gaming)
  • πŸ“± Programs that are rarely used (the system considers them "junk")
  • πŸ”„ Services operating in the background without notifications (step trackers, weather widgets)

As a result, users face problems:

  • ❌ Messengers (Telegram, WhatsApp) do not send notifications
  • ❌ Music players (Spotify, Yandex Music) stop after 5-10 minutes
  • ❌ Banking applications (SberBank Online, Tinkoff) require re-authorization

The solution is to add the right programs to the exception lists, but there are nuances here, for example, on the Xiaomi 13 Pro with MIUI 14, the path to settings is different from the one on the Redmi 9 with MIUI 12.

πŸ“Š What Xiaomi model do you use?
Redmi Note 10/11/12
Xiaomi 12/13/14
POCO F3/F4/F5
Another model

Method 1: Addition to Secure Applications (MIUI 12–14)

Starting with MIUI 12, a separate section was added to the firmware to protect applications from forced closure.

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Slip on the three dots in the upper right corner and select Special Permits.
  3. Find Secure Applications (on some models it may be called Background Lock).
  4. Turn on the switch for the desired application.

If there is no item Protected Applications:

  • πŸ” Check the version. MIUI: on MIUI 11 and below this section is missing.
  • πŸ”„ Update the firmware through Settings β†’ The phone. β†’ Updating the system.
  • πŸ“± In some models (for example, POCO X3) The path may be different: Settings β†’ Battery β†’ Choice of applications.

Update MIUI to the latest version

Close all background applications

Check the battery charge (minimum 20%)

Reboot your smartphone-->

⚠️ Note: On Xiaomi Mi 11 Lite and some other models, the Secure Apps section may be hidden. To activate it, you first need to turn on Show System Settings in the developer menu (how to do this - read the debugging section).

Method 2: Setup autostart and background activity

Even if an application is added to a secure one, the system can restrict its auto-run to avoid:

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Select the application you want (for example, Viber).
  3. Slip on AutoRun and turn on the permission.
  4. Go back and activate the Background Activity (if there is one).

On MIUI 14, the path may be different:

Settings β†’ Applications β†’ Permissions β†’ Autorun

For banking applications (e.g. Alpha-Click) additionally:

  • πŸ”’ Enable Without Limits in Battery Settings for this Application.
  • πŸ“΅ Turn off optimization. MIUI (if there is such a switch).
Xiaomi modelThe path to auto-startFeatures
Redmi Note 10/11Settings β†’ Applications β†’ Auto LaunchThere is no separate section "Secure Applications"
Xiaomi 12/13Settings β†’ Applications β†’ Permissions β†’ AutorunThere is a section called "Secure Applications", but it is hidden by default.
POCO F3/F4Settings β†’ Battery β†’ Selection of applicationsRequires to disable the "Adaptive battery" in the developer settings

πŸ’‘

If the app still shuts down after you turn on auto-run, try turning off the power saving mode in the battery settings, which solves the problem on some models (such as the Xiaomi 11T).

Method 3: Optimizing the battery for individual applications

MIUI automatically optimizes power consumption, which often leads to background processes being closed.

  1. Open Settings β†’ Battery β†’ Selection of applications.
  2. Select an app (such as Google Maps).
  3. Set up a No Limits mode.

On MIUI 14, the algorithm changed:

  • πŸ”‹ There is a new mode Adaptive battery, which can not be turned off without the rights of the developer.
  • πŸ“‰ For critical applications (messengers, banks) you will have to manually install High performance.

If there is no limit to the item:

1. Enable the developer mode (7 times tap on "version MIUI" in "About phone").


2. Go back to "Settings β†’ Additional β†’ For Developers."




3. disable "Optimization MIUI" and "Background optimization".

⚠️ Note: Disabling battery optimization can reduce battery life by 10-15%. Use this method only for critical applications (e.g. SberBank Online or Yandex Navigator).

What to do if the app is closed anyway?

If after all the manipulations the application continues to β€œfly out”, check:

  • πŸ”„ Updates MIUI: On some versions (for example, MIUI 13.0.4) has bugs with background processes. Update the firmware.
  • πŸ› οΈ Developer Rights: Enable Do Not Limit Background Processes in Developer Settings.
  • πŸ“± Resetting: For apps like WhatsApp, sometimes deleting and re-installing helps.

For Xiaomi 13 Ultra and other flagships with HyperOS (new firmware instead of MIUI):

1. Settings β†’ Applications β†’ Application Management β†’ [Select App].


2. Slip "Battery" β†’ Select "No Limits".




3. Return and turn on "Space" and "Secondary Start".

How to check if MIUI is closing your application?
Install the Background App Inspector app from Google Play, which will show you which processes have been forced to stop by the system, and help you customize the exceptions more accurately.

Features for banking and system applications

Banking applications (Tinkoff, VTB Online) and services with high security requirements are often blocked by MIUI even after adding exceptions.

  1. Open Settings β†’ Applications β†’ [Select the banking application].
  2. Enable all permissions: Camera, Microphone, Location.
  3. In the section Additional activate Show over other windows.
  4. In the battery settings, set it without restrictions.

For Google Play Services and other system components:

  • πŸ”§ Don’t turn them off through Settings. β†’ Applications -- this will lead to failures.
  • πŸ”„ If they consume a lot of battery, update them via Google Play.

πŸ’‘

Banking applications require maximum permissions, and if they don’t work after setting up, try disabling the VPN or clearing the app’s cache.

FAQ: Frequent questions about secure apps on Xiaomi

Why did my secure application settings reset after the MIUI update?
For major updates (e.g., from MIUI 13 to MIUI 14), the system resets some resolutions. After the update, you need to re-check the Secure Applications section, update the autorun settings, restart the phone.
Can I add system services (e.g. Google Play) to secure applications?
No, system applications (Google Play Services, MIUI Daemon) can't be added manually. They're regulated at the firmware level. If they consume too much battery, try: Clear cache via Settings. β†’ Apps. Update via Google Play. Reset network settings (Settings) β†’ SIM-maps and networks β†’ Resetting the network).
How to check if the application works in the background?
There are several ways: Open recent apps (square button) - if the app disappears from there after a few minutes, it is blocked. ADB-Background testing team: adb shell dumpsys activity activities | grep "mFocusedApp" Install Background App Inspector from Google Play.
My Xiaomi doesn't have a Secure Apps section. What do I do?
If you MIUI 11 or older version, this section is missing: πŸ”§ Turn off optimization. MIUI developer-setting. πŸ“΅ Add the app to battery exclusions (Settings) β†’ Battery β†’ Choice of applications). πŸ”„ Update the firmware to MIUI 12 or newer.
When you add it to the secure app, it's faster to drain the battery. Is that normal?
Yes, applications without restrictions consume more power to balance the problem: πŸ”‹ Turn on the Adaptive Battery for other applications. ⚑ Use the energy saving mode at night. πŸ“Š Check the consumption statistics in Settings β†’ Battery and disable unnecessary background processes.