How to allow the application to work in the background on Xiaomi: full instructions

Why Apps Are Shutting Down on Xiaomi and How to Fix It

Xiaomiโ€™s MIUI-based smartphones are known for aggressive power optimization. The system automatically closes the background processes to save battery power โ€“ this applies to instant messengers (Telegram, WhatsApp), music players (Spotify, Yandex Music), fitness trackers and even system utilities. As a result, you do not receive notifications on time, music is interrupted, and geolocation in the navigators will โ€œhangโ€ 5 minutes after locking the screen.

The problem is compounded with each new version of MIUI (especially MIUI 13/14), where optimization algorithms have become even stricter. Even if you manually open an application, the system can force it to "sleep" in a few minutes. The solution is: you need to disable the restrictions for specific applications in several settings menus. It is important to understand that there is no universal switch "allow background work" - you have to adjust each setting separately.

In this article, we will discuss all the ways, including hidden MIUI settings, which are not obvious even to experienced users, instructions are relevant for the Redmi Note 12/13, POCO X5/F5, Xiaomi 13/14 and other devices on MIUI 12-14 (including global and Chinese firmware).

Method 1: Allowing Auto-Run of the Application

The first step is to add an application to the autorun list, without which the system will block it from starting after restarting or cleaning the memory, and finding this setting is not always easy: the path to the menu changes in different versions of MIUI.

How to turn on autostart:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select the app you want (like Viber or Google Maps).
  3. Slip on AutoRun (in some firmware it is hidden under Permissions or Additional).
  4. Activate the Autostart Switch.

If AutoRun is not in the app menu, try an alternative path:

  • ๐Ÿ” Settings โ†’ Battery and productivity โ†’ Battery consumption management (in) MIUI 14).
  • ๐Ÿ” Settings โ†’ Special facilities โ†’ Battery Optimization (in older versions).
  • ๐Ÿ” Use the search by settings (the magnifier icon at the top of the screen) and type โ€œautostartยป.

App added to auto-start list|Switch active (blue/green)|No warnings about restrictions|App not removed from battery optimizationยป-->

Important: B MIUI 14 for European firmware (EEA) The auto-start menu may be hidden. ADB-Team (section 5 of this article).

Method 2: Disabling Battery Optimization

Even with auto-run enabled, the system can put the application to sleep through battery optimization, which is a mechanism that forces the background processes to close if they are not actively used, to turn it off:

Instructions for MIUI 12-14:

  1. Go to Settings โ†’ Battery and Performance โ†’ Battery Consumption Management.
  2. Select No Limits mode for the desired application (or High Performance in MIUI 14).
  3. If the app is not in the list, tap Select apps and add it manually.

In older versions (MIUI 11 and below), the path is different:

  • ๐Ÿ”‹ Settings โ†’ Battery โ†’ Optimizing the battery.
  • ๐Ÿ”‹ Click All Apps โ†’ find out โ†’ Choose Without Limitations.

MIUI 14|MIUI 13|MIUI 12|MIUI 11 or older |I don't know-->

In MIUI 14, the battery optimization menu for China ROM can be called โ€œEnergy Savingโ€ () and require manually adding applications to the whitelist.

โš ๏ธ Warning: Disabling battery optimization for all applications will reduce battery life by 15-30%.We recommend configuring only mission-critical services (messengers, navigators, fitness trackers).

Method 3: Blocking an application in multitasking

MIUI automatically clears background processes when the screen is locked or when memory is scarce, and to prevent this, you can attach the application to the multitasking bar:

How to block the application:

  1. Open an app (such as YouTube Music).
  2. Click the Recent Apps button (square or swipe up with a delay).
  3. Swipe down on the application card (or tap on the icon) ๐Ÿ”’, if there is).
  4. The application will be marked with a lock - now it will not be closed even by a "memory cleaner".

Limitations of the method:

  • ๐Ÿšซ It only works while the application is open in the background (after closing, the lock is reset).
  • ๐Ÿšซ V MIUI 14 maximum number of blocked applications โ€“ 3.
  • ๐Ÿšซ Not helpful for notifications (e.g., Telegram may still not notify you of new messages).

๐Ÿ’ก

If the badge ๐Ÿ”’ No multitasking in the panel, include it in Settings โ†’ System system โ†’ Gestures โ†’ Panel of recent applications โ†’ Apps fastened (not available on all models).

Method 4: Configure permissions for background work

Some apps (like Google Maps or Guardian) require additional permissions to work in the background, without which they will not be able to use geolocation, microphone or camera when the screen is off.

How to check permissions:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select the application โ†’ Permits.
  3. Make sure it's on: ๐Ÿ“ Location (for navigators). ๐ŸŽค Microphone (for voice assistants). ๐Ÿ“ธ Camera (for scanners) QR-code). ๐Ÿ”” Notifications (for messengers).

Additionally.

Background activity

Auto-start

For applications with geolocation (for example, Yandex.Maps) you also need:

  • ๐ŸŒ Include High Accuracy in Settings โ†’ Location โ†’ Regime.
  • ๐Ÿ”„ Disable Traffic Savings for this Application (in Settings) โ†’ SIM-maps and mobile networks).
AnnexWhat permits are neededAdditional settings
Telegram/WhatsAppNotifications, Auto Start, Background ActivityDisable battery optimization
Google Maps/Yandex.NavigatorLocation, Background Activity, AutoRunEnable โ€œHigh Accuracyโ€ in Location Settings
Spotify/Yandex MusicAutostart, Background activityBlock in multitasking
Shagomery/Google FitPhysical activity, Autostart, Background activityDisable battery optimization + add to "No restrictions"

Method 5: ADB-Teams for Advanced Users

If the standard settings do not help (especially on the MIUI 14 EEA), can be used ADB-This method requires a computer and basic knowledge of how to work with optimization. ADB.

Step-by-step:

  1. Download Platform Tools (or Minimal ADB and Fastboot)
  2. Turn on USB Debugging on your phone (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 commands in cmd (replace com.example.app with your app package, such as org.telegram.messenger): adb shell dumpsys deviceidle whitelist +com.example.app adb shell cmd appops set com.example.app RUN_ANY_IN_BACKGROUND allow adb shell cmd appops set com.example.app RUN_IN_BACKGROUND allow

How to find out the application package:

  • ๐Ÿ“ฑ Use the App Inspector app (available on Google Play).
  • ๐Ÿ–ฅ๏ธ Or run the command: adb shell pm list packages | grep "appendix name"
List of packages of popular applications
Telegram: org.telegram.messenger WhatsApp: com.whatsapp Viber: com.viber.voip Google Maps: com.google.android.apps.maps Spotify: com.spotify.music Yandex.Maps: ru.yandex.yandexmaps Yandex.Navigator: ru.yandex.yandex.yandexnavivi

โš ๏ธ Attention: After update MIUI ADB-Repeat the procedure after each major update, and don't use these commands for all applications, which will overheat and quickly drain the battery.

Method 6: Alternative solutions

If none of these methods worked, try:

  • ๐Ÿ”„ Resetting the application settings: Settings โ†’ Annexes โ†’ Select an application โ†’ Warehouse โ†’ Clear the data (after that you will have to re-enter the account).
  • ๐Ÿ“ฑ Retrace to the old version MIUI: In some cases (e.g. on the POCO F3) transition MIUI 14 on MIUI 13 solves the problem with background processes.
  • ๐Ÿ› ๏ธ Brush firmware: LineageOS or Pixel Experience-based firmware doesnโ€™t have aggressive Xiaomi optimization, but requires unlocking the bootloader.
  • โšก Alarm apps: Utilities like Don't Kill My App! or Greenify (in Boost mode) help manage background processes.

For POCO owners: Some models (POCO X3 Pro, POCO F4) have a hidden Game Turbo menu that interferes with background work. Turn it off in Settings โ†’ Special Features โ†’ Game Turbo.

๐Ÿ’ก

If the problem occurs after the MIUI update, check the error logs in Settings โ†’ About Phone โ†’ Feedback Log. Often it tells you which restriction the application is blocking.

FAQ: Frequent questions

Why does the app still close after setting up?
Probable causes: ๐Ÿ”‹ Battery ultra-savings enabled (Settings) โ†’ Battery โ†’ Regimes). ๐Ÿงน The memory cleaner is working (Settings) โ†’ Annexes โ†’ Cleanup โ†’ turn off automatic cleaning). ๐Ÿ”’ App added to the limited list (Settings) โ†’ Battery โ†’ Optimizing the battery โ†’ Restricted apps. Check all three and restart your phone.
How do I know which app is draining the battery in the background?
Go to Settings โ†’ Battery โ†’ Battery Use. Slip on a graph and select Background Consumption. Here you will see apps that are actively in the background. If there is not one of them (for example, Telegram), then its background work is blocked.
Can I turn off battery optimization for all applications at once?
Technically, yes, but it's highly discouraged: โšก Fast battery discharge (30-50% faster). ๐Ÿ”ฅ Processor overheating. ๐Ÿข Slowing down the system due to overloading with background processes, it is better to configure only those applications that are really needed (messengers, navigators, fitness trackers).
Why is Xiaomi not getting notifications from VK/Instagram?
The problem is typical of MIUI 13/14 because of the push notification lock. Solution: Open Settings โ†’ Notifications โ†’ Notification Management. Find an app (VK or Instagram) and turn on all the switches. In Notification Categories, activate Sound, Vibration and Pop-ups. Turn off Adaptive Notifications in Settings โ†’ Notifications โ†’ Additional.
How to return standard optimization settings?
If after the experiments the phone began to discharge too quickly, reset the settings: Go to Settings โ†’ Battery and productivity โ†’ Battery management. Tap three points (โ‹ฎ) in the top corner, and select Reset. Or do it. ADB-Adb shell dumpsys deviceidle whitelist -com.example.app (Replace com.example.app with the app package).