How to completely clean Xiaomi from advertising: 7 working ways

Advertising on Xiaomi smartphones is one of the most annoying features of MIUI firmware, which the manufacturer has integrated into the system at the kernel level. Even after buying premium models like the Mi 13 Ultra or Redmi K60 Pro, users are faced with banners in the settings menu, notifications from msa (Mobile Services Analytics) and ad units in standard applications, and the problem is exacerbated after each major update of MIUI, advertising mechanisms become more aggressive, and methods of disabling them require more and more deep intervention.

In this article, we will analyze all the current ways to clean Xiaomi from advertising – from basic settings to advanced methods using the use of advertising. ADB It is important to understand that some methods can lead to loss of warranty or unstable operation of the device, so we will describe in detail the risks and alternatives. MIUI 14/15 (Android 13/14) and adapted for models 2020–2026 year-end.

1. Basic settings: disable ads without root

To start with, the safest methods that don’t require superuser rights or PC connectivity are suitable for most Redmi Note 12, Poco X5, and other modern hardware on standard firmware.

The first step is to deactivate personalized ads in your Mi Account settings. Go to: Settings β†’ Xiaomi Account β†’ Mi Advertising and disable the Personalized Recommendations slider. This will reduce the number of targeted banners, but it won’t eliminate them completely.

  • πŸ”§ Disabling advertising in MIUI: Settings β†’ The phone. β†’ Version. MIUI (Tap 7 times to unlock Additional Settings, then go back to Settings β†’ Special facilities β†’ Additional settings β†’ Show ads and deactivate all sliders).
  • πŸ“± Cleaning the cache of advertising services: Go to Settings β†’ Annexes β†’ Application management β†’ Three dots (menu) β†’ Find msa (Mobile Services Analytics), MiuiDaemon and AnalyticsCore, clear the cache and data.
  • 🚫 Blocking notifications: C Settings β†’ Notifications β†’ Disable notifications from Mi Video, Mi Browser, Cleaner and Themes.

These actions will reduce the amount of ads by 40 to 60 percent, but they won't remove them completely, like Security banners or Themes banners, and they will require more radical measures to remove them.

πŸ“Š What kind of Xiaomi model do you have?
Redmi (Note/Pro/K series)
Poco (F/X/M series)
Mi (11/12/13 episode)
Black Shark
other

2. ADB-Teams: Deep Shutdown of Advertising Services

If the basic settings didn’t work, the next step is to use Android Debug Bridge (ADB), a method that doesn’t require root rights, but requires connecting the smartphone to a computer, and has the advantage of blocking ads at the system application level, including msa and MiuiDaemon.

First, enable USB debugging: Settings β†’ About Phone β†’ MIUI version (tap 7 times until the developer mode notification appears). Then go back to Settings β†’ Additional β†’ Developer and activate USB Debugging.

Install. ADB-drivers on PC, connect the phone and execute in the command line:

adb devices


adb shell pm hide com.miui.analytics




adb shell pm hide com.xiaomi.ab




adb shell pm hide com.miui.systemAdSolution




adb shell pm hide com.miui.msa.global

  • βš™οΈ What Teams Do: Hide System Applications That Collect Analytics and Show Ads.
  • ⚠️ Restriction: After rebooting or updating MIUI Some of the services may be activated again.
  • πŸ”„ Solution: Create a.bat file with these commands and run it after each update.

Install ADB-PC drivers

Enable debugging over USB on your phone

Connect your phone over cable (not Wi-Fi!)

Check the connection with the adb device team

Make a backup copy of the data-->

For models on MIUI 14+ (for example, Xiaomi 13T or Redmi Note 12 Pro+) you may need an additional command:

adb shell settings put global hidden_api_policy 1

It unlocks hidden APIs that Xiaomi restricts in new firmware versions.

3. Root access: complete removal of advertising modules

If you're willing to take drastic measures, getting root rights will remove the ad modules permanently, a method that is suitable for power users because it carries risks:

  • ⚠️ Loss of warranty (if the device is under warranty).
  • ⚠️ Risk of "Brike" (inability) in case of an error.
  • ⚠️ Disruption of certain features (for example, Mi Pay or Face Unlock).

To get root, use Magisk (recommended version - 26.4+).

  1. Remove the following packages via Magisk or Root Explorer: com.miui.analytics – analytics collection. com.xiaomi.ab – advertising SDK. com.miui.systemAdSolution – system banners. com.miui.msa.global – the main advertising service. com.android.browser – if you use Mi Browser.

/system/build.prop

ro.miui.has_real_blur=1


ro.miui.has_handy_mode_sf=1




ro.config.nocheckin=1

This will disable update checks and some analytics.

For dynamic partition models (e.g. Poco F5 or Redmi K50) do the following before removing packets:

su


mount -o rw,remount /system




mount -o rw,remount /vendor

What happens if you remove the system application?
Removing critical packets (e.g. com.android.phone) can cause network loss or device freezes. It is recommended to pre-restore via TWRP or OrangeFox Recovery. Recover deleted packets can only be restored through the original ROM firmware.

4. Alternative firmware: MIUI without advertising

If standard methods don't work, consider installing custom firmware. There are several options:

FirmwareFeaturesSupport for modelsRisks.
MIUI EUOfficial European version without ads, weekly updatesMost of the Xiaomi/Poco/Redmi modelsNo Russian in some versions, possible bugs with NFC
Xiaomi.eu (unofficial)Maximum clean MIUI, optimized performanceAll models except the newest (delayed porting)Loss of loss OTA-Updates, there may be problems with Widevine L1
LineageOSPure Android without MIUI, high stabilityLimited list (mostly flagships)No branded features (e.g. Always-on Display)
Pixel ExperienceAndroid with Google Pixel chips, no adsPopular models (Redmi Note 10, Poco X3, etc.)No support for some camera modules

For custom firmware installation:

  1. Unlock the bootloader through the Mi Unlock Tool (requires an account to be linked to the device and wait 7-30 days).
  2. Install TWRP or OrangeFox Recovery for your model.
  3. Sweep through the firmware through recovery, then Magisk (if root is needed).

πŸ’‘

Even after cleaning standard apps, ads can come back after updates. Solution: disable automatic updates for system apps in Google Play β†’ Settings β†’ Auto-Update apps β†’ Do not update automatically.

7. Additional measures: protection against reappearance of advertising

To prevent ads from returning after a MIUI update or reset, follow these guidelines:

  1. Turn off automatic MIUI update: Go to Settings β†’ About Phone β†’ System Update β†’ Three Points β†’ Update settings and deactivate Autoboot and AutoInstall.
  2. Block Advertising Domains via Hosts: Download a modified hosts file (e.g. Steven Black) and replace it with a standard one via Root Explorer or ADB: adb push hosts /system/etc/hosts
  3. Use Xposed modules (for advanced users): Install LSPosed and MIUI Ad Away or DisableFlagSecure modules to block advertising at the framework level.
  4. Regularly check active processes: With Simple Task Killer or ADB, track the launch of msa and MiuiDaemon: adb shell ps -A | grep -E 'msa|ad'

If you use Xiaomi with Google Mobile Services (GMS), further disable personalized ads in your Google account: Settings β†’ Google β†’ Advertising β†’ Disable ad personalization.

FAQ: Frequent questions about cleaning Xiaomi from advertising

❓ Why does it still appear after disabling the ad in the settings?
Xiaomi uses several independent ad-show mechanisms: System Services (msa, MiuiDaemon); Embedded apps (Mi Browser, Cleaner); Server notifications (push messages from Xiaomi); Basic settings only disable some of them; Complete cleaning requires a comprehensive approach (ADB + packet removal + DNS lock).
❓ Can you remove advertising without rooting and ADB?
Yes, but not completely. The combination of the following actions has a ~70% effect: disabling personalized ads in Mi Account and Google; clearing the msa and MiuiDaemon cache; installing alternative applications (browser, gallery, cleaner); using ad-blocking VPNs (e.g. AdGuard); however, banners in Settings and Themes will remain.
❓ Will the advertisements return after the update? MIUI?
When you update MIUI, some system applications (msa, MiuiDaemon) are restored. hosts file settings are reset (if modified); new ad mechanisms may appear (Xiaomi regularly adds them to firmware); Solution: redo the steps with ADB after the update or restore the settings backup via TWRP.
❓ How to check if advertising is still in the system?
Run ADB to check active ad services: adb shell dumpsys package | grep -E 'msa|ab|ad' If the output is blank, services are disabled. Also check: No banners in Settings β†’ Phone. No notifications from Mi Video, Cleaner or Themes. There are no com.miui.analytics processes in Task Manager.
❓ What Xiaomi models are the hardest to clean from advertising?
The biggest challenges are: New flagships (Xiaomi 14, Mi 13 Ultra) – due to Anti-Rollback and protected partitions. Devices for China (with China ROM firmware) – contain more advertising SDKs. HyperOS models (such as Xiaomi 14 Pro) – the new shell has integrated advertising mechanisms. Xiaomi tablets (Pad 6, Pad 5) – limited support for custom firmware. For these devices, a combination of ADB + Magisk + modified hosts is recommended.