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+:
- Open Settings β Google β Advertising.
- Activate the switch to Turn off personalized advertising.
- Return to the main settings menu and go to Settings β Applications β Application Management β All Apps.
- 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:
- Open the Settings. β The phone.
- Click 7-10 times on the MIUI version until you get a message.
- Return to the main settings menu and open Additional β for developers.
- 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.paymentThese commands are deleted:
| Package | What's removed | Effects of consequences |
|---|---|---|
| com.miui.analytics | MIUI statistics collection | Xiaomiβs βrecommendationsβ will stop coming |
| com.xiaomi.midrop | Mi Drop (file sharing) | Notifications of data transfer will disappear |
| com.android.browser | Standard Mi browser | Advertising in the browser will disappear, but you will have to install an alternative (Chrome, Firefox) |
| com.miui.hybrid | Hybrid Web Views for Advertising | Pop-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:
- Go to Settings β Connections β Private DNS.
- Select the DNS provider hostname and type dns.adguard.com.
- 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
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:
- Unlock the bootloader through the Mi Unlock Tool.
- Download the firmware Xiaomi.eu for your model from the official website.
- 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:
- Download the module (for example, Disable_Miui_Battery_Ads) zip.
- Open Magisk Manager and go to Modules β Install from Storage.
- Select the downloaded file and wait for the installation.
- 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?
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:
- Go to Settings β Applications β Application Management.
- Find Cleaner, Security, Mi Video and Mi Music.
- 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:
- Did you get MIUI Optimization after the update?
- Have you seen any new advertising packages (check out adb shell pm list packages | grep -i "ad")?
- 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.