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).
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-server | Address | Effectiveness against advertising in games |
|---|---|---|
| AdGuard DNS | dns.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 Family | 1.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:
- ๐ฅ๏ธ 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).
- ๐ Connect the phone to the PC and type in the command line:
adb shell pm hide com.miui.systemAdSolution- ๐ 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.systemAdSolutionUSB 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:
- Download the app from the official website (not from Google Play โ there is a stripped-down version).
- Launch the application and activate it. VPN-connection.
- 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?
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:
- ๐ Unlock the bootloader via Mi Unlock Tool (waiting required) 7-30 day-to-day).
- ๐ฅ Download the firmware for your model from the site XDA Developers.
- ๐ ๏ธ Install custom recovery (TWRP Or OrangeFox).
- ๐ 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.