How to permanently remove pop-up ads on Xiaomi: from system banners to third-party apps

Why does Xiaomi have pop-up ads and can it be removed?

Xiaomi smartphone owners often face the problem of intrusive banner ads that pop up in the settings menu, on the lock screen or even in system applications, the reason lies in the MIUI brand shell, which is integrated by default with the company’s advertising services. This is not a virus or the result of installing suspicious programs – this is how the brand’s business model works, compensating for the low price of devices.

The good news is that all advertising modules in MIUI can be disabled without root rights and third-party utilities using hidden system settings. Bad - the manufacturer regularly changes the paths to these options in new versions of firmware, so there is no universal solution. In this article, we will discuss current ways for MIUI 12-14, including methods for older models (Redmi Note 7, Mi 9T) and new flagships (Xiaomi 13, Redmi K60).

It is important to understand the difference between types of advertising:

  • πŸ“± System Advertising – Banners in the settings menu, on the desktop, in the Security or Topics apps.
  • 🎯 Personalized Ads – Targeted ads based on your activity (disabled via Google Settings).
  • 🚨 Malware Advertising – Pop-ups from viruses or suspicious applications (requires malware checks).

If you only see ads in a particular app (like Mi Video or Mi Browser), the problem is in the app, not the system, and there are some solutions to that, and we'll talk about them at the end of this article.

Method 1: Disabling Advertising through MIUI Settings (without root)

The easiest and safest method is to use the built-in shell options, which the manufacturer hides deep in the menu, but the path to them is the same for most models, and the instructions are suitable for MIUI 12-14 (including global and Chinese versions).

Steps to disable system advertising:

  1. Open Settings β†’ About your phone and tap 7-10 times on the MIUI version line until the notification β€œYou became a developer” appears.
  2. Return to the main settings menu and select Additional β†’ Developer Settings.
  3. Activate the USB Debugging Switch (this is temporary, to access hidden options).
  4. Now go to Settings β†’ Applications β†’ Application Management β†’ Three Dots (menu) β†’ Show all apps.
  5. Find msa (or Miui System Ads in global firmware) in the list and turn off the permission to Show over other windows.

Enable the developer mode|Activate debugging by USB|Find the msa app in the list|Disable permission to display over windows-->

After this action, the banners in the settings menu and on the desktop should disappear. If the adverts remain, check two more apps:

  • πŸ” com.miui.systemAdSolution – responsible for analytics and targeted ads.
  • πŸ“Š AnalyticsCore – collects data about the use of the device (you can disable completely).

πŸ’‘

If there is no msa in the app list, try searching for it by the keyword "ad" (ad). In Chinese firmware, the name may be in Chinese - look for characters (guangao).

Method 2: Blocking Advertising Servers via Hosts File

This is a method that works for users who have adverts left after disabling the system modules, and we block access to servers that load banners through editing the hosts file, which doesn't require root rights, but requires a computer and USB debugging.

Instructions:

  1. Download the archive with the ready-made hosts file for Xiaomi (it lists all Xiaomi advertising domains).
  2. Connect the phone to your computer, enable USB Debugging and confirm access in the pop-up window on your smartphone.
  3. Open the command line (Windows) or terminal (macOS/Linux) and execute the command: adb pull /system/etc/hosts This will back up the current file.
  4. Replace the original hosts with the downloaded file with the command: adb push miui_ad_hosts.zip /system/etc/hosts
  5. Reset the device.

domainAppointmentBlocking status
ad.mi.comMain MIUI Advertising Serverβœ… Blocked.
track.miui.comCollection of usage statisticsβœ… Blocked.
api.ad.xiaomi.comTargeted adsβœ… Blocked.
sdkconfig.ad.xiaomi.comConfiguration of advertising SDKsβœ… Blocked.
What if Adb can’t see the device?
Make sure you have Xiaomi drivers installed for your model. On Windows, download Mi Phone Manager, it will automatically install the drivers you want. Also check that the phone settings in USB Debugging enable Debugging (factory mode).

⚠️ Attention: After update MIUI The hosts file will reset to the factory settings. To avoid this, create a task in Automate or Tasker that will automatically replace the file after each update.

Method 3: Use ADB-deep-cleaning

If previous methods have failed, try disabling advertising services via ADB (Android Debug Bridge), which requires a PC connection but gives you deeper control over system processes.

Run the following commands in order in the terminal (click Enter after each):

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 disable-user --user 0 com.android.browser




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




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

What these teams do:

  • πŸ“‰ uninstall --user 0 β€” Deleting the application for the current user (without root).
  • πŸ”‡ Disable-user – disables the application, but does not delete its files (you can return it back).
  • 🎯 Team objectives: analytics, advertising SDK, standard browser and media players that often display banners.

Disconnection through settings MIUI|Blocking through hosts|ADB-team|I've tried nothing.-->

⚠️ Note: Deleting system applications may cause some features to work unstable (e.g. Mi Drop for file transfer).If something stops working after disabling, return the application with a command:

adb shell pm enable com.name.applications

Method 4: Install custom firmware (for advanced)

If you’re willing to take drastic measures, installing custom firmware (like LineageOS or Pixel Experience) will permanently eliminate advertising, a method that requires unlocking the bootloader and root rights, which cancels the warranty and carries the risk of β€œbricking” the device.

Advantages of custom firmware:

  • πŸš€ Total lack of advertising and surveillance.
  • πŸ†• Regular security updates (as opposed to regular security updates) MIUI, where updates are often delayed).
  • πŸ”§ Flexible interface and performance setting.

Step-by-step:

  1. Unlock the bootloader through the official Xiaomi tool (requires an account binding Mi).
  2. Install TWRP Recovery for your model (see instructions on XDA Developers).
  3. Download the right firmware (e.g. LineageOS 20 for Redmi Note 10 Pro) and GApps (Google services).
  4. Using TWRP, run Wipe β†’ Format Data, then run the firmware and GApps.

List of verified firmware for Xiaomi
LineageOS is the most stable, but without the branded features of Xiaomi. Pixel Experience is an interface like on Google Pixel, with regular updates. Havoc-OS is the maximum customization, but may be less stable. MIUI EU is a modified version of MIUI without advertising and Chinese services (recommended for beginners).

⚠️ Note: Before the firmware, make a backup of the data through TWRP or Mi PC Suite. Devices with MediaTek processors (e.g. Redmi) 9A) It is more difficult to unlock - they may need authorization through SP Flash Tool.

Method 5: Blocking Ads in Specific Applications

If the ads only appear in individual programs (such as Mi Browser, Mi Video or Cleaner), they can be disabled or replaced with analogues.

For standard Xiaomi applications:

  • 🌐 Mi Browser: Open your browser settings β†’ Confidentiality β†’ Turn off Personalized Ads and Show News on the Home Page.
  • πŸŽ₯ Mi Video: Go to Settings β†’ About the program and tap 5 times on the logo to open the hidden menu.
  • 🧹 Security: In the application settings, turn off Recommendations and Optimization.

For third-party applications:

  • πŸ“± Use Blokada or AdGuard – they block ads at the level DNS rootless.
  • πŸ›‘οΈ On YouTube or social media, turn on Traffic Saving (in Chrome) or No Sound (on Instagram) modes – this reduces the number of ad impressions.
  • πŸ”„ Clean the app cache regularly through Settings β†’ Annexes β†’ Warehouse.

πŸ’‘

Even after MIUI has been disabled, third-party apps (such as games or social media) can display banners, requiring specialized tools like AdGuard or changing the DNS to 1.1.1.1 (Cloudflare).

What if the advertisements returned after the update?

Xiaomi regularly releases updates that reset ad settings to avoid reappearing banners:

Create an automatic task:

  1. Install the MacroDroid or Tasker app.
  2. Create a trigger for the event Finishing the system update.
  3. Add Actions: ADB Command: pm disable com.miui.systemAdSolution ADB Command: pm disable com.xiaomi.msa.global
  4. Save the macro and grant it Special Access rights.

Alternative methods:

  • πŸ“΅ Turn off automatic updates MIUI In Settings β†’ The phone. β†’ Updating the system β†’ Three points. β†’ Settings.
  • πŸ”„ Install. MIUI EU β€” Unofficial firmware without ads, but with weekly updates.
  • πŸ“‘ Use it. DNS66 NextDNS to block advertising domains at the network level.

πŸ’‘

If some features (such as themes or cloud storage) are missing after the update, check if you have accidentally disabled system applications through ADB. You can restore them by commanding adb shell pm enable name packet.

FAQ: Frequent questions about advertising on Xiaomi

❓ Why did the advertisement reappear after the reset?
Factory reset returns all system applications, including ad modules. After reset, repeat the steps from Method 1 (disable via settings) or restore the modified hosts file.
❓ Can you remove advertising without a computer?
Yes, use Method 1 (MIUI settings) or install AdGuard from the official website. Disable Service (requires developer rights) will be suitable for blocking system advertising without ADB.
❓ Why some games still have ads on them?
Game ads are loaded through third-party SDKs (like AdMob or Unity Ads), and you need tools like Lucky Patcher (requires root) or Blokada (works without root, but can slow down the Internet) to block them.
❓ Will it work? MIUI advertising-free?
Yes, all the basic functions (calls, SMS, camera, internet) will work fine. Disabling ads does not affect performance, but some branded services (Mi Cloud, Themes) may require additional customization.
❓ How to check if advertising modules are still in the system?
Install App Inspector from Google Play and find the keywords in the list of applications: ad, analytics, msa. If there are any, disable them through Settings β†’ Applications.