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.
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:
- Open Settings โ Applications โ Application Management.
- Select the app you want (such as WhatsApp).
- Slip on Autostart and turn on the switch.
- 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
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:
- Go to Settings โ Battery and Performance โ Battery Management.
- Select App Selection (or Battery Settings for Apps on Newer Versions).
- Find the desired application and set the "No Limits" mode.
| Battery mode | Working hours in the background | Suitable for |
|---|---|---|
| No restrictions. | Unlimitedly. | Messengers, Navigators, Music Players |
| Optimized | 30-60 minutes | Social networks, email clients |
| Strict restrictions | 5-10 minutes | Games 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.
- Go to Settings โ Battery and Performance โ Adaptive Battery Optimization.
- Turn off the adaptive optimization slider.
- 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?
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:
- Open recent applications (swipe up with a delay).
- Find the right application and make a long tap on his card.
- 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:
- Install. ADB-PC drivers.
- Enable USB debugging on your smartphone: Settings โ About Phone โ MIUI version (tap 7 times), then Settings โ Additional โ For Developers โ Debugging over USB.
- 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.