How to permanently remove ads on Xiaomi smartphones: the full guide 2026

Why is Xiaomi getting ads and can it be removed?

Owners of Xiaomi, Redmi, Poco and Black Shark smartphones regularly face intrusive advertising in system applications, notifications and even on the lock screen.This is not a coincidence, but part of the company’s business model: MIUI contains built-in ad modules that load banners through msa (Mobile Service Ads) and miui.analytics. In China and India, this monetization is standard, but for European users it often becomes an unpleasant surprise.

The good news is that you can remove ads on Xiaomi completely, both legal (disable services) and radical (firmware modifications). Bad news: after major MIUI updates, some of the ads may return, so you will have to repeat the settings. In this article, the current ways for MIUI 14/15 (Android 13/14), tested on models from Redmi Note 12 to Xiaomi 14 Ultra.

Before you start, consider that some methods require unlocking the bootloader or the rights of the superuser (root).If you are a beginner, start with safe ways (sections 2-4), and move to radical ones (sections 5-7) only when you are confident in your skills.

1. disable personalized advertising in MIUI settings

The easiest way to reduce the number of banners is to ban them. MIUI It's not going to take away the ads completely, but it's going to make them less intrusive. It's very relevant for all of today's Xiaomi smartphones. MIUI 12+:

  1. Open Settings β†’ Google β†’ Advertising.
  2. Activate the switch to Turn off personalized advertising.
  3. Return to the main settings menu and go to Settings β†’ Applications β†’ Application Management β†’ All Apps.
  4. Find Google Play Services, open Warehouse β†’ Space Management β†’ Delete all data.

These actions will reset your device’s advertising ID, causing the system to display less targeted banners, but system notifications from Xiaomi (such as new MIUI features) will still appear.

πŸ’‘

If, after disabling personalized advertising, banners in Mi Browser or Music remain, clear the cache of these applications manually through Settings β†’ Applications.

2. Blocking advertising services through MIUI Optimization

MIUI has a hidden MIUI Optimization menu that allows you to disable some of the advertising modules without root permissions, which works on most devices, but the path to settings may vary depending on the firmware version:

  1. Open the Settings. β†’ The phone.
  2. Click 7-10 times on the MIUI version until you get a message.
  3. Return to the main settings menu and open Additional β†’ for developers.
  4. Find the MIUI Optimization option and turn it off.

After restarting the device, you will notice that:

  • πŸ“± Disappeared banner ads in Settings (for example, in the Topics section).
  • πŸ”” Notifications of β€œrecommended applications” have ceased to arrive".
  • πŸ” Searches for settings no longer show "sponsored results".

Reboot your smartphone|Check for no advertising in Settings|Clear the "Themes" app cache"|Turn off auto-update MIUI at "Settings" β†’ The phone. β†’ Updating the system"-->

Important: Some firmware (e.g. MIUI Global for the European region) may not have MIUI Optimization option, in which case move on to the next method.

3. Uninstall system applications without root (ADB)

If previous methods failed, you can manually remove advertising applications through ADB (Android Debug Bridge), which does not require root rights, but requires connecting the smartphone to the computer.

  • πŸ–₯️ Install. ADB Tools on PC.
  • πŸ“± Turn on Debugging. USB In Settings β†’ For developers.
  • πŸ”Œ Connect your smartphone to your computer and confirm your trust in the device.

Now run the following commands in the command line (or Terminal on macOS/Linux):

adb shell


pm uninstall --user 0 com.miui.analytics




pm uninstall --user 0 com.xiaomi.midrop




pm uninstall --user 0 com.miui.systemAdSolution




pm uninstall --user 0 com.android.browser #Mi Browser with Advertising




pm uninstall --user 0 com.miui.bugreport




pm uninstall --user 0 com.miui.hybrid




pm uninstall --user 0 com.xiaomi.payment

These commands are deleted:

PackageWhat's removedEffects of consequences
com.miui.analyticsMIUI statistics collectionXiaomi’s β€œrecommendations” will stop coming
com.xiaomi.midropMi Drop (file sharing)Notifications of data transfer will disappear
com.android.browserStandard Mi browserAdvertising in the browser will disappear, but you will have to install an alternative (Chrome, Firefox)
com.miui.hybridHybrid Web Views for AdvertisingPop-up banners in system windows will disappear

Disabled MIUI Optimization | Remove applications via ADB| Used root| Haven't tried anything |Another way-->

Warning: Don't delete packets without knowing their destination, for example, deleting com.miui.home will cause the launcher to crash. If the phone starts to glittle after the commands, return the apps with the command:

adb shell cmd package install-existing <package>

4. Blocking Advertising via DNS or VPN

If you don't want to interfere with system files, you can block ad domains at the network level.

  • 🌐 Private DNS (Android 9+): Use the address dns.adguard.com or 1.1.1.3 (Cloudflare Family).
  • πŸ”’ VPN Ad-blocking: AdGuard VPN, Blokada or NextDNS.
  • πŸ“‘ Router: Set up domain locking via pi-hole or alternative DNS router.

Instructions for Private DNS:

  1. Go to Settings β†’ Connections β†’ Private DNS.
  2. Select the DNS provider hostname and type dns.adguard.com.
  3. Save and restart your smartphone.

This method blocks ads not only in MIUI but also in third-party apps (such as Instagram or YouTube), but it won’t help against built-in banners in system utilities (such as Cleaner or Security).

List of domains to block in AdGuard/NextDNS
miui.com api.ad.xiaomi.com sdkconfig.ad.xiaomi.com tracker.ai.xiaomi.com data.mistat.xiaomi.com sa.api.intl.miui.com

5. Installation of custom firmware (for advanced)

If you're willing to take drastic measures, flashing on a custom version of MIUI (e.g. Xiaomi.eu or LineageOS) will solve the problem of advertising once and for all. Xiaomi.eu firmware is a modified version of the official MIUI, cleared of advertising and Chinese services.

  • βœ… No system advertising (including banners in Settings and Themes).
  • βœ… Weekly updates with bug fixes.
  • βœ… Support for Google Camera and other Mods.

Disadvantages:

  • ⚠️ Requires an unlocked bootloader (the procedure takes up to 7 days to wait for permissions from Xiaomi).
  • ⚠️ Possible bugs with camera or sensors (depending on the model).
  • ⚠️ Warranty is cancelled (but restored after return to stock firmware).

Step-by-step:

  1. Unlock the bootloader through the Mi Unlock Tool.
  2. Download the firmware Xiaomi.eu for your model from the official website.
  3. Install it via TWRP or Fastboot (instructions are available on the 4PDA or XDA-Developers forum).

πŸ’‘

Custom firmware like Xiaomi.eu removes ads permanently, but requires unlocking the bootloader.This is the only method that works after MIUI updates.

6. Root Methods: Removing Advertising Through Magisk

If you already have root access (for example, through Magisk), you can remove ads at the system file level.

  • πŸ›‘οΈ Disable_Miui_Battery_Ads β€” removes ads from the battery menu.
  • πŸ“΅ NoMoreXiaomiAds – Blocks all Advertising Domains MIUI.
  • πŸ” MIUI Debloter – removes unnecessary system applications (including advertising).

Installation:

  1. Download the module (for example, Disable_Miui_Battery_Ads) zip.
  2. Open Magisk Manager and go to Modules β†’ Install from Storage.
  3. Select the downloaded file and wait for the installation.
  4. Reboot your smartphone.

Warning: improper root use can lead to bootloop.Before experimenting, backup through TWRP or OrangeFox Recovery.

What if after installing the Magisk module, the smartphone does not boot?
1. Enter Recovery Mode (press Power + Vol Up). 2. Go to Magisk β†’ Modules and disable the last module installed. 3. Reboot the device. 4. If it didn't help, reset via Wipe β†’ Format Data (delete all data!).

7. Alternative launchers and workarounds

If you don’t want to mess with the system settings, you can simply replace the standard MIUI applications with alternatives:

  • 🏠 Launcher: Nova Launcher, Lawnchair or Hyperion to replace standard MIUI Launcher with ads.
  • 🌐 Browser: Chrome, Firefox or Brave (with built-in ad blocker).
  • πŸ“ File Manager: Solid Explorer or FX File Explorer instead of Mi File Manager.
  • πŸ”’ Security: Malwarebytes or Bitdefender instead of Mi Security.

You can also disable the most "advertising" system applications:

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Find Cleaner, Security, Mi Video and Mi Music.
  3. Select Disable (do not β€œDelete” to avoid system errors!).

Warning: Disabling Security may weaken protection against viruses. Install an alternative antivirus if you decide to do so.

8 What to do if the ad returns after the update?

After major MIUI updates (e.g., from MIUI 14 to MIUI 15), some of the ad modules may be restored.

  • πŸ”„ Turn off auto-update in Settings β†’ The phone. β†’ Updating the system β†’ Settings (βš™οΈ) β†’ Auto-update.
  • πŸ“₯ Install updates manually by pre-checking reviews on forums (for example, 4PDA).
  • πŸ”§ Repeat the settings from sections 2-4 after each update.
  • πŸ›‘οΈ Use Magisk modules that automatically block new ad domains.

If the advert is back, check first:

  1. Did you get MIUI Optimization after the update?
  2. Have you seen any new advertising packages (check out adb shell pm list packages | grep -i "ad")?
  3. Have you lost your Private DNS settings?

πŸ’‘

Xiaomi regularly adds new ad mechanisms to updates. To stay clean, follow the news on XDA-Developers or Telegram channels like @miuiru.

FAQ: Frequent questions about advertising on Xiaomi

❓ Why does Xiaomi have ads even in the settings?
No, it's not a virus. Advertising in Settings, Themes and other system menus is part of Xiaomi's business model, and the company monetizes MIUI by displaying banners, especially in regions with low smartphone prices (India, China), and there are fewer ads in European firmware (MIUI Global), but there are still some.
❓ Can you remove ads without root and unlock the bootloader?
Yes, but not completely. Methods from sections 2-4 (disconnection) MIUI Optimization, ADB-teams, private DNS) They remove up to 80 percent of the ads, but the banners in Cleaner, Security, and some system notifications will remain.
❓ Will the warranty be returned if I unlock the bootloader to remove ads?
Technically, no. Unlocking the bootloader will void the warranty even if you return the stock firmware later. However, in practice, Xiaomi service centers often turn a blind eye to unlocking if the problem is not related to the software part (for example, a broken screen or a faulty battery). To restore the warranty, you can lock the bootloader back through the Mi Flash Tool (but this will erase all data!).
❓ Why After Removing Applications Through ADB There's still advertising?
You may not have removed all the ad packages. Check the full list through the command: adb shell pm list packages | grep -iE "miui|ad|analytics|xiaomi" Also, ads can be loaded through WebView or third-party apps (for example, Facebook or AliExpress), in which case the DNS level blocking will help (section 4).
❓ Which Xiaomi models are most affected by advertising?
The most β€œpromoted” devices are budget and mid-budget models for the Asian market: Redmi Note 11/12/13 (especially Indian versions); Poco M4/M5/M6 (MIUI for Poco firmware); Xiaomi 11 Lite/12 Lite; All smartphones on MIUI China (even flagships like Xiaomi 13 Ultra); Least advertising in European firmware (MIUI Global) and in models for Russia (due to local data protection laws).