How to permanently remove ads from the phone Xiaomi Mi 8: the complete guide

Owners of Xiaomi Mi 8 often face intrusive advertising in system applications, browser and even on the lock screen. the manufacturer has integrated advertising modules into the MIUI shell for monetization, but users can legally disable most of the ads without compromising functionality. In this article, we will analyze all the working methods from standard settings to advanced methods using ADB and third-party utilities.

It's important to understand that there are two types of ads on the Mi 8: system (built into MIUI) and applications (from Google or third-party services). The first one can be removed completely, the second one can only be limited. We will focus on the first type, because it is the type that annoys users the most. All methods are tested on current versions of MIUI 12-14 and do not require superuser rights (root), unless otherwise indicated.

1. Disabling Advertising through MIUI Settings

The easiest way is to use the built-in shell options, and Xiaomi provides the option to turn off some of the ads legally, but these settings are often hidden in the back of the menu.

Go to Settings โ†’ About Phone and 7 times click on the MIUI Version to activate Developer Mode. Then go back to the main settings menu and open Additional โ†’ Special Features โ†’ Advertising. Here you will find switches for:

  • ๐Ÿ“ฑ Recommendations MIUI โ€” Advertisements in the application menu and on the desktop
  • ๐Ÿ” Search Tips โ€“ Advertising in the Search Bar
  • ๐Ÿ“Š Personalized Ads โ€“ Targeted Ads Based on Your Activity
  • ๐Ÿ”„ Updates MIUI โ€” notifications about new firmware versions (often containing promos)

Turn off all sliders and reboot the device, which removes up to 60 percent of system ads, but doesn't affect ads in Mi Browser or apps like Mi Video and Music.

๐Ÿ’ก

If your region does not have Ads in its settings, try changing the region to India (Settings โ†’ Additional โ†’ Region).In Indian firmware, Xiaomi provides more options to disable ads.

2. Blocking ads through MIUI Ads Blocker (no root)

For deep cleaning from advertising, you can use the MIUI Ads Blocker utility, an informal solution that modifies system files without obtaining root rights. The method works on the Mi 8 thanks to the support of an unlocked bootloader.

  1. Download MIUI Ads Blocker from GitHub (select the latest version).
  2. Connect your phone to your PC in USB Debugging mode (Settings โ†’ About Phone โ†’ MIUI Version โ†’ 7 taps โ†’ Developer Settings โ†’ Debugging over USB).
  3. Run the script miui_adb_blocker.bat and follow the instructions.

The utility is automatic:

  • ๐Ÿ›ก๏ธ Blocks domains of Xiaomi ad servers through /etc/hosts
  • ๐Ÿ”ง Disables system services responsible for displaying ads
  • ๐Ÿ“ต Removes the cache of advertising modules

Once you execute the script, restart your phone, and the effect is noticeable immediately: banners disappear in Settings, Browser, and Weather, but the method does not guarantee 100% results โ€“ some ads may appear after MIUI updates.

What to do if the script doesnโ€™t work?
After launch, MIUI Ads Blocker ads remain, check: 1. Have you allowed debugging by USB on your phone (you should see a notification about your connection to your PC). 2. USB-cable (cheap cables often don't transmit data). 3. Does the antivirus on the PC block the execution of the script (add folder to exceptions). 4. Is the version relevant? MIUI (On very old firmware, the method may not work).

3. Set up a private DNS to block ads

An alternative way is to redirect advertising requests to โ€œemptyโ€ servers through the Internet. DNS-above-HTTPS (DoH is universal and works on any Android device, including Mi. 8. You do not need root rights or special knowledge.

Instructions:

  1. Open Settings โ†’ Connections โ†’ Private DNS.
  2. Select the host name of the DNS provider.
  3. Enter one of the addresses: dns.adguard.com (AdGuard DNS โ€“ blocks ads and trackers) doh.centraleurope.cloudflare-dns.com (Cloudflare โ€“ filters malicious sites) dns.nextdns.io (NextDNS โ€“ customized filters)

Save the settings and restart the phone.

The effect will appear in 5-10 minutes: banners will disappear in the browser, some applications and on sites. However, MIUI system ads (for example, in Settings) will remain โ€“ they need one of the previous methods.

๐Ÿ“Š What method have you tried to block ads?
Turned off in MIUI settings
Used. ADB-team
Tweaking the DNS
Set up third-party blockers
I've tried nothing.
MethodEfficiencyDifficultyRoot is required.Reversibility
MIUI settings40โ€“60%โญโŒ No.โœ… Yes.
MIUI Ads Blocker80โ€“90%โญโญโŒ No.โœ… Yes.
Private DNS50โ€“70%โญโŒ No.โœ… Yes.
ADB-team95%+โญโญโญโŒ No.โœ… Yes.
Root + Xposed99%โญโญโญโญโœ… Yes.โš ๏ธ Risk of โ€œbricking"

4. Advanced method: ADB-deep-cleaning

For users willing to work with the command line, ADB (Android Debug Bridge) offers maximum control over advertising. This method removes the system packages responsible for displaying ads and blocks their update. On the Xiaomi Mi 8 with an unlocked bootloader, the method works stably, but requires caution - the wrong commands can disrupt the system.

Step-by-step:

  1. Install Platform Tools on your PC.
  2. Connect the Mi 8 to USB and activate Debugging over USB.
  3. Open the command line in the ADB folder and execute: Adb devices Make sure the device is defined.
  4. Enter the commands alternately: 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.weather2 adb pm hide com.android.browser shell hide com.

These commands are deleted:

  • ๐Ÿ“Š Analytics. MIUI (Data collection for targeted advertising)
  • ๐Ÿ”„ System application updates (often containing advertising modules)
  • โ˜๏ธ Weather and browser (main sources of banners)

Download Platform Tools from the official Android website

Enable debugging over USB on your phone

Connect the original USB-cable

Check the definition of the device by the adb device command

Backup of important data-->

โš ๏ธ Note: Deleting system packages may cause some functions (such as weather or browser) to function in an unstable way. If you have problems after executing commands, restore the packets via the adb shell cmd package install-existing command with the packet name.

5. Alternative methods: from customization to root

If standard methods don't work, consider radical solutions that require more time and technical skills, but guarantee almost no advertising.

1. Installation of custom firmware

Firmware like LineageOS or Pixel Experience are devoid of MIUI advertising modules. For the Mi 8, stable builds based on Android 10-12 are available.

  • ๐Ÿš€ Clean Android without Bloatware
  • ๐Ÿ”’ Regular security updates
  • ๐Ÿ› ๏ธ Possibility of fine tuning

Cons: loss of MIUI features (e.g., Double Apps or Read Mode), risk of loss of warranty.

2. Root + Magisk + Xposed

Getting root permissions gives you access to modules like AdAway or XprivacyLua that block ads at the system level. On the Mi 8, you need to:

  1. Unlock the bootloader through the Mi Unlock Tool.
  2. Install TWRP and flash Magisk.
  3. Activate modules through Magisk Manager.

โš ๏ธ Warning: Root rights void Xiaomi's warranty and may disrupt banking applications (due to SafetyNet trigger).+ The problem can be bypassed by the Universal SafetyNet Fix module, but it requires additional configuration.

6 How to get it all back if something goes wrong

If after manipulations with the system the phone began to work unstable (for example, the settings stopped opening or the mobile network disappeared), use one of the methods of rollback:

1.Dumping via Fastboot

Download the official firmware for Mi 8 (codename dipper) from the Xiaomi Firmware Updater website and run it through the command line:

fastboot flash all firmware.zip

2. Recovery through TWRP

If you have a custom Recovery installed, load into it (Loudness up + Power) and select Wipe โ†’ Format Data, then swipe through the backup or clean firmware.

3. Minimalist rollback

If the problem is with the remote packets, return them with the command:

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

Replace com.miui.analytics with the desired package (the full list can be obtained by adb shell pm list packages | grep miui).

๐Ÿ’ก

Before any manipulation of the system, back up via Settings โ†’ System โ†’ Backup or TWRP. This will allow you to quickly recover data when a crash occurs.

FAQ: Frequent questions about removing ads on Xiaomi Mi 8

โ“ Why After Updating MIUI The commercial reappeared?
Xiaomi periodically resets ad settings for major updates. After update: Repeat steps from the first section (disable in settings). ADB-commands, run them over again -- some packets may have recovered. MIUI Ads Blocker.To avoid an issue, turn off automatic updates MIUI In Settings โ†’ The phone. โ†’ Updating the system โ†’ โš™๏ธ โ†’ Auto-update.
โ“ Can you remove advertising without a computer?
Yes, but the efficiency will be lower: ๐Ÿ“ฑ Settings MIUI (section 1 of this article). ๐Ÿ”’ Private DNS (section). ๐Ÿ›ก๏ธ Blocking apps like Blokada (works without root, but does not block all system ads). Complete removal of ads without a PC will require root or custom firmware, but this is risky without a backup.
โ“ Will Google Pay work after the ads are removed?
If you haven't used root or modified your system partitions, Google Pay will continue to work. The only problems you have are: Install Magisk (solved by Universal SafetyNet Fix); change the build.prop file; Install uncertified firmware (such as custom builds without Google services); check SafetyNet status through the SafetyNet Test app from the Play Market. If the test fails, Google Pay will block payments.
โ“ How to remove ads in the Mi Browser browser?
Mi Browser is one of the main sources of advertising. To remove it: Open your browser, go to the browser. โ‹ฎ โ†’ Settings โ†’ Confidentiality and turn off: ๐Ÿ” Personalized recommendations ๐Ÿ“Š Data collection MIUI Install an alternative browser (like Firefox or Bromite) and make it the default browser. ADB-command to disable the browser: adb shell pm hide com.android.browser If the browser is updated through the Play Market and the ads return, delete it completely through ADB: adb shell pm uninstall --user 0 com.android.browser
โ“ Is it legal to turn off ads on Xiaomi?
All the methods in this article (except for hacking) DRM or distribution of pirated software) is completely legal. Xiaomi provides some options for disabling advertising in the settings, and the use of ADB or custom DNS does not violate the user agreement: ๐Ÿ”ง Modifying system files (e.g. via Magisk) may result in loss of warranty. ๐Ÿ“ต Blocking ads in apps (such as games) may violate the rules of a particular service (but not the law). ๐Ÿ”„ Unlocking the bootloader is officially allowed by Xiaomi, but voids the warranty. In most countries (including Russia, the EU and the United States), the user has the right to modify his device, as long as it does not violate the copyright of third parties.