Background mode on Xiaomi: how to allow applications to work in the background without restrictions

Why Xiaomi Apps Close in the Background and How to Fix It

Xiaomi smartphone owners often face a problem: messengers stop showing notifications, music players stop when the screen is locked, and navigators lose connection after a few minutes. MIUI, It's a system that forcibly closes applications in the background, but it can be fixed!

Unlike pure Android, where the background of applications is regulated flexibly, Xiaomi by default limits the activity of programs to save power, this applies even to popular services like WhatsApp, Telegram or Google Maps. In this article, we will discuss all the ways to adjust the background mode, from basic to hidden functions for power users.

It is important to understand that fully unlocking the background work can affect the autonomy of the device. However, for critical applications (navigation, messengers, fitness trackers), such sacrifices are justified. MIUI Xiaomi models.

Method 1: Allowing Auto-Run of the Application

The first step to stable background work is to enable auto-start for the desired application, which allows the program to automatically start when the device is restarted and run in the background without additional user actions.

Instructions for MIUI 12/13/14:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select the desired application (for example, Viber or Yandex.Navigator).
  3. Slip on Autostart and activate the switch.
  4. Go back and turn on the Allow Background Activity option (if available).

On the old versions. MIUI (up to 12th path may differ: Settings โ†’ Permits โ†’ Auto-run, where you need to manually switch on for each application.

Selected the correct application (not system)

Auto-start enabled in security settings

There are no limitations in the "Battery Optimization"

The app has been updated to the latest version-->

After activating auto-start, the application will be able to:

  • ๐Ÿ“ฑ Start automatically after restarting the phone
  • ๐Ÿ”” Get push notifications without delay
  • ๐Ÿ”„ Update data in background (for example, weather or exchange rates)

๐Ÿ’ก

If the "Out-Open" item is not in the app menu, check the security settings: Settings โ†’ Confidentiality โ†’ Special permits โ†’ Auto-start.

Method 2: Disabling Battery Optimization

Battery optimization is the main reason Xiaomi is shutting down apps, which analyzes the activity of programs and limits them from the background if they are not actively used.

How to do this:

  1. Go to Settings โ†’ Battery and Performance โ†’ Battery Consumption Management.
  2. Select No Limits mode (or High Performance on newer versions).
  3. In the Battery Optimization section, find the application you want and set the status for it without restrictions.

Nana MIUI 14 Ways May Look Like This: Settings โ†’ Battery โ†’ Battery settings โ†’ Optimizing the battery โ†’ All applications.

Optimization modeImpact on background workRecommendations
No restrictions.Maximum background activityFor navigators, messengers, fitness trackers
Optimized.Restrictions after 30 minutes in the backgroundFor most applications
Strict optimizationClosing through 5-10 mines of inactivityOnly for rarely used programs

Note: on some models (e.g. Redmi Note 10 Pro or POCO X3 Pro) after optimisation is disabled, it may be necessary to restart the device for the changes to take effect.

Redmi Note 11/12

POCO X4/X5

Mi 11/12/13

Redmi 10/9

Another model-->

Method 3: Fixing the application in multitasking

If the application needs to work in the background constantly (for example, the navigator during the trip), it can be fixed in the multitasking menu.

How to fix the application:

  1. Open the application you want (like Google Maps).
  2. Click on the square button (multitasking menu).
  3. Swipe down the application card - a lock icon will appear.
  4. Slip the icon to lock the application.

Fixed annexes:

  • ๐Ÿ“ Not closed during cleaning RAM
  • ๐Ÿ”’ They remain active even when the screen is blocked.
  • โšก Continue to consume the battery in the background

This method is particularly useful for:

  • ๐ŸŽต Music Players (Spotify, VK Music)
  • ๐Ÿ—บ๏ธ Navigators (Yandex.Navigator, Google Maps)
  • ๐Ÿ“Š Fitness trackers (Strava, Nike Run Club)
What to do if the lock icon does not appear?
On some models (e.g. Redmi) 9A) The fixing function is disabled by default. To activate it: 1. Enable Developer Mode (7 times tap the version). MIUI in the phone settings. 2. Go to Settings โ†’ Additionally. โ†’ For developers. 3. Find the Fixing option and turn it on. Then the lock icon will appear in the multitasking menu.

Method 4: Configure permissions for notifications

Often the problem with background work is not the application itself, but the notifications blocking, so even if the program is running in the background, the system can hide its alerts, and to avoid this, you need to check the notification settings.

Step-by-step:

  1. Open Settings โ†’ Notifications and Status bar โ†’ Notification management.
  2. Select the application you want (such as Telegram).
  3. Activate Switches: Allow notifications to show as pop-up Sound and Vibration (optional)

Categories of notifications

Communications

For Android. 12+ (Xiaomi 12/13) Add the application to Priority Notifications:

  1. Press the notification from the desired application.
  2. Choose Priority or Always Show.

Step-by-step:

  1. Connect your phone to your PC and open the command line (cmd on Windows).
  2. Enter the command to check the connection: Adb devices must appear serial number of your device.
  3. To disable optimization for a specific application (e.g. com.whatsapp), do: adb shell dumpsys deviceidle whitelist +com.whatsapp
  4. To completely disable battery optimization (not recommended!): adb shell dumpsys battery set level 100 adb shell dumpsys battery reset adb shell dumpsys deviceidle force-idle

Warning: The command dumpsys deviceidle force-idle can cause accelerated battery discharge. Use it only for testing!

After the commands have been applied:

  • โœ… Apps will not be closed in the background
  • โšก Increased battery consumption (by 10-30% depending on the number of applications)
  • ๐Ÿ”„ It may need to be rebooted.
adb shell dumpsys deviceidle whitelist -com.whatsapp

(Replace com.whatsapp with your app package).-->

Method 6: Alternative solutions for specific applications

Some programs have their own settings for working in the background, which do not depend on the system parameters of Xiaomi.

For instant messengers (Telegram, WhatsApp, Viber):

  • ๐Ÿ”„ Enable Auto-Update Chats in the App Settings
  • ๐Ÿ”” Activate Permanent Notifications (in Telegram: Settings) โ†’ Notifications โ†’ Others โ†’ Permanent notification)
  • ๐Ÿ“ถ Allow Background Data Transfer (in mobile network settings)

For navigators (Google Maps, Yandex.Navigator):

  • ๐Ÿ—บ๏ธ Enable Traffic Saving Mode (in the app settings)
  • ๐Ÿ“ Allow Permanent Location Determination (Settings) โ†’ Confidentiality โ†’ Permits โ†’ Location)
  • ๐Ÿ”‹ Turn off optimization by GPS battery-setting

For music players (Spotify, YouTube Music):

  • ๐Ÿ“ฑ Lock the application in multitasking (see Method 3)

For applications with background services (e.g., Zello, Walkie-Talkie) additional settings may be required: โ†’ Annexes โ†’ Special access โ†’ Work with notifications where you need to manually allow access.

How to find out the batch name of the application for ADB?
1. Install the App Inspector app from Google Play. 2. Open it and find the app you want in the list. 3. Copy the value from the Package Name field (e.g. com.whatsapp for WhatsApp). 4. Use that name in the ADB-team.

Frequent Mistakes and How to Avoid Them

When setting up the background, users often make mistakes that negate all efforts, and let's take a look at some of the most common ones.

โš ๏ธ Warning: If you have manually enabled Battery Saving Mode (via the notification panel), all background settings will be ignored by the system.

Error 1: Unrevised version MIUI

On older versions of the shell (for example, MIUI 11) some settings may not be available or may not work properly. Before setting up, check for updates: Settings โ†’ The phone. โ†’ Updating the system.

Mistake 2: Conflict with Security

Xiaomiโ€™s Security app has its own optimization mechanisms to disable them:

  1. Open Security. โ†’ Optimization.
  2. Push the gear (โš™๏ธ) top-corner.
  3. Turn off Auto Cleanup and Deep Optimization.

Mistake 3: Wrong Permissions for Android

Android 10.+ You need additional permits for background work:

  1. Settings โ†’ Annexes โ†’ Permits โ†’ Additionally. โ†’ Access to notifications
  2. Settings โ†’ Confidentiality โ†’ Permits โ†’ Auto-start
  3. Settings โ†’ Special facilities โ†’ Applications without restrictions

Error 4: Use of "Cleaners" RAM"

Apps like Clean Master or DU Speed Booster aggressively closes the background processes:

  • Remove them or add the necessary applications to exceptions
  • Turn off autocleaning in their settings

If after all the manipulations the application is still closed, try:

  • ๐Ÿ”„ Reinstall it.
  • ๐Ÿ“ต Check if the antivirus is blocking it.
  • ๐Ÿ”‹ Reset the battery settings (Settings) โ†’ Battery โ†’ โ‹ฎ โ†’ Reset the settings)

FAQ: Answers to Frequent Questions

Why do applications close in the background again after the MIUI update?
Large updates (e.g. with the MIUI 13 on MIUI 14) some optimization settings are reset. After the update: Check Autorun for critical applications Reset battery settings (Settings) โ†’ Battery โ†’ โ‹ฎ โ†’ Reset the device If the problem remains, reset the background mode (see Method 2).
How do I know which apps are closing in the background?
Use: Built-in Tools: Settings โ†’ Battery โ†’ Battery usage โ€” you can see which applications have been stopped by the system. Third-party utilities: Greenify (shown closed processes) or AccuBattery (analyzes battery consumption by application). System logs: through ADB-command adb shell dumpsys activity recents (for power users).
Can I turn off battery optimization completely?
Technically, yes, but it's highly discouraged: โšก Increased battery consumption 30-50% ๐Ÿข Slowing down the device due to background overload ๐Ÿ”ฅ Overheating of the smartphone with a long load It is better to add only critical applications to the exceptions (3-5 piece).
Why not? POCO The background mode works differently than on Redmi?
Smartphones POCO (for example, POCO X4 pro POCO F4) use a modified version MIUI for POCO, where: ๐Ÿ”ง Some of the optimization settings moved to Settings POCO โšก Performance modes are more aggressive by default ๐Ÿ“ฑ There is an additional Turbo-mode for games To configure the background mode on POCO: Use standard methods (see Method) 1-3) Check the Settings. POCO โ†’ Optimizing for additional limitations
How to return the standard settings if ADB-The phone began to discharge faster?
If, after use, ADB (see method 5) Reset the battery settings: adb shell dumpsys battery reset Remove applications from the white list of optimization: adb shell dumpsys deviceidle whitelist -com.package.name (Replace com.package.name to your app name) Reboot your device Return Battery Optimization Mode to Balanced (Settings) โ†’ Battery) If the problem has not disappeared, reset to factory settings (pre-saving data).