Working in the background on Xiaomi: how to turn on and configure correctly

Xiaomi MIUI-based smartphones are known for aggressive battery optimization, which often blocks the background of applications from messengers to fitness trackers. Users face problems: notifications come with a delay, music is interrupted when the screen is locked, and geolocation is turned off in the background. In this article, we will analyze how to turn on the background for Xiaomi for any application, bypassing the limitations of the system, and what settings are responsible for stable background activity.

It's important to understand that MIUI doesn't just kill apps, it uses a layered resource management system. Even if you add an app to an exception, it can be constrained by automatic power saving rules, restrictions on new applications, or global performance settings. We'll analyze all possible pitfalls and propose solutions relevant to MIUI 12-14 (including HyperOS for new models).

Why Xiaomi is blocking the background of applications?

MIUI is designed to maximize battery life, and it uses:

  • ๐Ÿ”‹ Adaptive Battery Optimization โ€“ Analyzes user habits and limits rarely used applications.
  • โšก Ultra-low power mode โ€“ automatically activated at low charge (less than 15%).
  • ๐Ÿšซ Auto-start blocking for new applications (requires manual permission).
  • ๐Ÿ”„ Background process limitation โ€“ by default allows you to work in the background of no more than 3-4 applications at the same time.

For example, if you installed Telegram and didnโ€™t set up exceptions for it, the system can pause it 10-15 minutes after going into the background, the same goes for Google Maps, Spotify or Shagomer โ€” without the right settings, they will only wake up when the screen is unlocked.

๐Ÿ“Š What apps are most often blocked in the background on your Xiaomi?
Messengers (Telegram, WhatsApp)
Social networks (Vkontakte, TikTok)
Navigators (Google Maps, Yandex.Maps)
Music Services (Spotify, VK Music)
Fitness trackers (Google Fit, Mi Fit)
Others

Method 1: Auto-Run permission for an application

The first step is to unlock auto-run for the application, without which it cannot start automatically after restarting or clearing the memory.

Instructions:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select the app you want (such as WhatsApp).
  3. Slip on Autostart and turn on the switch.
  4. Go back and check the Permissions section โ€“ give access to notifications, geolocation (if required) and auto-start.

โš ๏ธ Note: On some models (Redmi Note 12, POCO X5) Autostart may be hidden behind an additional menu. If it is not in the main settings of the application, try the path: Settings โ†’ Battery and productivity โ†’ Battery management โ†’ Choice of applications.

โ˜‘๏ธ Checklist for auto-start

Done: 0 / 4

Method 2: Configure the battery mode ("Without restrictions")

MIUI offers three power modes for each application:

  • ๐Ÿ”‹ Without restrictions โ€“ maximum freedom (recommended for messengers and navigators).
  • โšก Optimized โ€“ Balance between performance and savings (by default).
  • ๐Ÿšซ Strict restrictions โ€“ the app will be suspended after 5-10 minutes in the background.

To change the regime:

  1. Go to Settings โ†’ Battery and Performance โ†’ Battery Management.
  2. Select App Selection (or Battery Settings for Apps on Newer Versions).
  3. Find the desired application and set the "No Limits" mode.
Battery modeWorking hours in the backgroundSuitable for
No restrictions.Unlimitedly.Messengers, Navigators, Music Players
Optimized30-60 minutesSocial networks, email clients
Strict restrictions5-10 minutesGames that are rarely used utilities

๐Ÿ’ก Tip: If you don't find an app on the list, it hasn't manually run yet. Open it at least once so it appears in the battery settings.

Method 3: Disabling adaptive battery optimization

MIUI uses machine learning algorithms to guess which apps you don't need, sometimes these algorithms get wrong, to turn off adaptive optimization.

  1. Go to Settings โ†’ Battery and Performance โ†’ Adaptive Battery Optimization.
  2. Turn off the adaptive optimization slider.
  3. Go back and open the Background Limits โ€“ add the right apps to the exceptions.

โš ๏ธ Caution: Disabling adaptive optimization can reduce battery life by 10-15%. Use this method only if other methods have not helped.

What to do if there is no โ€œAdaptive Optimizationโ€ item?
Some of the firmware (e.g., the global version) MIUI for POCO F4) This item may be called Smart Optimization or Scheduled Optimization. If it's not available at all, try resetting the battery settings: Settings โ†’ Battery โ†’ โ‹ฎ (menu) โ†’ Reset the battery settings.

Method 4: Blocking an application in multitasking

If the application often flies out of the background, it can be fixed in multitasking, which will prevent automatic memory cleaning:

  1. Open recent applications (swipe up with a delay).
  2. Find the right application and make a long tap on his card.
  3. Select Secure (icon) ๐Ÿ“Œ).

๐Ÿ”น Limitations:

  • ๐Ÿ”ธ You can fix no more than 3-5 applications at the same time (depending on the model).
  • ๐Ÿ”ธ After rebooting the smartphone, the fixing is reset.
  • ๐Ÿ”ธ It does not work for system processes (e.g. Google Play Services).

๐Ÿ’ก

If the app doesnโ€™t appear in the recent list, try opening it first, then folding it (without closing it!) and trying to fix it again.

Method 5: Use ADB-deep-tuning commands

For advanced users, there is a way to completely disable optimization for a particular application through ADB. This is true if standard settings donโ€™t help (for example, for Pokรฉmon GO or Background Apps Restarter).

Instructions:

  1. Install. ADB-PC drivers.
  2. Enable USB debugging on your smartphone: Settings โ†’ About Phone โ†’ MIUI version (tap 7 times), then Settings โ†’ Additional โ†’ For Developers โ†’ Debugging over USB.
  3. Connect your phone to your PC and execute the command: adb shell dumpsys deviceidle whitelist +com.example.app (replace com.example.app with your applicationโ€™s batch name, for example, org.telegram.messenger).

๐Ÿ“Œ Where to find a packet name?

Install the App Inspector app from Google Play or use the command:

adb shell pm list packages | grep "appendix name"

๐Ÿ’ก

ADB-commands are reset after resetting settings or updating MIUI. To keep the changes, use the adb shell cmd deviceidle enable command after each restart.

Common mistakes and their solutions

Even after all the settings, the applications may not work properly.

  • โŒ Notifications don't come in. โ†’ Check notification permissions in Settings โ†’ Notifications โ†’ Management of notifications.
  • โŒ The application closes when the screen is blocked โ†’ Disable Memory Cleanup When Locked in Settings โ†’ Lock screen โ†’ Additionally.
  • โŒ Geolocation shuts down in the background โ†’ Enable the exact geolocation mode in the application settings.
  • โŒ Music interrupts โ†’ In the battery settings for the player, select "No Limits" and disable Sound Optimization in the background.

โš ๏ธ Note: On HyperOS smartphones (such as Xiaomi 14), the path to settings may be different.Look for similar items in the Settings section โ†’ Annexes โ†’ Special access.

FAQ: Frequent questions about background work on Xiaomi

๐Ÿ”น Why After Updating MIUI All background settings have been dropped?
Large updates (e.g. with the MIUI 13 on MIUI 14) the system resets custom optimization settings. You have to reset: Allow autoruns for the desired applications, set battery modes, add applications to the exceptions of adaptive optimization. If the update came "over the air" (OTA), Try resetting the battery settings in Settings โ†’ Battery โ†’ โ‹ฎ โ†’ Reset the settings.
๐Ÿ”น How to check if the application works in the background?
There are a number of ways: ๐Ÿ“ฑ Use it. ADB-Adb shell dumpsys activity activities | grep "mFocusedApp" (shows the current active application). ๐Ÿ” Install Background Apps Restarter from Google Play โ€“ it monitors background processes. ๐Ÿ“Š Check the battery log: Settings โ†’ Battery โ†’ Battery utilization โ†’ โ‹ฎ โ†’ History of use.
๐Ÿ”น Can you turn off battery optimization completely?
Technically, yes, but it's highly discouraged: โšก Increase battery consumption by 20-30%. ๐Ÿ”ฅ Overheating of the processor in multitasking. ๐Ÿข Slowing down the system due to overloading with background processes, it is better to add only critical applications (messengers, navigators) to the exceptions).
๐Ÿ”น Why Xiaomi doesnโ€™t have a HyperOS auto-start clause"?
In HyperOS (for example, on Xiaomi) 13T or Redmi K60) background settings moved to the Settings section โ†’ Annexes โ†’ Special access โ†’ Auto-start. Also check: ๐Ÿ”น Settings โ†’ Battery โ†’ Battery Modes (select "Performance"). ๐Ÿ”น Settings โ†’ Confidentiality โ†’ Special permits โ†’ Continuous work in the background.
๐Ÿ”น What applications can not be added to the exceptions?
Some system processes may conflict when optimizing is disabled: ๐Ÿšซ com.miui.securitycenter (Security Center). ๐Ÿšซ com.android.systemui (System Interface). ๐Ÿšซ com.google.android.gms (Google Play Services) can lead to unstable system operation, interface errors or inability to update applications.