How to add an app to the exceptions on Xiaomi: the full guide on MIUI

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:

  1. Battery optimization – limits background activity to save charge.
  2. Auto-Start – blocks the automatic start of applications after the device is restarted.
  3. 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.

πŸ“Š What Is the Problem You Most Often Solve on Xiaomi?
Applications are not kept in memory
No notifications.
The battery goes down fast.
Geolocation is not working.
Other

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:

  1. Open Settings β†’ Battery and Performance.
  2. Select the option β€œControl battery consumption applications” (in some versions – Battery optimization).
  3. Click on the three dots in the top right corner and select Other Settings β†’ Exceptions.
  4. 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:

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Select the desired application β†’ Battery consumption.
  3. 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:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Click on the three dots in the top right corner and select AutoRun.
  3. Find the desired application in the list and activate the switch.

The MIUI 13/14 may be different:

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

Some 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:

  1. Open Recent Apps (the box button in the navigation bar).
  2. Find the desired application and swipe down on his card (on some models - swipe up).
  3. 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 versionMax. number of fixed applicationsMethod of unlocking
MIUI 123Swipe up the card + tap on the lock
MIUI 135Long press on the card β†’ "Unblock"
MIUI 14 / HyperOSUnlimited*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:

  1. Go to Settings. β†’ The phone.
  2. Press 7 times in a row on the MIUI version.
  3. 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?
With the complete shutdown of battery optimization and background processes, the device will begin to discharge 15-30% faster, in addition, lags are possible due to overloading of RAM. It is recommended to add no more than 5-7 applications to the exceptions at the same time.

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:

  1. Open Settings β†’ Notifications and Status bar β†’ Notification management.
  2. Find the right app in the list.
  3. Make sure to allow notifications and show as priority active switches.
  4. 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.

  1. Add only battery exceptions, ignoring auto-run. β†’ Solution: check all three settings (battery, auto-run, lock in memory).
  2. Do not update settings after resetting your phone. β†’ Solution: After Hard Reset or MIUI update, all exceptions are reset!
  3. Fix too many applications in memory. β†’ Solution: leave in lock only the most important programs (messenger, navigators).
  4. 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!

Can I add system applications (such as Mi Home) to the exceptions?
Yes, but it does require developer mode. Standard settings often hide system programs from manual optimization. Turn on Developer's and find the option to Not Optimize, which will show all applications, including system applications.
Why does the application still close after adding to the exception?
Probable causes: πŸ”‹ Lack of RAM (check in Settings) β†’ The phone. β†’ Memory). πŸ”„ Power saving mode is enabled (turn off in Settings) β†’ Battery). πŸ“± The app is not added to all three categories of exceptions (battery) + self-start + Also on some models (POCO, Redmi Note: Additional restrictions apply – try to disable Memory Cleanup in security settings.
How to add multiple applications to the exceptions?
Unfortunately, MIUI doesn't have a mass-added feature, but you can speed up the process: Use a settings search (magnifying icon) to quickly find the right applications. Enable developer mode and turn off optimization for all applications at once (not recommended for weak devices). Install third-party software like MIUI Optimization (requires root rights).
Will the exceptions work after the MIUI update?
No warranties. Large upgrades (e.g., MIUI 13 to MIUI 14) reset all settings. After the update: Check the exception list in Settings β†’ Battery. Update autorun permissions. Re-enable important applications in memory. If new features (e.g., Smart Optimization in HyperOS) are added after the update, they also need to be manually configured.
Can I turn off battery optimization completely?
Technically, yes, but it's highly discouraged: ⚑ Increase battery consumption by 20-40%. 🐒 Slowing down the system due to background overload. πŸ”₯ Overheating of the device during heavy use. It is better to add only the necessary applications (messengers, banking programs, navigators) to the exceptions).