Disabling MIUI optimization on Xiaomi Mi 9T: why you need and how to do it correctly

Xiaomi Mi 9T (also known as Redmi K20 in some regions) is a popular smartphone with powerful stuffing, but many users face performance problems due to aggressive optimization of the MIUI shell. The system actively closes background processes, restricts application operation and can even โ€œfreezeโ€ games after switching to another screen. In this article, we will analyze why this happens, what risks are disabling optimization, and 3 proven ways to deactivate it โ€“ from simple settings to deep changes through ADB and custom recovery.

It's important to understand that MIUI optimization is originally designed to save battery life and extend the life of the device. However, for gamers, multi-taskers or users of specific applications (such as automatic location tracking), it often becomes a hindrance. We won't convince you to turn it off "at any cost" - instead, we will show you how to do it consciously, with the consequences for the autonomy and stability of the system.

What is MIUI Optimization and Why You Want to Disable It

Optimization in MIUI is a set of algorithms that:

  • ๐Ÿ”‹ Limit background activity of applications to save battery (especially relevant for Mi) 9T with a capacity of 4,000 mAh).
  • โšก Forced closure of processes if the system considers them unnecessary (for example, after 5 minutes in the background).
  • ๐ŸŽฎ Reduce performance in games when overheating or low battery charge.
  • ๐Ÿ“ฑ Block the auto-start of applications after restarting the device.

In practice, this leads to the following problems:

  • ๐Ÿšซ Notifications come with a delay (for example, in messengers or email clients).
  • ๐Ÿ”„ Applications are rebooted when they return from multitasking.
  • ๐ŸŽต Music players stop over the course of 10-15 background.
  • ๐Ÿ“Š Fitness trackers lose data due to suspension.

The manufacturer claims that this optimization extends battery life by 15-20%. However, tests show that on the Mi 9T with a Snapdragon 730 processor and 6 GB of RAM, the real savings rarely exceed 5-8%, while the loss in usability can be critical. For example, users of Pokรฉmon GO or Google Maps in navigation mode often encounter the fact that the application โ€œfalls asleepโ€ after 20-30 minutes, despite all the permissions.

๐Ÿ“Š You have been in trouble due to optimization. MIUI?
Yeah, all the time.
Sometimes.
No, it's working fine.
I don't know what that is.

Method 1: Disconnect via standard MIUI settings

The most secure method, which does not require superuser rights or PC connectivity, is suitable for most users, but has limitations: some system processes will still be optimized.

Instructions:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select the application you want to disable optimization for (e.g. Telegram or Spotify).
  3. Slip on Permissions โ†’ Autostart and turn on the option.
  4. Go back and select the battery. โ†’ No restrictions.
  5. Activate the Block option in the background (if available).

For global optimisation disabling:

  1. Go to Settings โ†’ Battery and Performance โ†’ Battery Settings
  2. Select the Choice of Performance Mode โ†’ High productivity.
  3. Turn on the option to Disable MIUI Optimization (not available in all firmware versions).

โ˜‘๏ธ Preparing for optimisation shutdown

Done: 0 / 4

Limitations of the method:

  • โŒ Does not work for system applications (e.g. com.miui.home).
  • โŒ After updating MIUI settings may reset.
  • โŒ Some processes (such as Android System) will still be optimized.

๐Ÿ’ก

If the battery settings donโ€™t have โ€œDisable MIUI Optimization,โ€ try changing region to India in Settings โ†’ Additional โ†’ Region. Sometimes this reveals hidden options.

Method 2: Using ADB to Deep Shut Down

A more radical method that requires a computer connection and USB debugging enabled, allows you to disable optimization at the system level, but has risks: the wrong commands can lead to failures in MIUI.

What you need:

  • ๐Ÿ–ฅ๏ธ A computer with installed Xiaomi drivers and ADB Tools.
  • ๐Ÿ”Œ Cable USB Type-C (preferably original).
  • ๐Ÿ“ฑ Included debugging by USB (Settings โ†’ The phone. โ†’ Version. MIUI โ†’ 7 times tap to unlock the developer options, then Settings โ†’ Additionally. โ†’ For developers โ†’ Debugging by USB).

Step-by-step:

  1. Connect the Mi 9T to your PC and confirm the debugging permission on your phone.
  2. Open the command line (Windows) or terminal (macOS/Linux) in the adb folder.
  3. Enter the command to check the connection: Adb devices must appear serial number of your device.
  4. Execute the command to disable optimization: adb shell settings put global hidden_api_policy 1
  5. To disable background activity restrictions: adb shell dumpsys deviceidle force-idle
  6. Reboot your phone: adb reboot

Critical information: The dumpsys deviceidle force-idle command can lead to increased battery consumption (up to 30% in 8 hours standby).

ADB Team TeamThe effectRisks.
hidden_api_policy 1Unlocks Hidden APIsMay disrupt some system applications
deviceidle force-idleTurns off background optimizationSignificant increase in battery consumption
settings put global background_check 0Disables background process checksPossible lags with multitasking
What if the ADB canโ€™t see the device?
1. Make sure that Xiaomi drivers are installed (download from the official website). 2. Try another one. USB-cable (cheap cables often don't support data transfer). 3. Enable the "Debugging by" option in the developer settings USB (Security settings)" and set the switch to "Always allow from this computer. 4. Restart the phone and PC then reconnect.

Method 3: Disconnect via TWRP and Magisk (for advanced)

The most powerful, but also the most risky method, requires an unlocked bootloader, installed TWRP and root rights, suitable for users who are willing to sacrifice the warranty for the sake of complete control over the system.

Warnings:

โš ๏ธ Warning: Unlocking the bootloader resets all data on the phone. backup via Mi Cloud or TWRP (if already established).

โš ๏ธ Note: Using Magisk can lead to a ban in some banking applications (for example, Sberbank Online or Tinkoff.

Instructions:

  1. Unlock the bootloader via Fastboot (instructions on the official Xiaomi website).
  2. Install TWRP for Mi 9T (the version must match the davinci or davinciin model).
  3. Download and install through TWRP: ๐Ÿ“ฆ Magisk (last version from GitHub). ๐Ÿ“ฆ Disable module MIUI Optimization (available in Magisk repository).

Magisk Manager

Effects of disconnection through Magisk:

  • โœ… Completely disabling all restrictions MIUI (including system processes).
  • โœ… Ability to fine-tune through build.prop files.
  • โœ… Compatible with performance enhancement modules (e.g. Kernelsu or PowerHAL).

Recommended modules for Mi 9T after optimisation disable:

  • ๐Ÿ”ง Universal SafetyNet Fix โ€“ SafetyNet.
  • ๐Ÿ”ง MIUI Battery Tweaks โ€“ to compensate for increased costs.
  • ๐Ÿ”ง App Systemizer โ€“ to transfer applications to the system partition (prevents optimization).

๐Ÿ’ก

Disabling optimization through Magisk gives you maximum control, but requires regular updates of modules. MIUI.

Comparison of methods: which to choose

The choice of method depends on your goals and risk preparedness. Below is a comparison table:

MethodDifficultyEfficiencyRisks.PC required
Standard settingsโญโš ๏ธ PartialNo.No.
ADBโญโญโœ… Tall.System application failuresYes.
TWRP + Magiskโญโญโญโœ… Complete.Loss of guarantee, ban in banking applicationsYes.

Selection recommendations:

  • ๐Ÿ“ฑ For regular users: Start with standard settings. If problematic apps (like WhatsApp or Google Fit) keep falling asleep, go to the next step. ADB.
  • ๐ŸŽฎ For gamers and multitaskers: The optimal method of ADB, It doesn't require root rights, but it gives you a noticeable increase in stability.
  • ๐Ÿ”ง For enthusiasts: Full shutdown via Magisk will allow fine-tuning the system, but will require regular maintenance.

What to do after optimizing

Turning off MIUI optimization is only half the battle, and to keep the system running smoothly, follow these steps:

  1. Set up auto-run for critical applications: ๐Ÿ“Œ Settings โ†’ Annexes โ†’ Application management โ†’ Auto-start. ๐Ÿ“Œ Enable auto-run for messengers, navigators and fitness trackers.
  2. Limit background activity of unnecessary apps: ๐Ÿšซ Turn off auto-run for social media (like Facebook or Instagram) if they are not critical. ๐Ÿšซ Use Greenify (requires root) to โ€œfreezeโ€ background processes.
  3. Monitor battery consumption: ๐Ÿ”‹ Install AccuBattery to track discharge. ๐Ÿ”‹ If the consumption exceeds 10% per hour in standby mode, return some optimization through the ADB: adb shell dumpsys deviceidle enable

Useful applications for managing background processes:

  • ๐Ÿ› ๏ธ Battery Guru โ€“ analysis of battery consumption by application.
  • ๐Ÿ› ๏ธ Servicely โ€“ managing Android services (requires root).
  • ๐Ÿ› ๏ธ MIUI Hidden Settings โ€“ access to hidden settings MIUI.

๐Ÿ’ก

If after optimizing the phone started to warm up, install the Thermal Engine from Magisk. module allows you to manually adjust the thresholds of trottling (decreased performance when heated).

Frequent problems and their solutions

Even after the optimization is properly disabling, there may be failures. Consider typical situations and ways to fix them:

Problem 1: Apps are closed in the background

  • ๐Ÿ”น Check if the battery saving mode is enabled in the settings.
  • ๐Ÿ”น For Android. 11+ Execute the command: adb shell cmd appops set <package> RUN_ANY_IN_BACKGROUND allow (for example, for Telegram package - org.telegram.messenger).
  • ๐Ÿ”น Install Donโ€™t Kill My App! from Google Play โ€“ the app will tell you what settings to change for a particular software.

Problem 2: Fast battery discharge

  • ๐Ÿ”‹ Turn off Constant Network Search in Settings โ†’ SIM-maps and mobile networks.
  • ๐Ÿ”‹ Reduce screen waiting time to 30 seconds.
  • ๐Ÿ”‹ Use Battery Charging Limit (Magisk) to limit your charge by 80% (extend battery life).

Issue 3: Lags and slowdowns

  • โšก Install Kernel Adiutor and activate Performance Profile.
  • โšก Clear the cache in Settings โ†’ Warehouse โ†’ Clear the cache.
  • โšก Turn off animations via developer settings (Scale of window animations) โ†’ No animation).

Problem 4: Banking applications are not working

  • ๐Ÿฆ Install MagiskHide Props Config and select the Samsung or Google signature.
  • ๐Ÿฆ Enable MagiskHide for banking applications in Magisk settings.
  • ๐Ÿฆ Use Island or Shelter to isolate applications in your work profile.
โ“ Disabling optimization MIUI cancels the warranty?
The default settings or ADB shutdown itself is not, but unlocking the bootloader and installing TWRP/Magisk officially removes the warranty, and some service centers may turn a blind eye to the root if the problem is not related to the software part (for example, a broken screen).
โ“ Can you turn off optimization only for individual applications?
Yes, through standard settings (Battery โ†’ No restrictions) or ADB command: adb shell dumpsys battery unplug <packet applications> For example, for YouTube Music: adb shell dumpsys battery unplug com.google.android.apps.youtube.music
โ“ How to Get Optimization Back?
To return to standard settings: Through ADB: adb shell dumpsys deviceidle unforce Through Magisk: remove the Disable MIUI Optimization module and reboot. Through settings: reset the battery settings to Settings โ†’ Battery โ†’ More โ†’ Reset settings.
โ“ Will Google Pay work after optimisation is disabled?
If you only used ADB, yes, Google Pay will continue to work. If you installed Magisk, you will need to: Activate MagiskHide; Hide the root for Google Play Services and Google Pay; Go through SafetyNet (check status in the Magisk Manager app); If SafetyNet fails, install Universal SafetyNet Fix.
โ“ Why After the Optimization Disconnection, the Phone Started to Warm?
This is normal, without restrictions. MIUI Snapdragon 730 processor in the Mi 9T It's running at full capacity: ๐Ÿ”ฅ Install Thermal Engine from Magisk and Lower Throttling Thresholds. ๐Ÿ”ฅ Turn off unnecessary background processes through Greenify. ๐Ÿ”ฅ Use the Performance Mode only when necessary (e.g. in games).