Why Xiaomi is restricting the work of applications and how to fix it
Xiaomiβs MIUI-based smartphones aggressively optimize battery consumption by blocking application background activity, leading to missed notifications, interrupted downloads and messaging apps, the company says this policy increases battery life, but in practice users face unpredictable behavior after MIUI 13/14 updates.
In this article, you will find current ways to disable optimization for individual applications and the system as a whole. We will look at both standard MIUI settings and hidden parameters through adb and engineering menus. All instructions are tested on Redmi Note 11/12, POCO X4/X5, Xiaomi 12/13 with the latest firmware versions.
It is important to understand that completely disabling optimization will reduce battery life by 10-30% depending on the intensity of use.
Method 1: Standard shutdown via MIUI settings
The most secure method, which does not require superuser rights, is suitable for most applications, except for system services.
- Open Settings β Applications β Application Management
- Select the desired application (such as Telegram or WhatsApp)
- Go to the Battery Consumption section
- Activate the switch without restrictions
- Go back and turn on AutoRun (if available)
For MIUI 14, the path may be different: Settings β Battery and Performance β Application Selection β [Application] β No Limits. On some firmware, the option is hidden behind the Resolution point β Additional.
Select the application in "Application Management" |
Activate "No Limits" in battery consumption |
Insert "Stop" (if any) |
Reboot your smartphone to apply changes-->
β οΈ Attention: After update MIUI All optimization settings are reset. Check them after each major system update.
Method 2: Hidden settings via the engineering menu (#4636##)
This method allows you to disable optimization at the Android level, but it requires caution. Wrong actions can lead to system failures.
Instructions:
- Open the phone app and type ##4636##
- Select Battery Information (or Battery Information)
- Click on the three dots in the top right corner and select Battery Settings
- Turn off Battery Optimization (also known as Battery Optimization)
On some models (POCO F4/F5, Xiaomi 13 Ultra) the engineering menu is blocked.
adb shell dumpsys deviceidle force-idleWhat to do if the engineering menu does not open?
Method 3: ADB-commands to completely disable optimization
For advanced users who are ready to work with Android Debug Bridge, this method allows you to disable optimization for all applications at once.
Step-by-step:
- Enable USB Debugging in Settings β About Phone β MIUI Version (click 7 times)
- Connect your smartphone to your PC and confirm your trusted device
- Open the command line and enter:
adb shell dumpsys deviceidle disable
adb shell settings put global hidden_api_policy 1To disable the optimization of a particular application (e.g., Viber):
adb shell dumpsys battery unplug
adb shell am set-inactive com.viber.voip false| Team team. | Action. | Reboot required |
|---|---|---|
| deviceidle disable | Turns off energy saving modes | Yes. |
| hidden_api_policy 1 | Unlocks Hidden APIs | Yes. |
| am set-inactive [package] false | Removes restrictions on the package | No. |
| battery unplug | Resets the current nutrition profile | No. |
π‘
Before execution ADB-commands back up data via Mi Cloud or locally. Some commands may cause system services to fail.
Method 4: Using Magisk modules (for rooted devices)
If your Xiaomi has an unlocked bootloader and Magisk installed, you can use dedicated modules to deeply customize power consumption.
Recommended modules:
- π§ Battery Optimizer Disabler β Disables Core Level Optimization
- π οΈ MIUI Optimization Disabler β Removes the Restrictions MIUI background-process
- β‘ PowerKeeper β allows you to fine-tune power profiles for each application
Installation:
- Download the module in.zip format from the XDA Developers forum
- Open Magisk Manager and select Modules β Install from Storage
- Select the downloaded file and confirm the installation
- Reset the device
β οΈ Note: Modules for Magisk may conflict with updates MIUI. After each system update, check the operability of the modules and, if necessary, reinstall them.
Standard settings MIUI|
Engineering menu|
ADB-team|
Magisk-modules |
Another way.-->
Problems after optimisation disabling and their solutions
Even after the optimization is properly disabled, users often face additional problems, and here are the most common ones and how to fix them:
- π Applications are still closed: Check the permission settings β Additionally. β Start in the background Disconnect the adaptive battery in Settings β Battery Add the app to Secure Applications (if any)
- β‘ Increased battery consumption: Limit the number of applications without optimization (no more) 5-7) Use Performance Mode only when necessary Set up a sleep schedule for background processes
- π± Smartphone overheats: Turn off acceleration GPU in developer settings Limit background activity for resource-intensive applications Use a cooling stand when working intensively
π‘
The most stable results are obtained by a combination of standard MIUI settings + selective optimisation disabling via ADB for mission-critical applications.
Features for different versions of MIUI and Xiaomi models
The manufacturer regularly changes the layout of settings and optimization mechanisms, and here are the key differences for different versions:
| MIUI version | Features of optimization | Recommended method of disconnection |
|---|---|---|
| MIUI 12 | Aggressive Closing of Background Processes, Hidden Limitations for Non-system Applications | ADB-team + standardization |
| MIUI 13 | Added βSmart Battery Modeβ, blocking notifications for optimized applications | Engineering menu + Magisk modules |
| MIUI 14 | Adaptive Battery Algorithm, Google Play Services Integration | Combination of standard settings and ADB |
| HyperOS | Completely redesigned power management system, new restrictions for third-party launchers | ADB or Magisk only (standard methods do not work) |
For models with Qualcomm Snapdragon (e.g. Xiaomi 12 Pro, POCO F4 GT), the efficiency of methods is 20-30% higher compared to devices on MediaTek (Redmi Note 11, POCO M4 Pro).