Xiaomi's MIUI-based devices are known for aggressively optimizing battery and background processes, often resulting in apps spontaneously shutting down, not getting notifications, or not syncing in the background, so the solution is to add the right programs to system exceptions, but where exactly do you do that and what settings do you use?
In this article, we will discuss all the ways to add exceptions to Xiaomi, from basic autostart settings to hidden developer settings. The instructions are relevant for MIUI 12, MIUI 13, MIUI 14 and HyperOS (2026), but will also work for older versions with minor changes to the menu, and we will focus on the difference between βbattery exceptionsβ and βautostart permissionsβ β many users confuse these features, which leads to incorrect application performance.
Why Apps Need Exemptions on Xiaomi
The MIUI firmware defaults to limit the background activity of programs to extend battery life, and this is how it works:
- π Applications do not show push notifications (for example, Telegram, Viber, instant messengers of banks).
- π Background data synchronization is interrupted (mail, cloud services, fitness trackers).
- β³ Applications are βfreezedβ after being folded and rebooted upon return.
- π« Some Smart Home or Geolocation Features Stop Working.
The MIUI system uses three levels of control:
- Battery optimization β limits background activity to save charge.
- Auto-Start β blocks the automatic start of applications after the device is restarted.
- Blocking in memory - forcibly closes programs with a lack of RAM.
To make the app work properly, it needs to be added to the exceptions in all three categories, and skipping one item can nullify all efforts.
Method 1: Exceptions to battery settings
The most obvious, but not always sufficient, method is to add an application to the battery optimization exception list, which will prevent the system from forcing the program to close.
Instructions:
- Open Settings β Battery and Performance.
- Select the option βControl battery consumption applicationsβ (in some versions β Battery optimization).
- Click on the three dots in the top right corner and select Other Settings β Exceptions.
- In the list, find the desired application and activate the switch.
If your MIUI version does not have an "Exceptions" option, use an alternative path:
- Go to Settings β Applications β Application Management.
- Select the desired application β Battery consumption.
- Activate the option without restrictions.
Appendix added to "Exceptions" |Consumption mode set to "No Limits" |Background activity allowed |Optimization disabled for this app-->
β οΈ Attention: MIUI 14 and HyperOS after the update of the exclusion system, the batteries may be reset!
Method 2: Autostart permission
Even if the application is added to the battery exceptions, it may not start automatically after the device is restarted.
How to turn on:
- Open Settings β Applications β Application Management.
- Click on the three dots in the top right corner and select AutoRun.
- Find the desired application in the list and activate the switch.
The MIUI 13/14 may be different:
Settings β Applications β Permissions β AutorunSome system applications (such as Mi Home or Xiaomi Cloud) may be hidden in this list. To find them, search by settings (the magnifying glass icon in the upper right corner).
π‘
If the app doesnβt appear in the autorun list, try running it manually first β sometimes the system only adds programs to the list after opening it for the first time.
Method 3: Locking in memory (application fastener)
The memory lock function prevents the application from closing when the RAM is cleared, which is especially important for messengers, navigators and programs that need to run in the background.
How to secure the application:
- Open Recent Apps (the box button in the navigation bar).
- Find the desired application and swipe down on his card (on some models - swipe up).
- A lock icon will appear β click on it to block the application in memory.
On MIUI 14 and HyperOS, the interface has changed:
- π± Click on the app icon in the list of recent.
- π Choose to Lock or Lock in Memory.
The number of applications that can be blocked is limited (usually 3-5 pieces). If the lock icon is inactive, then the limit is exhausted - first unlock the unnecessary programs.
| MIUI version | Max. number of fixed applications | Method of unlocking |
|---|---|---|
| MIUI 12 | 3 | Swipe up the card + tap on the lock |
| MIUI 13 | 5 | Long press on the card β "Unblock" |
| MIUI 14 / HyperOS | Unlimited* | Settings β Special features β System settings |
* On some models (for example, Xiaomi 13 Pro) the limit is still maintained.
Method 4: Developer settings (for power users)
If standard methods don't work, you can use developer mode, and there are advanced options for managing background processes.
How to turn on the developer mode:
- Go to Settings. β The phone.
- Press 7 times in a row on the MIUI version.
- Enter the screen unlock password (if requested).
Now, a new section for developers will appear in the main settings, and here we are interested in the following options:
- π οΈ Donβt limit background processes β disables all restrictions for selected applications.
- π Limiting background processes β set a value without limitations.
- π± Not Optimize β Add Apps to this List.
Warning: Changing these parameters can increase battery consumption and slow down the system with a lot of background processes.
What happens if you turn off all restrictions?
Method 5: Exceptions for Notifications
If the app is added to all the exceptions but notifications still donβt come, the problem may be in the notification access settings.
How to check:
- Open Settings β Notifications and Status bar β Notification management.
- Find the right app in the list.
- Make sure to allow notifications and show as priority active switches.
- In the Notification Categories section, include all important types (sound, vibration, icon).
For messengers (WhatsApp, Telegram) additionally:
- π Turn on Show on the lock screen.
- π± Allow pop-up notifications (if necessary).
- π Set a separate sound for notifications in the app settings.
β οΈ Attention: MIUI 14: Smart Notifications, which automatically hides "unnecessary" alerts, is now available. β Notifications β Smart notifications if you miss important messages.
Frequent Mistakes and How to Avoid Them
Many users make the same mistakes when setting exceptions.
- Add only battery exceptions, ignoring auto-run. β Solution: check all three settings (battery, auto-run, lock in memory).
- Do not update settings after resetting your phone. β Solution: After Hard Reset or MIUI update, all exceptions are reset!
- Fix too many applications in memory. β Solution: leave in lock only the most important programs (messenger, navigators).
- Donβt check notification permissions. β Solution: Even with exceptions, notifications can be blocked at the Android level.
Another common problem is the conflict with the power saving functions. If you have Ultra-Economic or Super-Battery mode on, all the exceptions can be ignored. Turn those modes off in Settings β Battery β Battery modes.
π‘
Check the exception settings after each MIUI update β they are often reset!