Optimizing MIUI in Xiaomi smartphones is a two-way sword, extending battery life and supposedly improving performance through aggressive background management, and causing app freezes, no notifications, and sudden reboots, and Redmi 9T owners are particularly likely to face these problems because of the specifics of the firmware for budget devices with a Snapdragon 662 processor.
In this article, we will discuss all possible methods of disabling optimization. MIUI β From standard settings to hidden commands through ADB You'll learn how to completely deactivate background optimization without root rights, what risks it poses to the battery, and how to reset it if something goes wrong. MIUI 12/13/14 Android-based 10/11/12.
Why MIUI Optimization is Interfering with Redmi 9T
The MIUI optimization system works on a process killer principle: it forcibly closes background tasks, restricts application access to the CPU/GPU, and blocks auto-run. On paper, this saves charge, but in practice leads to:
- π± Disappearing notifications (especially in messengers such as Telegram or WhatsApp).
- π Reboots when you start heavy games (Genshin Impact, Call of Duty Mobile).
- β‘ Laham interface after prolonged use (effect of "reflection" MIUI).
- π« Block background sync (e.g. Google Photos stops loading media).
On the Redmi 9T, the problem is exacerbated by 4GB of RAM and weak optimization of the Snapdragon 662 under MIUI. The system mistakenly perceives normal application operation as "overload" and begins aggressively "cleaning" them. For example, YouTube Music can stop playing after 5 minutes in the background, although the battery is 100% charged.
Method 1: Disabling optimization through standard settings
The safest method is to use the built-in MIUI tools. It does not require developer rights or PC connectivity, but is limited (does not disable deep kernel optimization).
Instructions:
- Open Settings β Applications β Application Management.
- Select a problem app (such as Telegram).
- Put it on the battery. β Optimizing the battery.
- Choose Unlimited (or Unoptimized in older versions of MIUI).
- Go back and turn on AutoRun and Background Activity.
For mass blackout:
- Go to Settings β Battery and Performance β Battery Optimization.
- Click on the three dots in the upper right corner β Show all applications.
- Select Everything in the filter and tap Not Optimize for everyone.
βοΈ Preparing for optimisation shutdown
β οΈ After turning off optimization for 20+ Redmi applications 9T It can start to discharge 15-25% faster, and we recommend turning off optimization only for mission-critical programs (messengers, navigators, music players).
Method 2: ADB commands for deep optimisation disabling
If standard settings donβt work, use ADB (Android Debug Bridge), which disables system restrictions that are not available through the GUI.
Before we start:
- π₯οΈ Install Platform Tools on PC.
- π Turn on Debugging. USB on the phone (Settings) β The phone. β Version. MIUI β 7 times tap the version β Return to the Additional Settings β For developers).
- π Allow debugging for your PC on the first connection.
Open the command line (cmd) in the folder with the platform-tools and enter alternately:
adb shell
su -c "cmd appops set com.miui.powerkeeper RUN_ANY_IN_BACKGROUND allow"
su -c "cmd device_idle disable"
su -c "settings put global hidden_api_policy 1"To disable optimization for a particular application (e.g. Telegram):
adb shell dumpsys deviceidle whitelist +org.telegram.messengeradb shell pm grant com.miui.powerkeeper android.permission.WRITE_SECURE_SETTINGSThis will temporarily give the Battery and Performance app extended rights.-->
| ADB Team Team | The effect | Risks. |
|---|---|---|
| device_idle disable | Turns off Doze (deep sleep) mode | Increased battery consumption by 30-40% |
| hidden_api_policy 1 | Unlocks Hidden APIs | May disrupt the system services |
| dumpsys deviceidle whitelist | Adding the app to the whitelist | The app will work in the background always |
β οΈ Attention: Teams device_idle disable hidden_api_policy They reset after they reboot. To make the changes permanent, you need to create a script in the computer. /data/adb/service.d/ (root).
Method 3: Edit the build.prop file (for advanced)
The build.prop file contains Android system properties, including optimization options, and editing it allows you to globally disable MIUI restrictions, but requires caution.
Steps:
- Get root access (for example, through Magisk).
- Use a root-enabled file manager (such as Root Explorer).
- Open the file /system/build.prop and add at the end:
Disabling MIUI optimization
ro.miui.optimization_disabled=1
ro.miui.power_keeper=0
persist.sys.miui.optimization=0Save the file, restart the device. To check, type in ADB:
adb shell getprop ro.miui.optimization_disabledThe answer has to come back: 1.
What if the phone doesnβt boot after editing build.prop?
Method 4: Using Optimizer Applications (without root)
If you don't want to mess with ADB or build.prop, you can use third-party utilities, which automate the process of disabling optimization through the available APIs.
Top.-3 supplant 9T:
- π οΈ MIUI Optimization Disabler (disables com.miui.powerkeeper system services).
- β‘ Battery Guru (manages background processes without root).
- π§ Greenify (alternative optimization without aggressive process killing).
Example of MIUI Optimization Disabler:
- Download APK with XDA Developers.
- Launch the application and grant ADB permissions (instructions will appear).
- Press Disable MIUI Optimization and restart your phone.
π‘
Applications like Greenify donβt turn MIUI optimization off completely, but instead replace it with a smarter alternative, which is safer for the battery, but less effective for solving lag problems.
Method 5: Transition to custom firmware (radical solution)
If nothing helps, there is an extreme option - to flash Redmi 9T on custom firmware without MIUI.
- π± LineageOS (Pure Android without Xiaomi Optimization).
- π Pixel Experience (firmware with Google Pixel features).
- β‘ ArrowOS (optimized for weak devices).
Advantages:
- β No aggressive optimization MIUI.
- β Regular security updates.
- β Possibility of fine tuning of the core.
Disadvantages:
- β Loss of warranty (if the phone is under warranty).
- β Risk of "bricking" in case of firmware error.
- β Certain functions MIUI (The Game Turbo will not work.
Instructions for LineageOS firmware:
- Unlock the bootloader through the Mi Unlock Tool.
- Install TWRP Recovery for Redmi 9T (lime)
- Download LineageOS and GApps (like NikGapps).
- You can use TWRP (Wipe β Install β Reboot).
β οΈ Note: Custom firmware voids Xiaomi warranty. Before the procedure, check firmware compatibility with the lime model (not to be confused with Redmi 9 Power, which has a different code!).
How to Get MIUI Optimization Back
If you turn off the optimization, if the phone starts to run too fast, or if you have new lags, you can get it back.
- π Through Settings: Return all applications to Optimize in Settings β Battery.
- π₯οΈ Through ADB: Follow the commands: adb shell su -c "cmd device_idle enable" adb shell su -c "settings put global hidden_api_policy 0"
- π² Resetting settings: Settings β Additionally. β Resetting settings β Reset the battery settings.
To return to the factory optimization settings:
- Go to Settings β About the phone β Reset settings.
- Select Reset all settings (without deleting data).
- After the reboot, MIUI will automatically restore the default parameters of the battery.