How to lock an app in Recents on Xiaomi
- Open Recents (swipe up from the bottom and hold, or tap the Recents button).
- Long-press the app's card.
- Tap the lock icon. A small lock appears on the card.
Xiaomi also lists a route through the Security app: Security → Settings (top right) → Boost speed → Lock apps (Xiaomi help). Menus vary by model, so use whichever one you see.
What does locking an app in Recents do?
A locked app gets a higher priority and is left out of clean-ups. When you tap "clear all" in Recents, or when HyperOS frees memory, the locked app keeps running.
It doesn't change the app's battery setting, and it does nothing for Google Play services, the app that receives push messages for most other apps and hands them over.
Is it bad to lock apps in recent apps on Xiaomi?
It won't harm your phone, but it isn't free. A locked app stays in memory, so other apps may be closed sooner to make room. And an app that keeps running can keep doing background work, which uses battery.
One locked app is a small cost. The usual advice, though, is to lock every chat, email and social app, often on top of setting them all to No restrictions. That adds up.
A lock still makes sense for an app you don't want HyperOS to close while you switch between apps. That's a different problem from late notifications.
Why a lock often doesn't fix late notifications
Late messages on HyperOS usually come from freezing, not closing. HyperOS freezes apps you aren't using to save battery, and a frozen app can't receive anything. The app that matters most is Google Play services, because it delivers messages for most apps. You can't lock it in Recents, and it has no battery switch you can change.
That's why people say "Messenger is still late even with No restrictions and the app locked". The lock protected Messenger, but the message was waiting in Google Play services. This is most common on China ROM phones: imported Xiaomi phones, China-only models like the Redmi K series, and phones with a flashed China ROM.
How to unlock an app in Recents
- Open Recents.
- Long-press the locked app's card.
- Tap the lock icon again.
Only you can do this, because Xiaomi doesn't let other apps unlock apps in Recents.
Skip the locks with HyperKeep
HyperKeep is a free app made for China ROM phones. It keeps the apps you choose, starting with Google Play services, on Xiaomi's list of apps it never freezes, and puts them back in about 2 seconds whenever Xiaomi drops them. Your messages keep coming without a lock.
If an app you keep is locked in Recents, HyperKeep shows a tip with how to unlock it, and you tap the lock yourself.
HyperKeep sleeps until it's needed. Android wakes it only when Xiaomi changes its list, and each fix takes a few milliseconds. Only HyperKeep needs No restrictions and Autostart, so all your other apps can stay on Battery saver (recommended). Download HyperKeep.
To check your ROM, open Settings → About phone and look at the HyperOS version. If the letters near the end contain "CN" (like OS4.0.6.0.XPKCNXM), it's the China ROM.