How to permanently remove advertising from games on Xiaomi: from system settings to root rights

Advertising in mobile games on Xiaomi smartphones has become a real problem for many users. Even in paid games or after buying a premium account, banners and videos continue to appear due to the built-in MIUI system services that automatically load ad modules. In this article, we will discuss all the current ways to remove ads, from basic settings to advanced methods using ADB and changing the hosts file.

Xiaomiโ€™s adverts are integrated not only into games, but also into system applications like Security, Themes or Music, which means that even after disabling ads in MIUI settings, they can continue to be shown in games through third-party SDKs (such as AdMob or Unity Ads), and we tested all methods on the latest versions of MIUI 14/15 (including global and Chinese firmware) and selected only those that work in 2026.

1. disable personalized advertising in MIUI settings

The first and easiest way is to deactivate personalized ads directly in your system settings, which will not remove ads completely, but will significantly reduce the amount of ads you receive, especially in games that use Googleโ€™s ad networks.

Instructions:

  • ๐Ÿ“ฑ Open the Settings. โ†’ Google โ†’ Advertising.
  • ๐Ÿ”„ Click Reset Advertising ID (This will reset your profile for targeted advertising).
  • ๐Ÿšซ Activate the switch to Turn off personalized advertising.
  • ๐Ÿ”’ Return to the main settings menu and go to Settings โ†’ Annexes โ†’ Application management โ†’ Google Play Services, then click Clear Cache.

This method works on all Xiaomi models, including the Redmi Note 12, POCO X5 and Mi 13. However, it does not block ads embedded directly into the game code (for example, through AppLovin or IronSource).

๐Ÿ“Š What kind of Xiaomi model do you have?
Redmi Note 12/Pro
POCO X5/X6
Mi 13/14
Redmi 12/12C
Another model

2. Blocking Advertising through DNS Change

One of the most effective ways to use alternatives DNS-This method does not require root rights and works at the network level, blocking the loading of banner ads before they are displayed in the game.

We recommend using AdGuard or NextDNS DNS, as they specialize in blocking mobile ads.

  • ๐ŸŒ Go to Settings. โ†’ Connections and sharing โ†’ Private DNS.
  • ๐Ÿ”ง Select the host name of the private provider DNS enter:
  • ๐Ÿ”„ Save the settings and restart the smartphone.
DNS-serverAddressEffectiveness against advertising in games
AdGuard DNSdns.adguard.com or 176.103.130.130โญโญโญโญ (block 80-90% promotion)
NextDNS (with configuration)45.90.28.167 (Configuration ID: 693553)โญโญโญโญโญ (lock-in 95%+ properly adjusted)
Cloudflare Family1.1.1.3โญโญ (Blocks only malicious advertising)

Important: After changing the DNS, some games may give up a server connection error (especially online games like PUBG Mobile or Free Fire).In this case, temporarily return the standard DNS or add game domains to the whitelist in the NextDNS settings.

๐Ÿ’ก

If you start to lag after changing your DNS, try using Cloudflareโ€™s 1.1.1.1: Faster Internet app, which allows you to quickly switch between DNS profiles without manually entering settings.

3.Use ADB to disable MIUI system advertising

If previous methods didnโ€™t work, you can use Android Debug Bridge (ADB), a deep-tuning tool that removes ads at the MIUI level, including banners in games that are downloaded through Xiaomiโ€™s system services.

Step-by-step:

  1. ๐Ÿ–ฅ๏ธ Install. ADB Tools on your computer and enable debugging by USB on a smartphone (Settings) โ†’ The phone. โ†’ Version. MIUI โ€” Press 7 times, then return to Settings โ†’ Additionally. โ†’ For developers).
  2. ๐Ÿ”Œ Connect the phone to the PC and type in the command line:
adb shell pm hide com.miui.systemAdSolution
  1. ๐Ÿ”„ Reset the device.

This method removes the MIUI system component that controls ad impressions, but can cause some features to function unstable (such as push notifications from Xiaomi).

adb shell pm uninstall -k --user 0 com.miui.systemAdSolution

USB debugging enabled

Installed drivers Xiaomi on PC

The smartphone is connected in the mode "File transfer"

Command Prompt Launched on behalf of Administrator-->

4. editing hosts file (requires root rights)

For users with unlocked bootloader and root access, the most reliable way to do this is to edit the hosts file, which blocks the ad domains at the operating system level, which completely removes banners from the games.

Instructions:

  • ๐Ÿ“ฑ Install a file manager with root support (such as Root Explorer or Root Explorer). FX File Explorer).
  • ๐Ÿ“„ Cross the path. /system/etc/hosts Open the file in the text editor.
  • โœ๏ธ Add the following lines to the end of the file (blocking popular ad networks):
127.0.0.1 ad.mi.com


127.0.0.1 data.mistat.xiaomi.com




127.0.0.1 sdkconfig.ad.intl.xiaomi.com




127.0.0.1 googleads.g.doubleclick.net




127.0.0.1 pagead2.googlesyndication.com

  • ๐Ÿ’พ Save the file, set the rights 644 (rw-r)--r--) and reboot the device.

โš ๏ธ Warning: Incorrect editing of the hosts file may result in loss of Internet access.Before making changes, back up the original file!

You can use pre-built hosts files from projects like Steven Black that contain thousands of blocked ad domains to automate the process, but note that a large hosts file can slow down the loading of web pages.

5. Installation of third-party ad blockers

If you don't have a root license, ADB-The teams didn't help, you can use specialized ad blocking apps:

  • ๐Ÿ›ก๏ธ Blokada โ€“ works without root, blocks advertising at the level VPN. Free version is limited to 5 locks per day.
  • ๐Ÿš€ AdGuard โ€“ Supports filtering DNS and HTTP-There's a premium version with extended rules.
  • ๐Ÿ” DNS66 โ€” Open source advertising through DNS (AdGuard, but without unnecessary functions).
  • ๐ŸŽฏ NetGuard โ€“ traffic blocker with the ability to manually add domains to the blacklist.

Example of Blokada setup:

  1. Download the app from the official website (not from Google Play โ€“ there is a stripped-down version).
  2. Launch the application and activate it. VPN-connection.
  3. In the settings, select Hosts โ†’ Activate all lists (we recommend leaving only AdAway and Steven Black for minimal battery consumption).

โš ๏ธ Note: Some blockers (e.g. AdGuard) may conflict with games that use cheat protection (e.g. Call of Duty Mobile or Genshin Impact).In this case, add the game to exceptions or disable the blocker while playing.

How do you check if the blocker is working?
Open your browser and go to d3ward.github.io/toolz/adblock.html. If the blocker is active, you will see a green sign saying "Ads are blocked."

6. Alternative methods: firmware and custom ROM

If none of the above methods worked, the last option is to install custom firmware without MIUI advertising modules. This method is only suitable for advanced users, as it requires unlocking the bootloader and potentially deprives of warranties.

Best Firmware for Xiaomi without Advertising:

  • ๐Ÿ“ฑ LineageOS โ€“ pure Android without unnecessary services Xiaomi.
  • ๐Ÿ”ง Pixel Experience โ€“ Google Pixelโ€™s interface firmware optimized for gaming.
  • โšก ArrowOS โ€“ light firmware with minimal resource consumption.
  • ๐ŸŽฎ Havoc-OS - firmware with advanced settings for gamers (supports overclocking) CPU/GPU).

Installation instructions:

  1. ๐Ÿ”“ Unlock the bootloader via Mi Unlock Tool (waiting required) 7-30 day-to-day).
  2. ๐Ÿ“ฅ Download the firmware for your model from the site XDA Developers.
  3. ๐Ÿ› ๏ธ Install custom recovery (TWRP Or OrangeFox).
  4. ๐Ÿ”„ Sweat the firmware through recovery, then run the Wipe Dalvik/Cache.

Advantages of custom firmware:

  • ๐Ÿšซ Total lack of advertising MIUI.
  • โšก Improved performance in games (due to lack of background processes).
  • ๐Ÿ”ง Possibility of fine tuning CPU/GPU game-play.

Disadvantages:

  • โŒ Loss of warranty (if the bootloader is unlocked).
  • ๐Ÿ”‹ Possible battery problems (some firmwares are not optimized for energy saving).
  • ๐Ÿ“ฑ Not all camera and sensor functions can work properly.

๐Ÿ’ก

Custom firmware is the most radical, but also the most effective way to get rid of advertising, but it is only suitable for experienced users who are willing to sacrifice stability for the sake of cleanliness.

FAQ: Frequent questions about removing ads in games on Xiaomi

โ“ Why After Disabling Advertising in Settings MIUI It's still in the games?
System settings MIUI Only ads from Xiaomi (such as Themes or Music) are blocked. SDK (AdMob, Unity Ads, etc., which are not dependent on settings MIUI. To block them, you need methods from this article (DNS, ADB or hosts).
โ“ Can you remove advertising in games without root rights?
There are several ways to do this: Use alternatives. DNS (For example, dns.adguard.com, install a blocker such as Blokada or AdGuard, disable personalized ads in Google settings. ADB-However, without root rights, you can not completely block ads in games that use protected advertising modules (for example, IronSource).
โ“ Will the ad blocking work on Chinese firmware? MIUI?
Yes, but with reservations: ๐Ÿ”„ DNS and ADB They work on any firmware (global, Chinese, European). โš ๏ธ On Chinese firmware (China) ROM) There may be no private menu available. DNS โ€” In this case, use applications like DNS Changer. ๐Ÿ“ต Some system applications (e.g. GetApps) on Chinese firmware may ignore ad blocking. For maximum efficiency, we recommend you to check out the global or European version. MIUI.
โ“ Why not after the shift? DNS Some games have stopped connecting to the internet?
Some online games (e.g. PUBG Mobile, Clash of Clans) block connections via public DNS due to cheat protection. Solutions: Temporarily return the standard DNS before launching the game. Use NextDNS with custom configuration where game domains are added to the whitelist. Disable the ad blocker for the duration of the game (in Blokada or AdGuard this is done with one tap).
โ“ How to get it all back if the Internet stopped working after editing hosts?
If you have edited the hosts file incorrectly, follow the following steps: Connect your smartphone to your PC and copy the original hosts file (you can download here). Use ADB to return the file to place: adb push hosts /system/etc/hosts adb shell chmod 644 /system/etc/hosts Reboot the device. If you don't have access to ADB, reset your settings via Recovery (the data won't suffer, but all settings will reset).