How to make the application work in the background on Xiaomi without restrictions

Xiaomi’s MIUI-based smartphones are known for aggressive battery optimization, which often blocks application backgrounds. Users face problems: messengers don’t send notifications, activity trackers lose data, music players are interrupted when the screen is locked, and the reason lies in energy-saving algorithms that by default limit program activity in the background.

In this article, you will find the most current ways to unlock background work for any application on Xiaomi, Redmi and POCO devices (including the models from 2023-2026).We will look at both the standard settings of MIUI 14 and hidden settings for power users. Importantly, some methods require ADB or root access rights, which we will highlight separately.

The problem is compounded by the fact that after the system updates, the settings can be reset, so we will also tell you how to fix the parameters and prevent automatic background activity shutdown. All instructions are tested on the latest firmware versions and adapted to new models such as Xiaomi 14, Redmi Note 13 Pro+ and POCO F6.

πŸ“Š What Xiaomi model do you use?
Xiaomi 13/14 Series
Redmi Note 12/13
POCO F5/X5
Old model (until 2022)
other

Why Xiaomi is blocking the background of applications

The MIUI shell uses Battery Optimization, which automatically pauses applications when they are not active on the screen, which is designed to save charge but often interferes with the normal operation of services.

  • πŸ”‹ Aggressive Power Saving Mode – Default on for all applications except system.
  • 🚫 Restriction of auto-start β€” MIUI Blocks the automatic launch of applications after restarting.
  • ⚑ Optimization MIUI β€” background processes are killed after 5-10 minutes without activity.
  • πŸ“± Features of the iron platform - on budget models (Redmi) 12C, POCO M6) Restrictions are tighter due to a weak processor.

Interestingly, even popular messengers like WhatsApp or Telegram may not receive notifications unless they are configured correctly, for example, MIUI 14 adds a new Intelligent battery saving mechanism that analyzes user behavior and even more actively suspends β€œunnecessary” processes.

The manufacturer argues that 80% of users do not notice the difference, and the battery lasts 15-20% longer, but for those who actively use background services (for example, Google Fit for tracking steps or Spotify for music), such optimizations become a problem.

πŸ’‘

Before setting up, check the MIUI version in Settings β†’ About Phone. On new firmware (14.0.5+), the path to some menus may be different.

Method 1: Disabling battery optimization for an application

This is a basic method that works on all versions of MIUI (12 to 14) and removes most of the restrictions, but does not guarantee 100% stability – some applications can still pause after a long time without activity.

Instructions:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Select the desired application (for example, Viber or SberBank Online).
  3. Use the battery optimization (or energy consumption in newer versions).
  4. Choose Unlimited (or Unoptimized)
  5. Confirm the action by pressing Ready.

After that, the application will be able to run in the background longer, but for complete stability, it is recommended to also enable auto-run (see the next section).

What if there is no Battery Optimization?
On some models (e.g. Redmi) 10A) This item is hidden. ADB-Adb shell dumpsys deviceidle whitelist +com.package.name Where com.package.name is the application ID (you can find out through the App Inspector in the Play Market).

Method 2: Enabling Autostart and Background Activity

Even after the battery optimization has been turned off, the app may not start automatically after the phone has restarted. To fix this, you need to manually allow auto-start and background activity.

Step-by-step:

  • πŸ“± Go to Settings. β†’ Annexes β†’ Application management.
  • πŸ” Select a targeted application (e.g. Google Maps for location tracking).
  • πŸ”„ Slip on Autostart and turn on the slider.
  • πŸ–₯️ Go back and select permissions. β†’ Background activity (or additionally) β†’ Background on MIUI 14).
  • πŸ”˜ Activate all available switches (e.g. Allow background activity, Show notifications).

On some firmware (e.g., POCO X5 Pro), the path may be different: Settings β†’ Special Features β†’ Special Permissions β†’ AutoRun.

Important: After Update MIUI These settings can be reset. To fix them, use ADB-Teams (see section for advanced users).

Auto-start on.|Battery optimization is offline|Background activity permitted|Notifications are not blocked by the system-->

Method 3: Add to Secure Applications (MIUI 12–14)

Secure applications allow you to select programs that will not be killed by the system even if you don’t have enough memory, which is especially useful for navigators (Yandex.Navigator, Google Maps) and music players.

How to add an application to protected:

  1. Open the Settings β†’ Applications.
  2. Slip three dots in the top right corner and select Special Access (or Additional on newer versions).
  3. Select Secure Applications (some models call this item Cleanup Lock).
  4. Turn on the slider for the desired application.

Limitation: You can usually add no more than 10-15 programs to the list of protected applications. If the desired application is not on the list, use ADB (see the next section).

Xiaomi modelMax. Number of secure applicationsThe path to adjustment
Xiaomi 13/1415Settings β†’ Applications β†’ Special Access β†’ Secure Applications
Redmi Note 12/1310Settings β†’ Applications β†’ Additional β†’ Cleaning Block
POCO F5/X512Settings β†’ Special. capabilities β†’ Application protection
Redmi 10A/10C8Settings β†’ Battery β†’ Battery Optimization β†’ Protected

Method 4: ADB-commands to completely disable restrictions (for experienced ones)

If standard methods don't work, you can use Android Debug Bridge (ADB) for deep tuning, which requires connecting your phone to your computer and enabling USB Debugging.

Step-by-step:

  1. Turn on Developer Mode: Go to Settings β†’ About Phone and tap 7 times on the MIUI version.
  2. Return to Settings β†’ Additional β†’ For developers and enable USB debugging.
  3. Connect the phone to your PC, install ADB drivers and open the command line.
  4. Enter the commands in turn: adb shell dumpsys deviceidle whitelist +com.package.name cmd appops set com.package.name RUN_ANY_IN_BACKGROUND allow cmd appops set com.package.name RUN_IN_BACKGROUND allow Replace com.package.name with your app ID (e.g. com.whatsapp for WhatsApp).

To massively disable optimization for all applications, use:

adb shell settings put global hidden_api_policy 1

⚠️ Warning: This team will unlock hidden API Android, which can disrupt system stability. Use only if standard methods don't work.

After completing the commands, restart the phone. The effect persists even after the MIUI updates, unless you do a reset.

πŸ’‘

ADB-commands are the most reliable way, but they require technical skills. For most users, the standard settings from sections 1 to 3 are enough.

Method 5: Use of third-party utilities (without root rights)

If you are uncomfortable with ADB, you can use specialized applications from Google Play, which automate the process of setting up the background work, but require special permissions.

Top.-3 tested:

  • πŸ› οΈ MIUI Optimization Disabler – Disables energy-saving algorithms MIUI No root licenses.
  • πŸ”§ AutoStart - manages application auto-launch and clean-up lock. MIUI 14.Reference.
  • ⚑ Battery Optimizer – allows you to flexibly configure optimization for each application separately.

How to use:

  1. Install the utility from the Play Market.
  2. Provide access to Special Opportunities (in your phone settings).
  3. Select applications for which you want to disable restrictions.
  4. Apply the changes and restart the phone.

⚠️ Note: Some utility (for example, MIUI Optimization Disabler may cause conflicts with system services.

Problem Solving: What to Do When Nothing Helps

If after all the manipulations the application is still suspended, check the following points:

  • πŸ”„ Update. MIUI β€” In newer versions of firmware, bugs with background work are often fixed. Check the updates in Settings β†’ The phone. β†’ Updating the system.
  • πŸ“΅ Check notification settings - sometimes the problem isn't the background work, but blocking notifications. β†’ Notifications β†’ Application settings.
  • πŸ”‹ Turn off the super-aggressive battery mode - in Settings β†’ Battery. β†’ Battery mode select Performance instead of Energy saving.
  • πŸ› οΈ Reset the application settings - in Settings β†’ Annexes β†’ [select the application] β†’ Storage click Clear Data and Reset Settings.

If the problem persists, it may be the app itself that is to blame, for example, some versions of VK or Instagram have bugs with background work on Android 13/14, in which case only waiting for an update from the developer will help.

For diagnosis, use ADB Logcat:

adb logcat | grep "com.package.name"

This will show the application logs and help to identify the reason for the suspension.

FAQ: Frequent questions about background work on Xiaomi

πŸ”Ή Why After Updating MIUI squandered background settings?
Large updates (e.g. with the MIUI 13 by 14) the system resets the custom battery optimization settings, to prevent conflicts with new energy saving algorithms, to avoid problems, after updating, reset autorun and disable optimization for critical applications. If updates occur frequently, use them. ADB-Commands (Section 4) – They retain their effect even after updates.
πŸ”Ή Can you turn off battery optimization for all applications at once?
Yes, but it will significantly reduce battery life. ADB-Adb shell settings put global hidden_api_policy 1 After that, all applications can run in the background without restrictions, but we recommend using this method only for devices with battery. β‰₯5000 mAh (e.g. Redmi Note) 13 Pro+ or POCO M6 Pro).
πŸ”Ή Why is music in the Spotify/YouTube Music is interrupted when the screen is locked?
This is a typical problem for MIUI 14 on Android 13/14 devices. Solution: Turn off battery optimization for the player (section 2). Add it to Secure applications (section 3). In the player settings, enable Autoplay (if any). For YouTube Music, further disable Background Data Limitation in the app settings. If the problem persists, try alternative players like Poweramp or Musicolet - they are better adapted to work on Xiaomi.
πŸ”Ή How to check if the application works in the background?
There are several ways: Use ADB: adb shell dumpsys activity processes | grep "com.package.name" If the answer has a persistent string, the application is active. Install Background App Inspector from Play Market - it shows the status of background processes. For instant messengers, send a test message from another device and check if a notification has arrived. On MIUI 14 you can also see active processes in Settings β†’ Special. capabilities β†’ Activity Monitor.
πŸ”Ή Will these settings work for POCO redmi?
Yes, all of the described methods are applicable to all MIUI-based devices, including: POCO F5/F6/X5/X6 Redmi Note 12/13/13 Pro+ Redmi 12C/12R/13C Xiaomi 13T/14/14 Pro Exception - devices on POCO Launcher (e.g. POCO M6), where the path to some settings may differ. In such cases, use the search by settings (magnifying icon in the upper right corner).