How to permanently remove ads at the end of a video on Xiaomi TV: from simple settings to deep cleaning

Are you tired of the annoying ads that suddenly appear at the end of every video on your Xiaomi TV? This problem is familiar to most Mi TV, Redmi TV and even Mi Box console owners. Commercials not only spoil the viewing experience, but also slow down the system, and sometimes even lead to a device freeze. Fortunately, there are several proven ways to get rid of them - from basic settings to radical methods for power users.

In this article, we will discuss all the current methods of removing ads on Xiaomi TVs (including models from 2023-2026), and explain why they appear and how to prevent them from returning after updates. You will learn how to circumvent the manufacturer’s restrictions legally and what to do if standard methods do not work. Importantly, some methods require disabling automatic updates or even manual editing of system files – we will describe in detail the risks and nuances of each approach.

Why does Xiaomi TV have ads at the end of the video?

The ads at the end of the video are not a random bug, but part of Xiaomi’s monetization strategy, integrating ad modules into PatchWall’s firmware and MIUI TV to offset the low price of the devices, and these are the key reasons why it’s coming:

  • πŸ“Ί Built-in advertising SDK: The firmware contains pre-installed modules (e.g. com.miui.systemAdSolution) that download ads from Xiaomi servers.
  • πŸ”„ Automatic Updates: Even if you manually remove the ad, it can come back after the software update – Xiaomi regularly restores advertising components.
  • 🎯 Personalized recommendations: The system analyzes your preferences (for example, through Mi Account) and selects targeted advertising.
  • πŸ“¦ Pre-installed apps: Some services (such as Mi Video or Prime Video) have their own ad units that are displayed regardless of system settings.

Interestingly, Xiaomi TVs sold in Europe tend to have fewer ads, due to local data protection laws (GDPR), and in Russia, India and China, inserts are more common, and it’s worth noting that Google TV models (such as the Xiaomi TV A2 2023) may be advertising because of Google services, not just Xiaomi.

πŸ“Š How often do you get annoyed by Xiaomi ads? TV?
All the time, after every video.
Sometimes, but tolerably.
There is no advertising or it does not interfere
I don't know how to turn it off.

Method 1: Disabling Advertising through Standard Settings (without root)

If you’re not ready for radical measures, start with basic settings, which is suitable for most Xiaomi Mi TV, Redmi TV and Mi Box S/Mi Box 4 models. Importantly, after updating the firmware, some menu items may be reset β€” they will have to be reconfigured.

Here's the step-by-step instruction:

  1. Open Settings (cog in the upper right corner of the main screen).
  2. Go to Accounts and Security β†’ Advertising (on some models, the path may differ: Settings β†’ System β†’ About TV β†’ Advertising services).
  3. Turn off the following options: πŸ”˜ Personalized Advertising (or Recommendations Based on Your Use) πŸ”˜ Showing ads on the main screen πŸ”˜ Advertising notices (if any)

Settings

Applications β†’ Application management

Mi Video

PatchWall

Live TV

  • πŸ“΅ Turn off autostart.
  • 🚫 Stop showing notifications.
  • πŸ—‘οΈ Clear the cache and data (Clear the data button).
  • In the DNS 2 field, you can enter a backup address (e.g., 176.103.130.131 for AdGuard).
  • Save settings and restart the TV (Settings β†’ Device β†’ Reboot).
DNS-serverAddressEffectiveness against advertisingCons
AdGuard DNS176.103.130.130⭐⭐⭐⭐⭐It can slow down the loading of some websites.
Cloudflare Family1.1.1.3⭐⭐⭐⭐Not blocking all Xiaomi ads
NextDNSRegistration is required⭐⭐⭐⭐⭐Free traffic restrictions (300k requests/month)
Google DNS8.8.8.8⭐⭐It has almost no effect on advertising.

After changing the DNS, the ads at the end of the video should disappear after 5-10 minutes (cache refresh time).If this does not happen, try clearing the app cache (Settings β†’ Applications β†’ Application Management β†’ Mi Video β†’ Clear the cache).

πŸ’‘

If some applications (such as Disney+ or OKKO) stop working after changing the DNS, return the standard DNS or use NextDNS with custom rules.

Method 3: Remove Advertising Applications via ADB (for Power Users)

If standard methods didn’t work, you can remove the system apps responsible for displaying ads using ADB (Android Debug Bridge), a method that requires connecting the TV to a computer and basic command line knowledge. It works on all Xiaomi models with Android TV (including the Mi Box 4K and Redmi Smart TV).

You'll need:

  • πŸ–₯️ Computer with Windows/macOS/Linux.
  • πŸ”Œ USB-cable (for Mi Box) or access to the same Wi-Fi network (for TVs).
  • πŸ› οΈ Utility. ADB Tools (download and unpack platform-tools).

Step-by-step:

  1. Turn on USB debugging on your TV: Go to Settings β†’ About TV. Press 7 times on the build number (you will be a developer message). Go back to Settings β†’ For developers and enable USB debugging and network debugging.

Settings β†’ Network

platform-tools

adb connect [IP_ address television]:5555

For example: adb connect 192.168.1.100:5555 (for Wi-Fi connection).

adb shell pm list packages | grep -i miui
adb shell pm uninstall --user 0 com.miui.systemAdSolution


adb shell pm uninstall --user 0 com.xiaomi.mitv.appstore




adb shell pm uninstall --user 0 com.miui.videoplayer




adb shell pm uninstall --user 0 com.mitv.tvhome

adb shell reboot
List of dangerous bags for removal
Do not delete the following packets – this may cause system failure: com.android.tv.settings, com.google.android.gsf, com.android.vending (Google Play).

After removing the com.miui.systemAdSolution and com.mitv.tvhome packages, the ads at the end of the video disappear forever, but some PatchWall features (such as content recommendations) may stop working. If the TV starts to glitches, restore the deleted packages via the command:

adb shell cmd package install-existing com.miui.systemAdSolution

⚠️ Note: On TVs with Android 11 firmware+ (for example, Xiaomi TV A2 2023) some packets are protected from deletion, in which case use the command adb shell pm disable-user instead of uninstall.

Method 4: Disabling Advertising through Hosts (Alternative Root)

If you don't have root rights, but you want to block ads at the system level, you can edit the hosts file, which intercepts requests to the ad servers and redirects them to an empty address, suitable for all Xiaomi models, but requires an ADB connection.

Instructions:

  1. Connect to the TV via ADB (as in Method 3).
  2. Download the hosts file from your TV: adb pull /system/etc/hosts
  3. Open the downloaded file in any text editor (for example, Notepad++).
  4. Add the following lines at the end of the file (blocking Xiaomi ad domains): 127.0.0.1 ad.mi.com 127.0.0.1 sdkconfig.ad.intl.xiaomi.com 127.0.0.1 track.mi.com 127.0.0.1 data.mistat.intl.xiaomi.com 127.0.0.1 o2o.api.xiaomi.com
  5. Save the file and upload it back to the TV: adb push hosts /sdcard/adb shell su -c "mount -o rw,remount /system" adb shell su -c "cp /sdcard/hosts /system/etc/hosts" adb shell su -c "chmod 644 /system/etc/hosts" adb shell reboot
  6. Install Magisk to get root: Download Magisk and transfer it to a flash drive. In TWRP, select Install β†’ Specify Magisk.zip β†’ Swipe to Confirm Flash.

Method 3

After getting root, you can:

  • 🧹 Remove all Xiaomi system applications (including PatchWall).
  • πŸ”’ Install AdAway or Blokada to automatically block ads.
  • πŸ”„ Disable Forced Firmware Updates.

⚠️ Note: On Xiaomi TVs with an Amlogic chip (such as the Mi Box S), the process of unlocking the bootloader may be different. TV X Series) may require a special cable to run through the UART.

How to prevent the return of advertising after updates?

Even if you managed to remove the ad, it can come back after the firmware update.

  • πŸ”• Turn off automatic updates: Go to Settings β†’ On TV. β†’ System Update. Turn off Automatic Update Download. If the option is not available, block the updates through ADB: adb shell pm disable-user --user 0 com.xiaomi.upnp
  • πŸ›‘οΈ Use a firewall: Set a rule on the router to block Xiaomi domains (for example, through OpenWRT or Tomato). Add to the blacklist of addresses: ad.mi.com sdkconfig.ad.intl.xiaomi.com o2o.api.xiaomi.com
  • πŸ”„ Check settings regularly: After each manual update, repeat the steps from Method 1 and Method 2. Watch for custom firmware (e.g. LineageOS for the first time). TV) β€” They're often devoid of advertising.

If you still decide to update the firmware, first make a backup of the current settings through ADB:

adb backup -apk -obb -shared -all -f backup.ab

This will allow you to quickly restore the system if the ad returns.

FAQ: Frequent questions about advertising on Xiaomi TV

❓ Why did the advertisement reappear after the reset?
Factory reset restores all system applications, including ad modules. To avoid this, before reset: Backup the list of installed applications through ADB. After reset, immediately turn off the Internet and repeat the steps from Method 1 and Method 2. If the ad returns, use Method 3 (ADB) or Method 4 (hosts).
❓ Can you remove advertising on Xiaomi? TV computer-free?
Yes, but the possibilities are limited: πŸ“΅ Disable personalized advertising in settings (see Method 1). 🌐 Change. DNS on AdGuard directly in the network settings (see Method 2). πŸ“± Install Blokada on TV (requires download) APK via Send Files to TV To completely remove ads without a PC, you will need root, but receive it without a flash drive. ADB practically impossible.
❓ Will YouTube work without ads after these actions?
No. The ads inside YouTube (clips before videos, banners) are run by Google, not Xiaomi: πŸ“Ί Use SmartTubeNext (an alternative YouTube client for Android) TV, requires installation through ADB). πŸ›‘οΈ Install uBlock Origin on the router (if it supports installation of additional software). πŸ’° Get a YouTube Premium (official way).
❓ Why Hosts stopped working after editing?
Some services (such as Netflix or Disney)+) If you block their domains in the hosts file, they may not work: πŸ” Check the hosts file for extra records (for example, 127.0.0.1 netflix.com). πŸ”„ Restore the original file hosts: adb shell su -c "mount -o rw,remount /system" adb shell su -c "echo '127.0.0.1 localhost' > /system/etc/hosts" πŸ› οΈ Use NextDNS or AdGuard Home on your router instead of editing hosts.
❓ What are Xiaomi models? TV no-advertising?
Advertising is present on all Xiaomi and Redmi TVs, but the number varies: πŸ“‰ Minimum Advertising: Models for the European market (e.g. Xiaomi) TV A2 43" (EU)). πŸ“ˆ Maximum advertising: Models for India and China (e.g. Redmi Smart) TV X Series). πŸ–₯️ The Mi Box S and Mi Box 4K They have ads, but it is easier to disable them through ADB. The only way to avoid advertising is to buy TVs without PatchWall (for example, with pure Android). TV Google TV, Xiaomi TV A Pro, however, even these can be used to advertise from Google.