How to completely disable battery optimization on Xiaomi: detailed instructions for all versions of MIUI

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.

  1. Open Settings β†’ Applications β†’ Application Management
  2. Select the desired application (such as Telegram or WhatsApp)
  3. Go to the Battery Consumption section
  4. Activate the switch without restrictions
  5. 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:

  1. Open the phone app and type ##4636##
  2. Select Battery Information (or Battery Information)
  3. Click on the three dots in the top right corner and select Battery Settings
  4. 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-idle
What to do if the engineering menu does not open?
Xiaomi blocks access to engineering menu via new firmware USSD-Alternatives: 1. Use ADB-command (inclusive debugging is required) USB) 2. Install the Activity Launcher app and find hidden Testing 3 activity. Restore access via Magisk modules (routed devices only)

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:

  1. Enable USB Debugging in Settings β†’ About Phone β†’ MIUI Version (click 7 times)
  2. Connect your smartphone to your PC and confirm your trusted device
  3. Open the command line and enter:
adb shell dumpsys deviceidle disable


adb shell settings put global hidden_api_policy 1

To 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 disableTurns off energy saving modesYes.
hidden_api_policy 1Unlocks Hidden APIsYes.
am set-inactive [package] falseRemoves restrictions on the packageNo.
battery unplugResets the current nutrition profileNo.

πŸ’‘

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:

  1. Download the module in.zip format from the XDA Developers forum
  2. Open Magisk Manager and select Modules β†’ Install from Storage
  3. Select the downloaded file and confirm the installation
  4. 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 versionFeatures of optimizationRecommended method of disconnection
MIUI 12Aggressive Closing of Background Processes, Hidden Limitations for Non-system ApplicationsADB-team + standardization
MIUI 13Added β€œSmart Battery Mode”, blocking notifications for optimized applicationsEngineering menu + Magisk modules
MIUI 14Adaptive Battery Algorithm, Google Play Services IntegrationCombination of standard settings and ADB
HyperOSCompletely redesigned power management system, new restrictions for third-party launchersADB 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).

FAQ: Frequent questions about turning off battery optimization

Can I turn off optimization without root rights?
Yes, most methods (standard settings, engineering menus, ADB) do not require root access, but superuser rights will be required to fully control all system processes.
Why is Telegram still not working in the background after optimizing?
The problem may be related to additional MIUI restrictions. Check: Settings β†’ Apps β†’ Telegram β†’ Permissions β†’ Auto-Run Settings β†’ Battery β†’ Application Selection β†’ Telegram β†’ Without restrictions Disable MIUI Optimization in the developer settings Also make sure that notifications and background work are included in the Telegram itself.
How to return standard optimization settings?
To return to factory power settings: Follow the command: adb shell dumpsys deviceidle enable Or reset to Settings β†’ System β†’ Reset β†’ App settings Reset For a full reset, do Hard Reset (delete all data)
Does the optimisation disabling affect battery life?
Indirectly, yes. The constant operation of background processes increases the number of charge/discharge cycles, which can reduce battery life by 5-10% per year of intensive use. To minimize harm: Use original chargers Avoid overheating above 40 Β° C Maintain a charge level in the range of 20-80%
Why did all the settings drop after the MIUI update?
Xiaomi resets custom optimization settings when major system updates (e.g., from MIUI 13 to MIUI 14) for two reasons: Change the structure of the power consumption configuration files Security policy to prevent conflicts between old and new optimization algorithms After the update, you need to re-apply all settings manually.