Xiaomi Mi 9T (also known as Redmi K20 in some regions) remains a popular smartphone even years after its release. However, owners often face intrusive advertising in the shell of MIUI β banners in settings, push notifications from system applications and even advertising in the call menu. In this article, we will discuss 5 proven ways to remove ads on Xiaomi Mi 9T without losing functionality, including hidden settings, disabling telemetry and alternative firmware.
It's important to understand that some of the ads are built into MIUI system services and can't be removed by standard methods, but with a combination of settings, disabling unnecessary services and third-party tools, you can minimize the ad impressions, and we tested all the methods on current firmware versions (including MIUI 14 and HyperOS), and only selected those that work without root rights.
1. disable personalized advertising in MIUI settings
The first step is to deactivate the targeted ad mechanisms that Xiaomi uses to display banners, which wonβt remove all ads, but will significantly reduce their number, especially in system applications like Security or Themes.
Go to: Settings β Google β Advertising (if the item is missing, see spoiler below).
Turn off the option βPersonalized Adsβ and reset the ad ID (Reset button) here, which will block the collection of data about your actions to show targeted ads.
What if there is no βAdvertisingβ option in Google?
Then go back to the basic settings and go to: Settings β Special features β Services for users with disabilities β Advertising Notifications.
Turn off all the switches in this section β this will block some of the system notifications with ads.
- π Check the apps: Go to Settings β Annexes β Manage applications and manually disable notifications for Msa (Mobile Services Ads), Mi Video, Mi Browser and Themes.
- π± Reset your ad settings: In the same Google section β Advertising click Reset ID β this will reset all collected data for targeting.
- π Update Google Services: Outdated versions of Google Play Services may ignore privacy settings.Update them through Play Store.
π‘
If banners continue to appear after personalized ads are turned off, try temporarily disabling mobile data for Msa and Miui Daemon apps in your traffic settings.
2 Manual removal of system applications without root (ADB-method)
Some Xiaomi apps (Msa, Analytics, Yellow Pages) are responsible for displaying ads, but they cannot be removed by standard means. ADB (Android Debug Bridge can be uninstalled without root rights.
For this:
- Activate Developer Mode: Go to Settings β About Phone and 7 times click on MIUI Version. Return to Settings β Additional β For Developers and enable USB Debugging.
- Connect your phone to your PC, install it. ADB-Drivers and open the command line in the folder with the platform-tools.
- Enter the command to check the connection: adb devices If the device is displayed, execute commands to remove advertising packages (one by one):
adb shell pm uninstall --user 0 com.miui.analytics
adb shell pm uninstall --user 0 com.xiaomi.midrop
adb shell pm uninstall --user 0 com.miui.systemAdSolution
adb shell pm uninstall --user 0 com.miui.yellowpageNote: Deleting the com.miui.systemAdSolution package may cause some system utilities (e.g. Security) to malfunction.If problems arise after deleting, restore the application with the command adb shell cmd package install-existing com.miui.systemAdSolution.
Install ADB-PC drivers
Enable debugging over USB on your phone
Download platform-tools from the official Android website
Create a backup copy of important data
Check the list of packages with the command adb shell pm list packages | grep 'miui\|xiaomi'-->
3. Blocking advertising domains through hosts file
One of the most effective ways is to redirect advertising domains to βempty" IP-address (127.0.0.1) via hosts file, which blocks banner loading at the network level without affecting system processes.
For the Xiaomi Mi 9T, you can use apps like AdAway (requires root) or Blokada (works via VPN) without root.
- Download Blokada from the official website (not from the Play Store, as there is a stripped-down version).
- Install and allow creation VPN-connection.
- In Blokada settings, select the βEnergyβ or βFennecβ lock list β these are optimized for Xiaomi.
- Activate the lock and restart the phone.
An alternative method is to manually edit hosts via Termux (requires minimal command line knowledge):
pkg update && pkg install tsu
tsu
mount -o rw,remount /system
echo "127.0.0.1 ad.mi.com" >> /system/etc/hosts
mount -o ro,remount /systemπ‘
Blocking through a hosts file or VPN-applications (e.g. Blokada) do not require root rights and operate at the network level, preventing the download of advertising materials from Xiaomi servers.
4. Resetting Advertising and Telemetry settings (hidden MIUI section)
Xiaomi hides some of the settings related to data collection and display of advertising in a special menu MIUI Hidden Settings.
- Open the phone app and enter the code: ##6484##
- In the menu that appears, select MIUI Hidden Settings (if the code doesn't work, try ##64663##).
- Go to Advertisement and turn off all switches.
- In the Telemetry section, deactivate the User Experience Program and Diagnostic Data.
These settings are responsible for:
- π Collection of usage statistics (Telemetry)
- π― Personalized advertising based on your actions
- π’ Push notifications from Xiaomi system services
Banners in MIUI settings
Push notifications from system applications
Advertising in the call/calls menu
Advertising in the annex βThemesβ
Other-->
5.Alternative firmware: transition to caste or global version of MIUI
If standard methods donβt work, a radical solution is to install custom firmware (like LineageOS or Pixel Experience) or flash it to a global version of MIUI (if you have Chinese), which will completely remove system advertising, but require unlocking the bootloader and potentially void the warranty.
Comparison of options:
| Method | Removes ads | Requires unlocking the loader | Risks. |
|---|---|---|---|
| Global MIUI | Yes (partially) | Yes. | Data loss, possible bugs |
| LineageOS | Yes (fully) | Yes. | Unstable camera operation, lack of branded features |
| Pixel Experience | Yes (fully) | Yes. | Problems with gestures, lack of IR-blaster |
| Xiaomi.EU | Yes (fully) | Yes. | Weekly updates, possible bugs |
For flashing:
- Unlock the bootloader through the official Xiaomi tool (requires a Mi Account binding and waits 7-30 days).
- Download the firmware from Xiaomi.eu (for Mi 9T β Davinci version) or XDA Developers.
- Install via TWRP (instructions depend on the selected firmware).
π‘
Before you run the firmware, check the model compatibility! Xiaomi Mi 9T has the code name davinci, and Redmi K20 is raphael. Installing firmware for another model will lead to a "brick" (inoperability) of the device.
6.Additional measures: disabling notifications and cleaning the cache
Even after applying basic methods, some of the ads can seep through notifications or cached data, and regular cleaning will help to minimize them:
- π§Ή Cleaning the cache of system applications: Go to Settings β Annexes β Application management and for each of the list below click Clear cache and Clear data: Msa (com.xiaomi.msa.global) Miui Daemon (com.miui.daemon) Topics (com.android.themes) Security (com.miui.securitycenter)
- π Block Notifications: In the same Application Management section, disable notifications for all applications with the word ad, msa, or analytics in the packet name.
- π Reset Ads: Repeat the steps from the first section once a month, as Xiaomi may reset some options after updates.
β οΈ Note: Do not clear the data of the com.android.providers.settings application β this will result in resetting all system settings (including wallpaper, sounds and Wi-Fi passwords).