How to permanently disable ads when unlocking Xiaomi phone: the full guide

Are you tired of the annoying banners that appear every time you unlock a Xiaomi smartphone? This problem is familiar to most owners of devices with MIUI firmware - even flagship models like Xiaomi 13 Ultra or Redmi Note 12 Pro+ are not immune from advertising inserts on the lock screen. The manufacturer integrates them into the system as part of the coin model, but users are not always ready to put up with such a "bonus".

In this article, we’ll look at all the ways you can disable ads, from standard settings to hidden settings and commands through ADB. You’ll learn what works on MIUI 12-15, how to get around the limitations of regional firmware, and what to do if ads return after an update. Importantly, some of the solutions require superuser rights (root), but we’ll also offer options without them.

We warn you right away: Xiaomi regularly changes its ad-show algorithms, so some methods may stop working after major updates.We tested the instructions on current firmware versions (as of 2026) and indicate which models each method is suitable for.

Why does Xiaomi have ads when it unlocks?

The banner ads on the lock screen are part of the MIUI ecosystem that Xiaomi has been actively developing since 2018.

  • πŸ“± System apps: Mi Browser, Mi Video, Themes, and even Security show ads by default.
  • πŸ”“ Lock screen: Banners appear when unlocked, swiped down or through a weather widget.
  • πŸ“Š Personalized recommendations: The system analyzes your actions and selects β€œrelevant” content (such as games or accessories).
  • 🌍 Regional features: more advertising in firmware for India, China and Europe than in global versions.

The main culprits of advertising on the lock screen:

Annex/ServiceType of advertisementCan I turn it off?
MiuiDaemonBanners when unlocking, notificationsYes (via settings or ADB)
Msa (Mobile Services)Personalized recommendationsPartially (requires root)
ThemesTheme and wallpaper advertisingYes (disable theme updates)
Mi BrowserPop-up windows on the main screenYes (remove or replace browser)

Interestingly, in China, MIUI ads are almost non-existent, replaced by government notifications and news, while in India and Russia, users receive the maximum number of banners, as these markets are considered priority for monetization.

πŸ“Š What Xiaomi Ads Are The Most Irritating To You?
On the lock screen
In system applications
Pop-up notifications
Searchable recommendations
other

Method 1: Disabling Advertising through the standard MIUI settings

To start with, the simplest method that works on most devices without any additional manipulation: Xiaomi provides the ability to disable some of the ads through the settings menu, but these options are often hidden or formulated in an unobvious way.

Instructions for MIUI 12-15:

  1. Open Settings β†’ Memory (or Settings β†’ Applications β†’ Application Management).
  2. Slip on the three points in the upper right corner and select Special Accesses.
  3. Find the Advertising (or Personalized Advertising) section and turn off the slider.
  4. Return to the main settings and go to Settings β†’ Lock screen.
  5. Turn off the options: πŸ”„ Recommendations (or Showing recommendations) πŸ“° News and weather (if any) 🎯 Personalized content

On some firmware (e.g. Redmi 10 or POCO X3), the path may be different. If you don't find Ads in Special Access, try:

  1. Go to Settings β†’ Google β†’ Advertising and disable personalization.
  2. In Settings β†’ Accounts β†’ Mi Account β†’ Synchronization disable MIUI Recommendations.

Step-by-step:

  1. Connect the phone to the PC and confirm the debugging permission.
  2. Open the command prompt (or Terminal on Mac/Linux) and type:
adb devices

If the device appears in the list, execute the following commands in turn:

adb shell pm hide com.miui.daemon


adb shell pm hide com.xiaomi.midrop




adb shell pm hide com.miui.systemAdSolution




adb shell pm hide com.android.browser

For MIUI 13-14, add:

adb shell pm hide com.miui.msa.global


adb shell settings put global hidden_api_policy 1

These commands are off:

  • πŸ›‘ MiuiDaemon is the main advertising service.
  • πŸ›‘ Msa – a system of personalized recommendations.
  • πŸ›‘ Mi Browser – a browser with built-in advertising.
What if the ADB can’t see the device?
1. Install Xiaomi drivers from the official website. 2. Try another one USB-cable (preferably original). 3. Enable the "Debugging by Debugging" option in the developer settings USB (security parameters).” 4. Restart the phone and PC.

Important! After you reboot your phone or update your MIUI, some of the apps may be activated again. To avoid this, save the commands to a text file and run them after each update.

⚠️ Note: Some models (e.g. Xiaomi) 12T) Disabling com.miui.daemon may cause notifications to fail. If messages stop coming after executing commands, return the settings with the command: adb shell pm unhide com.miui.daemon

Method 3: Removing Advertising through Hosts File Editing

Another effective method is to block Xiaomi ad servers at the system level, by editing the hosts file, which is responsible for redirecting domain names, which works without root, but requires ADB.

List of domains that block ads in MIUI:

127.0.0.1 ad.mi.com


127.0.0.1 data.mistat.xiaomi.com




127.0.0.1 sdkconfig.ad.xiaomi.com




127.0.0.1 tracking.miui.com




127.0.0.1 api.ad.xiaomi.com




127.0.0.1 globalapi.ad.xiaomi.com

Instructions:

  1. Connect your phone to your PC and activate ADB (as in the previous method).
  2. Download the hosts file from your phone:
adb pull /system/etc/hosts C:\hosts_backup
  1. Open the downloaded file in the notebook and add the domains from the example above to the end of the list.
  2. Save the file and upload it back to your phone:
adb push C:\hosts_backup /sdcard/hosts


adb shell su -c "mount -o rw,remount /system"




adb shell su -c "cp /sdcard/hosts /system/etc/hosts"




adb shell su -c "chmod 644 /system/etc/hosts"

If you don’t have root, use an alternative method through the DNS66 or Blokada app, which blocks domains without changing system files.

⚠️ Attention: Incorrect editing of the hosts file can lead to loss of Internet access.Before making changes, make a backup of the original file with the command: adb pull /system/etc/hosts C:\hosts_original

Method 4: Disabling Advertising with Root Rights

If you’re willing to take drastic measures, getting root rights will give you access to the complete removal of ad modules, a method that’s suitable for power users, as it requires unlocking the bootloader and installing Magisk.

What can be done with root:

  • πŸ—‘οΈ Remove system applications (MiuiDaemon, Msa, Analytics).
  • πŸ”§ Edit configuration files MIUI.
  • 🚫 Blocking permissions for advertising services.

Step-by-step:

  1. Unlock the bootloader through the official Xiaomi tool (requires account binding).
  2. Install TWRP and run Magisk to get root.
  3. Download Root Explorer or Titanium Backup.
  4. Remove or freeze the following packages: πŸ“¦ com.miui.daemon πŸ“¦ com.xiaomi.midrop πŸ“¦ com.miui.systemAdSolution πŸ“¦ com.miui.analytics πŸ“¦ com.miui.hybrid

Reboot the phone.

For MIUI 14+, it is recommended to:

  • Disable com.xiaomi.finddevice (unless you are searching for a device).
  • Delete /data/system/msa/ folder – it is responsible for personalized recommendations.

πŸ’‘

Getting root rights voids Xiaomi’s warranty and can cause the system to run in an unstable way, and use this method only if other methods have not worked.

Important: Some models (e.g. Xiaomi 13 Pro) will stop charging wirelessly and NFC after removing com.miui.daemon. Before removing, back up via TWRP!

Method 5: Alternative firmware (Custom ROM)

If you're finally fed up with MIUI advertising, the radical solution is to install custom firmware.

  • πŸ“± LineageOS – pure Android without advertising and unnecessary services.
  • πŸ“± Pixel Experience – firmware with an interface like Google Pixel.
  • πŸ“± ArrowOS – Optimized version with advanced settings.
  • πŸ“± MIUI EU β€” modified MIUI No Advertising (but with weekly updates).

Advantages of custom firmware:

  • βœ… No system advertising.
  • βœ… Quick security updates.
  • βœ… Ability to fine-tune the interface.

Disadvantages:

  • ❌ Loss of guarantee.
  • ❌ Possible bugs with camera or sensors (depending on model).
  • ❌ There are no Xiaomi features (Second Space, for example).

Instructions for installing MIUI EU (on the example of Redmi Note 11):

  1. Unlock the bootloader (as in the root method).
  2. Download the firmware from the official website xiaomi.eu.
  3. Install TWRP for your model.
  4. Go to Power + Vol Up and run the firmware.
  5. Clear the cache and restart the device.

⚠️ Attention: Install custom firmware on a model with a locked bootloader (for example, Xiaomi) 12S Ultra can cause a device to "brick" (inoperability) before checking the support of your model on the forum before you run the firmware. XDA Developers.

What if the advertisements returned after the update?

Xiaomi regularly updates its ad-show mechanisms, so after installing the new version of MIUI, banners can reappear.

  • πŸ”„ Repeat steps from Method 1 and 2 – check the settings and follow the steps. ADB-team-up.
  • πŸ“΅ Turn off automatic updates MIUI In Settings β†’ The phone. β†’ Updating the system β†’ Three-pointed β†’ Settings β†’ Auto-update.
  • πŸ›‘οΈ Use a firewall (such as NetGuard) to block access to ad domains.
  • πŸ”§ Reset the advertising settings through ADB: adb shell pm clear com.miui.daemon

If you use MIUI EU or other custom firmware, upgrade to the latest version – developers usually quickly close the β€œad holes”.

For owners. POCO-devices, for example, POCO F5) There's a separate life hack:

  1. Go to Settings. β†’ The phone.
  2. Tap 5 times on the POCO logo to activate the hidden menu.
  3. Select No Ads and restart your phone.

FAQ: Frequent questions about advertising on Xiaomi

❓ Why did the advertisement reappear after the reset?
When resetting to factory settings, all system applications (including MiuiDaemon) return to their original state. To avoid this: Before reset, perform ADB-Or immediately after reset, turn off the ads via settings (Method 1). If you are using root, back up the frozen application list in Titanium Backup.
❓ Can you turn off advertising without a computer?
Yes, but the possibilities are limited: πŸ“± Disable personalized advertising in settings (Method 1). πŸ“± Install Blokada or DNS66 F-Droid to block advertising domains. πŸ“± Use App Ops (requires) ADB-access, but not root) to disable permissions from advertising services.
❓ Why some Xiaomi models don’t have ads?
It depends on it: 🌍 Regional firmware: less advertising in European and Singapore versions. πŸ“¦ Device lines: flagships (Xiaomi 13, Mix 4) show less advertising than budget models (Redmi) 10A). πŸ”„ Versions MIUI: into MIUI 14 more advertisements than in the MIUI 12. πŸ’³ Account Status: Users with a premium subscription VIP see fewer banners.
❓ How to Check Which Apps Show Ads?
Use ADB to display the ad logcat | grep -i "ad\|recommend\|miuiad" or install App Inspector from Play Market and check the activity of the processes: com.miui.daemon com.xiaomi.msa.global com.android.browser
❓ Is it legal to turn off ads on Xiaomi?
Legally, yes, you have the right to customize your device as you wish, as long as you do not violate the terms of use. MIUI. However: πŸ”§ Xiaomi may return ads after update. πŸ“΅ Disabling system services (e.g., Msa) may disrupt some features (e.g., Find Device). βš–οΈ Some regions (e.g. the EU) have data protection laws in place (GDPR), If you remove ads through root or custom firmware, the warranty is voided.