Advertising on Xiaomi TVs is one of the most annoying features of the brandβs budget Smart TVs. Even after buying the premium Mi TV Q2 or Redmi Smart Fire TV, users are faced with intrusive banners on the main menu, pop-up notifications about βrecommended contentβ and built-in advertising in system applications. The manufacturer has integrated ad modules at the PatchWall firmware level, making them a non-trivial task. However, there are legal and semi-legal ways to get rid of intrusive ads from deep-downsetting.
In this article, we will discuss 5 current methods of removing ads from Xiaomi TVs (including models from 2020-2026), evaluate their effectiveness and risks, and give a checklist to prepare for the procedure. Particular attention will be paid to the hidden developer settings that allow you to turn off advertising services without losing warranty. If you are willing to spend 10β30 minutes to set up, then you will find a step-by-step guide with illustrations of key points.
Why Xiaomi is showing ads and can it be removed legally
Xiaomi monetizes budget TVs with built-in advertising through its own PatchWall shell (based on Android TV). It's not a virus or a system bug - the ad modules are written in the firmware and activated by default. The manufacturer officially declares that the adverts are "personalized" and "helps to open new content", but in practice users see:
- πΊ Banners in the main menu (for example, "Popular Movies on Megogo")
- π Publishing notices about partnersβ shares (AliExpress, Kion)
- π¬ Advertising in system applications (Mi Video, Mi Music)
- π Automatic reproduction of trailers when standing
Legal ways to combat advertising are limited: in settings, you can only disable some notifications, but not system banners; Complete removal requires firmware intervention, which can violate the warranty; however, there are trade-offs β for example, disabling personalization or resetting the advertising ID, which reduce the number of impressions without deep changes.
Method 1: Disabling Advertising through Standard Settings (without Risks)
The safest way is to use the built-in system options, which is suitable for Mi TV 4A/4S/5, Redmi Smart TV and new PatchWall 4.0+ series. Method efficiency: ~60% (removes notifications, but not banners in the menu).
Instructions:
- Open Settings β Accounts and Security β Advertising.
- Turn off the sliders: π Personalized advertising (the main source of targeted ads) π Content recommendations (banners in the main menu) π Notifications from partners (pop-up windows)
Nutrition β Reboot.
After these actions, the number of ads will decrease, but system banners (for example, from Mi Video) may remain. ID (see Method 3).
βοΈ Preparing for the Advertising Disconnection
Method 2: Resetting advertising ID (Advertising ID) through ADB
Advertising ID is used by Xiaomi to target ads, resets personal data, temporarily reducing the number of impressions, and works on all Android TV 9.0+ models and does not require root rights.
You'll need:
- π₯οΈ Computer with Windows/macOS/Linux
- π USB-cable (to connect TV to PC)
- π οΈ Utility. ADB Tools (download from Android site)
Step-by-step:
- Turn on Developer Mode on TV: Settings β On TV. β Click 7 times on "Version" MIUI"
- Activate Debugging by USB in Settings β Additional β For developers.
- Connect the TV to your PC via USB and run the command line (terminal) in the folder with adb.exe.
- Execute commands in order: adb devices adb shell settings put global development_settings_enabled 1 adb shell settings put secure user_setup_complete 1 adb shell pm clear com.google.android.gms adb shell pm clear com.android.providers.settings adb shell settings put global advertising_id [32 For the generation of a new symbol ID use the service UUID Generator (select the option without hyphens).
- Reboot the TV.
What if ADB canβt see the TV?
The effect of resetting an ID lasts 1-3 months, after which the procedure will have to be repeated. For a permanent solution, consider blocking advertising domains (Method 4).
Method 3: Blocking Advertising Servers via Hosts File
This method involves editing the hosts system file, which redirects requests to ad servers to βempty" IP-Address. Efficiency: ~90% (remove banners, notifications and in-app ads) Requires root rights or access to the app ADB.
List of domains to block (relevant to Xiaomi PatchWall 2026):
| domain | Appointment | Priority of blocking |
|---|---|---|
| api.ad.xiaomi.com | Main advertising server | βββ |
| sdkconfig.ad.xiaomi.com | Configuration of advertising modules | βββ |
| tracker.ai.xiaomi.com | Collection of viewing statistics | ββ |
| ad.mi.com | Advertising in Mi Video/Mi Music | βββ |
| api.brs.intl.miui.com | International banners | β |
Instructions for editing hosts:
- Connect to TV via ADB (see Method 2).
- Download the current hosts file: adb pull /system/etc/hosts
- Open the file in the text editor and add the lines: 127.0.0.1 api.ad.xiaomi.com 127.0.0.1 sdkconfig.ad.xiaomi.com 127.0.0.1 ad.mi.com
- Download the file back: adb push hosts /system/etc/ adb shell chmod 644 /system/etc/hosts
β οΈ Attention: Incorrect editing of hosts can lead to loss of Internet access.Before changes, make a backup of the file with the adb pull command /system/etc/hosts hosts_backup.
π‘
If some apps (such as YouTube) have stopped working after blocking, temporarily remove the lines with the domains google.com and youtube.com from hosts.
Method 4: Installation of an alternative launcher (for advanced)
PatchWall is the main source of advertising on Xiaomi TV, and can be replaced with a third-party launcher, such as an ATV Launcher or a Wolf Launcher, which will remove the system banners, but require:
- π Unlocked bootloader (for some models)
- π± Installation through ADB or Send Files to TV
- π Possible reset to factory settings
The ATV Launcher is installed:
- Download. APK-Launcher file with APKMirror (Android version) TV).
- Transfer the file to TV via Send Files to TV (Google app) or ADB: adb install atv-launcher.apk
- Launch the launcher and select it as the default launcher in the application settings.
- Disable PatchWall via ADB: adb shell pm disable-user --user 0 com.mitv.tvhome
Advantages of the method:
- β Complete removal of ads from the main menu
- β Possibility of customization of the interface
- β Compatible with most applications
Disadvantages:
- β Loss of Xiaomi remote features (such as voice search)
- β The risk of instability in some models (Mi) TV Stick, Redmi TV A Series)
π‘
Installing a third-party launcher is the only way to remove ads from the main menu without losing the functionality of the TV. However, this method does not block ads in system applications (Mi Video, Mi Music).
Method 5: Complete removal of advertising applications (requires root)
For users willing to take drastic measures, there is the option of removing advertising packages from the system, which requires unlocking the bootloader and obtaining root rights, which voids the warranty, the method is suitable for Mi TV 4X, Mi TV Q1E and others based on Android TV 11/12.
List of advertising packages for removal:
com.mitv.advertisement # Main advertising module
com.xiaomi.mitv.appstore #App Store with banners
com.miui.systemAdSolution #System Advertising
com.mitv.tvhome # PatchWall (launcher with ads)
com.miui.videoplayer #Mi Video with built-in adverts
com.xiaomi.mitv.patchwall # PatchWall shell (alternative name)Instructions:
- Unlock the bootloader via Mi Unlock Tool (requires a Xiaomi account and wait 7 days).
- Install custom recovery (TWRP) for your TV model.
- Please use Magisk to obtain root rights.
- Connect to TV on ADB and execute: adb shell su pm uninstall -k --user 0 com.mitv.advertisement pm uninstall -k --user 0 com.xiaomi.mitv.appstore and so on for all packages from the list
β οΈ Note: Removing system packages may cause some features to fail (e.g., air updates or remote control). TWRP.
Method effectiveness: ~99% Once the ad packages are removed, only third-party ads (e.g. YouTube or IVI) that can be blocked through hosts (see Method 3) remain.
Comparison of methods: what to choose for your model Xiaomi TV
The effectiveness of each method depends on the model of the TV and the version of PatchWall.
| Method | Efficiency | Difficulty | Risks. | Suitable for models |
|---|---|---|---|---|
| Standard settings | ββ (60%) | β (simple) | No. | All models. |
| Resetting Advertising ID | βββ (75%) | ββ (need ADB) | Temporary effect | Mi TV 4/5, Redmi Smart TV |
| Blocking through hosts | ββββ (90%) | βββ (need ADB/root) | Could break the internet. | All models on Android TV |
| Third-party launcher | ββββ (95%) | βββ (need ADB) | Loss of remote control function | Mi TV Q2, Mi TV A Pro |
| Removal of system packages | βββββ (99%) | ββββ (root) | Loss of guarantee | All models (except Mi TV Stick) |
For most users, the best solution is a combination of Method 2 (ID reset) + Method 3 (hosts lock), which gives ~95% efficiency without the risk of losing warranty. Owners of older models (Mi TV 3S, Mi TV 4A 2018) can consider installing custom firmware, for example, LineageOS for TV, but this requires deep technical knowledge.
Frequent Mistakes and How to Avoid Them
When trying to remove ads, users often face typical problems, and here are the most common ones and ways to solve them:
- π Advertising returns after update: Xiaomi regularly updates ad modules via OTA. To avoid this, disable automatic updates to Settings. β On TV. β Updating the system.
- π« It's not working. ADB: Make sure that the developer settings include debugging by USB and Debugging over the network (for wireless connection). If the TV is not detected, try another cable or port USB.
- π΅ After blocking hosts, there is no internet: Check if you have blocked the domains google.com or connectivitycheck.gstatic.com. Remove them from hosts and restart the TV.
- π Cannot get root: on new models (Mi) TV Q2 2023) Xiaomi has closed the ability to unlock the bootloader. In this case, only Methods 1-3 remain.
If after all the manipulations the advertisement still appears, check:
- Are there any third-party apps with ads installed (for example, OKKO or Wink).
- Has Advertising dropped off? ID After the update (checked by the adb shell settings command get secure) advertising_id).
- Have you added new advertising domains in the latest PatchWall versions (update the list for hosts)?
π‘
Before any changes to the system, back up your current firmware via ADB: adb backup -apk -shared -all -f backup.ab. This will allow you to restore the TV in the event of a failure.