Skip to content
TechBone
Xiaomi

Xiaomi: Lock Background Apps from Closing

If a chat app or timer keeps getting killed the moment you switch away from it, MIUI's battery management is likely closing it in the background. On many Xiaomi phones the old trick of locking an app from the recent apps overview no longer works. The lock option now lives inside the Security app instead.

4 min5 steps
VersionAndroid 11 · MIUI

Step by step

1 / 5

Step 1 of 5: Tap on **Security**

1

Tap on Security

Live simulator

Android 11 · MIUI
Lock Background Apps – MIUI: step 1 – Tap on Security
Tap on Security
1 / 5

Scroll or use the buttons for the next step

Feedback

Was the guide correct?

Help others: confirm the path or report a problem.

94

Confirmations

Forum verified this path

Xiaomi

Lock Background Apps auf Xiaomi

On MIUI, background apps are managed by an aggressive battery optimizer that closes processes it considers inactive. This is why messengers stop receiving notifications or a running timer resets after you switch to another app. Locking an app tells the system to keep it alive instead of freeing its memory.

On older MIUI versions this lock could be set directly from the recent apps overview by tapping an app's icon. On several current Xiaomi devices that shortcut is gone. The lock function moved into the Security app, under the speed optimization tools.

How to lock an app

Open SecuritySettingsBoost speedLock apps. This list shows every installed app with a toggle next to it. Turn the toggle on for any app you want to keep running in the background, or turn it off to let the system manage it normally again using Turn On/Off an App.

Locking too many apps at once increases battery drain, since none of them get closed automatically anymore. Lock only the apps that actually need to stay active, such as chat tools, VPNs, or fitness trackers. For everything else, leave the toggle off and let MIUI manage memory on its own.

Frequently asked questions

On several MIUI versions the quick lock icon was removed from the recent apps overview. The function still exists, but only inside SecuritySettingsBoost speedLock apps.