The background of applications on Xiaomi smartphones is one of the most discussed topics among MIUI users. The fact is that aggressive battery optimization and strict restrictions on auto-start often lead to messengers stop showing notifications, activity trackers lose data, and music players suddenly stop. If you encounter such problems, this article will help you figure out how to properly configure background processes without harming autonomy.
Many people mistakenly think that it is enough to add an application to the list of βautoruns.β In fact, in MIUI 14/15, a whole range of settings is responsible for the background work, from battery resolutions to restrictions on the use of data in the background, we will go through all the necessary steps, including hidden developer options, and explain why some applications can still be blocked even after all the manipulations.
Itβs important to understand that background work and auto-run are different things: the former allows an application to perform tasks in hidden mode (like syncing email), and the latter allows it to automatically start when you turn on your smartphone. On Xiaomi, both of these parameters often need to be set separately.
If you are using the Redmi Note 12, POCO X5 Or the flagship Xiaomi 13 series, the instruction will fit all of these models β the only difference is the location of some menu items. MIUI for POCO We will have to take into account several nuances, which we will tell you separately.
Why Xiaomi is blocking the background of applications
The main reason for the strict restrictions is Xiaomiβs desire to maximize battery life. Unlike βpureβ Android, where background processes are controlled at the system level, MIUI adds its own layer of optimization, which leads to the fact that even popular applications like WhatsApp or Telegram can suddenly βfall asleepβ.
Here are the key mechanisms that affect background work:
- π Battery Optimization β The system automatically restricts the activity of applications that it believes are consuming too much power.
- π« Auto-Start Lock β By default, most applications cannot run on their own after rebooting the device.
- π΅ Background data limitation β MIUI It can block applications from accessing the Internet when they are running in hidden mode.
- β‘ Power saving mode - when activated, background activity is minimized.
Interestingly, on MIUI devices for POCO (like the POCO F5), some of the restrictions are less stringent than on standard Xiaomi smartphones, because the POCO line was originally positioned as βproductiveβ and less energy-saving.
Another important point is that after major MIUI updates (for example, when you switch from version 13 to version 14), all background settings are reset, so after the system upgrade, they will have to be configurated again.
Preparation: What to do before setting up
Before you start changing your parameters, follow a few preparatory steps to avoid errors and save time.
1. Update MIUI to the latest version. New builds often fix bugs related to background work. Check firmware relevance at Settings β About Phone β System Update.
2. Check the space. If the internal memory is less than 10%, the system can automatically block the background processes. Free up space through Settings β Memory.
3. Turn off the power saving mode. It radically restricts background activity. Path: Settings β Battery β Energy saving mode.
4. Remember the standard settings. If you notice a significant decline in autonomy after the change, you'll have to bring some parameters back.
βοΈ Preparation for background work setting
Pay special attention to applications that use constant data synchronization (for example, messengers, fitness trackers or cloud services), which will require maximum relaxation of restrictions.
Main settings: Auto-start and battery permissions
Letβs start with the basic parameters that are responsible for the ability of applications to work in the background, these options are available on all Xiaomi devices regardless of the model.
Step 1. Allow auto-start
- Open Settings β Applications β Application Management.
- Select the application you want (such as Telegram).
- Slip on Autostart and switch on the switch.
- In some versions of MIUI, this item may be called a Background Start.
Step 2: Turn off battery optimization
- Go to Settings β Battery β Battery Optimization.
- Select All Apps in the drop-down menu.
- Find the right app and tap on it.
- Choose Unlimited (or Unoptimized in older versions)
Step 3: Allow background activity
- Return to the application management menu (Settings β Apps β [select app]).
- Slip on the Permits. β Additionally.
- Turn on the switches: π Background activity πΆ Background data π Auto-start (if any)
On some models (e.g. Redmi 10 or POCO M4), the Background activity item may not be available, in which case it is replaced by the Allow Background Operation option in the Permissions section.
π‘
If the application doesn't work in the background after this manipulation, try reinstalling it, and sometimes resetting cache and data helps to reset the MIUI constraints.
Hidden settings: the developer's mode and ADB-team
If standard methods don't work, you'll have to use advanced tools. ADB-teams that can circumvent some of the limitations MIUI.
Activation of the developer mode:
- Open the Settings. β The phone.
- Tap 7 times on the MIUI version (you will receive a notification "You became a developer!").
- Go back to the basic settings and find a new section for developers.
In this section, we are interested in two parameters:
- π§ Do not disable background processes β limits aggressive completion of tasks.
- π Background Process Limitation β Set the Standard Limit or No Limits.
For the most persistent cases (for example, if MIUI persistently blocks Google Play Services), you will need to use ADB. Here is the key command that disables optimization for a particular package:
adb shell dumpsys deviceidle whitelist +com.example.appReplace com.example.app with a real app identifier (e.g. org.telegram.messenger for Telegram) and find out about the package through the App Inspector app or the APKMirror website.
How to find out the application package ID?
Attention! Using ADB requires connecting your smartphone to your PC and installing Platform Tools.The wrong commands can disrupt the stability of the system.
Features for different versions of MIUI
Background settings can vary significantly depending on the firmware version, and we've collected key differences for the most common builds.
| MIUI version | The path to auto-start | Optimizing the battery | Features |
|---|---|---|---|
| MIUI 12/12.5 | Settings β Applications β Management β Auto-Run | Settings β Battery β Selection of applications | There is no separate "Background Activity" switch |
| MIUI 13 | Settings β Applications β Management β Auto-Run | Settings β Battery β Battery Optimization | There is a paragraph "Deep optimization" for critical applications |
| MIUI 14 | Settings β Applications β Management β Auto-Run | Settings β Battery β Battery Optimization β All applications | Added section "Exclusions of energy saving" |
| MIUI 15 (Beta) | Settings β Applications β Permissions β Special Permits | Settings β Battery β Modes β Application settings β | New interface with grouping by application categories |
On MIUI for POCO (installed on POCO F4, POCO X5 Pro, etc.), the path to autostart settings can look like this: Settings β Applications β Application Management β [select application] β Autostart. There is also an additional Block in the background that you need to disable.
Attention, on devices with MIUI Global Stable may be hidden, and switching to MIUI EU (European firmware) or use ADB-teams described above.
Frequent problems and their solutions
Even after you set up the right thing, some applications may not behave properly, and we'll look at scenarios and ways to solve them.
1. Notifications do not come (WhatsApp, Telegram, Viber)
- π Check if notifications for the application are included in Settings β Notifications.
- π΅ Make sure that the application settings allow access to Background data.
- π Reboot your smartphone β sometimes it helps to βwake upβ blocked processes.
2. Music players stop (Spotify, YouTube Music)
- π΅ In the player settings, turn on the option "Playback in the background".
- π Add a player to the battery optimization exceptions.
- π± Check if the player is blocking. MIUI through settings β Annexes β [play] β Battery.
3 Fitness trackers are not synced (Google Fit, Mi Fitness)
- πββοΈ Allow the application to Constant Activity in the Battery Settings.
- π Enable Exact Location Determination for Tracker.
- π Reconnect your device (such as Mi Band) via Bluetooth.
4.Apps close when screen locks
- π B Settings β Lock screen disable Memory Cleanup when blocking.
- π± Include Application Protection in Settings β Annexes β [select].
- β‘ Check if the Ultra Power Saving Mode is activated.
π‘
If the problem persists after all the manipulations, try rolling back the app to the previous version.
How to check if the application works in the background
To make sure that the settings are applied correctly, use one of the following methods:
Method 1. Through Task Manager
- Open the latest applications (swipe up with a delay).
- Find the right application and run it down.
- If you have the option to Lock or Lock, then the application can work in the background.
Method 2. Through ADB
Connect your smartphone to your PC and execute the command:
adb shell dumpsys battery unplugIn the conclusion, find the line with the name of your application. If you have whitelisted=true next to it, then the battery optimization for it is disabled.
Method 3: Notification test
- Send yourself a message from another account (e.g. Telegram).
- Close the application (swipe up).
- Wait 5-10 minutes. If the notification comes, the settings work.
To make a more accurate diagnosis, you can use monitoring applications like Greenify or AccuBattery to show you what processes are being blocked by the system.