How to completely remove advertising on Xiaomi smartphones with MIUI 12: a step-by-step guide

Owners of Xiaomi smartphones based on MIUI 12 often face intrusive advertising in system applications, notifications and even on the lock screen. Despite the fact that the branded shell offers rich functionality, integrated ad units can significantly spoil the user experience, especially in budget and mid-budget models, where advertising appears most often.

It is worth noting that MIUI 12 β€” Not the most recent version of the shell (at the time) 2026 year-to-date MIUI 14/15 And HyperOS, but many users still use devices on this firmware, and fortunately, there are several ways to disable ads, from standard settings to usage. ADB-In this article, we will discuss all working methods, including those that do not require root rights.

It is important to understand that some methods may differ depending on the regional firmware (Global, China, EEA), for example, in the European version (MIUI EEA), advertising is initially less, but it is still present in system utilities like Cleaner or Security.

If you are ready to get rid of annoying banners once and for all, proceed to a detailed analysis of each method.

1. Disable advertising through standard settings MIUI 12

The first and easiest way is to use built-in shell options. Xiaomi provides the option to partially restrict ad impressions, although some banners may remain.This method is suitable for users who do not want to go into technical details.

Go to Settings β†’ About Phone and click on the MIUI Version several times until the notification β€œYou’ve become a developer!” appears. This will unlock the hidden Developer Menu.

  • πŸ“± Open the Settings. β†’ Additionally. β†’ Special facilities.
  • πŸ” Find the Advertising Notices item and turn it off.
  • πŸ›‘οΈ Go to Settings. β†’ Annexes β†’ Application management β†’ Settings (cog in the upper right corner) β†’ Show recommendations and deactivate the option.
  • πŸ“Š In the Security section β†’ Cleaner disable Recommendations and Personalized Services.

These actions will reduce the amount of ads in notifications and system utilities, but they won't eliminate them completely, like banners in Mi Video or Mi Music, they can stay, and more radical measures will be needed to remove them.

πŸ“Š What advert in MIUI You're the one who's most annoyed?
Notifications.
System applications (Cleaner, Security)
On the lock screen
In the launcher (folder "Recommended")
All of the above.

2.Using ADB to Deeply Disable Advertising

If standard settings don’t work, the next step is to use Android Debug Bridge (ADB), a method that allows you to disable system-level advertising services without getting root permissions, you’ll need a computer with Xiaomi drivers installed and USB debugging enabled.

First, activate USB Debugging in the Developer Menu (how to open it, described in the previous section). Then connect your smartphone to your PC and execute the following commands in the terminal (cmd for Windows or Terminal for macOS/Linux):

adb shell pm disable-user --user 0 com.miui.systemAdSolution


adb shell pm disable-user --user 0 com.xiaomi.midrop




adb shell pm disable-user --user 0 com.android.browser




adb shell pm disable-user --user 0 com.miui.analytics




adb shell pm disable-user --user 0 com.xiaomi.ab




adb shell pm disable-user --user 0 com.xiaomi.ab.test

Each team disables a separate advertising module:

  • πŸ”§ com.miui.systemAdSolution – system advertising solutions.
  • πŸ“€ com.xiaomi.midrop – file transfer service (sometimes shows promo).
  • 🌐 com.android.browser – standard browser with banners.
  • πŸ“Š com.miui.analytics – analytics collection (may affect targeted advertising).

Once you have completed the commands, restart your device. Ads should disappear from most system applications. If some banners are left, check if Xiaomi services have been updated through Google Play.

β˜‘οΈ Preparation for ADB-team

Done: 0 / 5

3. Removing Advertising through Hosts File Editing

Another effective way is to block ad domains at the hosts file level, which requires root rights or use specialized applications like AdAway (for non-rooted devices, ADB will be required).

If you have root, open /system/etc/hosts in any text editor (like Root Explorer) and add the following lines:

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 api.brs.intl.miui.com




127.0.0.1 globalapi.ad.xiaomi.com

For devices without root, you can use AdAway (requires unlocking the bootloader and installing through Magisk) or the application DNS66, which redirects traffic through a blocking DNS-server.

Important: editing a hosts file without root can cause system applications to malfunction.

MethodNeed root?DifficultyEfficiency
Standard settings❌ No.⭐ Low.⚠️ Partial
ADB-team❌ No.⭐⭐ Mediumβœ… Tall.
Editing by hostsβœ… Yes.⭐⭐⭐ Tall.βœ… Complete.
Blocking applications❌ No, but you need rights)⭐⭐ Mediumβœ… Tall.

4. Alternative firmware: transition to custom assemblies

If none of the above methods worked, the radical solution is to install custom firmware.

  • πŸ“± LineageOS – pure Android without advertising and unnecessary services.
  • πŸ”„ Pixel Experience – firmware with Google Pixel interface.
  • ⚑ ArrowOS – Optimized Open Source Build.
  • πŸ›‘οΈ MIUI EU β€” modified MIUI Advertising free (but requires unlocking the bootloader).

The installation process shall include:

  1. Unlock the bootloader through the Mi Unlock Tool (can take up to 720 hours of waiting for new accounts).
  2. Installation of custom recavery (TWRP or OrangeFox).
  3. The firmware of the selected build and GApps (if you need Google services).

⚠️ Attention: Installing custom firmware voids warranty and can lead to a device blink if you do not do the right thing. TWRP Or Mi Flash Tool.

What is unlocking the bootloader?
Unlocking the bootloader is a process that allows you to install unofficial firmware on Xiaomi devices. By default, the bootloader is locked to protect against unauthorized changes. Unlocking requires you to link your Mi Account to the device and wait for approval from Xiaomi (usually 168-720 hours). Once unlocked, you can sew custom recoveries and ROM.

5.Advertising Blocker Apps for MIUI 12

If you don't want to interfere with system files, you can use third-party applications.

  • πŸ›‘οΈ Blokada – Blocks Advertising at Level DNS/VPN rootless.
  • 🚫 AdGuard – filters traffic and removes banners in the browser and applications.
  • πŸ”’ NetGuard – controls the access of applications to the network (you can manually block advertising domains).

For maximum efficiency, set up Blokada or AdGuard to block the following domains:

ad.mi.com


sdkconfig.ad.intl.xiaomi.com




api.brs.intl.miui.com




globalapi.ad.xiaomi.com




tracker.ai.xiaomi.com

⚠️ Note: Some blockers (such as AdGuard) require customization VPN-connection, which may conflict with banking applications. In this case, use the "Local" mode VPN" Add banking programs to the exceptions.

πŸ’‘

Before installing the blocker, check if it blocks updates to system applications. In the AdGuard settings, you can add update.miui.com and api.io.mi.com domains to the whitelist.

6. Manual removal of advertising packages (root required)

For root-right users, the most radical method is to completely remove ad packages, which can be done through Root Explorer or ADB with super-user rights.

com.miui.systemAdSolution


com.xiaomi.midrop




com.android.browser




com.miui.analytics




com.xiaomi.ab




com.xiaomi.ab.test




com.miui.msa.global




com.miui.player




com.xiaomi.gamecenter.sdk.service

To remove the packet through ADB, use the command:

adb shell


su




pm uninstall -k --user 0 name packet

Reboot your device after you delete it. Be careful: Deleting some packets (e.g. com.miui.msa.global) can cause system services to crash. Before you delete, back up your device via Titanium Backup or a similar application.

πŸ’‘

Deleting system packets is irreversible without backup. If you have problems after deleting, restore the packet from the backup or reflash the device.

7. Additional Advice: How to Avoid Return Advertising

Even after successful disabling of the advert, it may reappear after the MIUI update.

  • πŸ”„ Turn off automatic updates to system apps in Google Play (find Miui System Ad Solution, Cleaner, and more, click on three dots). β†’ "Turn off auto-update").
  • πŸ“΅ Regularly check the activity of advertising services through the ADB AB: adb shell pm list packages | grep -i "ad\|xiaomi\|miui"
  • πŸ”§ Use App Ops to restrict Internet access for ad modules. To open App Ops, do adb shell am start. -n com.android.settings/.Settings$AppOpsSummaryActivity

If you notice that the ad has returned after the update, repeat the steps from the section with ADB-Commands or return to backup through TWRP.

FAQ: Frequent questions about removing ads in MIUI 12

❓ Why After Disabling Advertising Through ADB It reappears?
This is due to automatic updates to system applications via Google Play or MIUI Updater.To prevent ad returns: Disable auto-update for com.miui.systemAdSolution and com.xiaomi.midrop. Freeze packages using Titanium Backup or App Quarantine. Use AdGuard or Blokada to block ad server domains.
❓ Can you remove advertising without a computer?
Yes, but with limitations. Without a PC, you can: Disable advertising notifications in standard settings (section 1); Install Blokada or AdGuard to block traffic; Use DNS66 to forward requests to a blocking DNS (e.g., 1.1.1.3 from Cloudflare); however, you will need ADB or root to completely remove ad modules.
❓ Will it work? MIUI 12 without ads after resetting to factory settings?
No, reset will return all system applications and settings to their original state, including the ad modules. After reset, you will have to re-do all the steps to turn off the adverts. To avoid this, back up using TWRP or Mi Backup (but note that some settings will not be saved).
❓ Can you turn off advertising on Xiaomi with MIUI 12 without root?
Yes, most of the methods in this article (except for editing hosts and removing packets) do not require root rights: ADB-commands to disable advertising services. Blocking applications (Blokada, AdGuard). MIUI 12 Root is only needed for deep changes, such as removing system packages or editing hosts.
❓ Why in the world MIUI EEA Advertising is less than in Global?
The MIUI EEA (European Economic Area) version is designed for the European market, where stricter data protection laws (GDPR) apply, and for this reason, it has some advertising services and analytics collection disabled by default. However, even in MIUI EEA, ads can appear in: System utilities (Cleaner, Security), Xiaomi applications (Mi Video, Mi Music). Notifications from Mi Account. To completely remove advertising, use the methods from this article.