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/Service | Type of advertisement | Can I turn it off? |
|---|---|---|
| MiuiDaemon | Banners when unlocking, notifications | Yes (via settings or ADB) |
| Msa (Mobile Services) | Personalized recommendations | Partially (requires root) |
| Themes | Theme and wallpaper advertising | Yes (disable theme updates) |
| Mi Browser | Pop-up windows on the main screen | Yes (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.
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:
- Open Settings β Memory (or Settings β Applications β Application Management).
- Slip on the three points in the upper right corner and select Special Accesses.
- Find the Advertising (or Personalized Advertising) section and turn off the slider.
- Return to the main settings and go to Settings β Lock screen.
- 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:
- Go to Settings β Google β Advertising and disable personalization.
- In Settings β Accounts β Mi Account β Synchronization disable MIUI Recommendations.
Step-by-step:
- Connect the phone to the PC and confirm the debugging permission.
- Open the command prompt (or Terminal on Mac/Linux) and type:
adb devicesIf 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.browserFor MIUI 13-14, add:
adb shell pm hide com.miui.msa.global
adb shell settings put global hidden_api_policy 1These 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?
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.comInstructions:
- Connect your phone to your PC and activate ADB (as in the previous method).
- Download the hosts file from your phone:
adb pull /system/etc/hosts C:\hosts_backup- Open the downloaded file in the notebook and add the domains from the example above to the end of the list.
- 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:
- Unlock the bootloader through the official Xiaomi tool (requires account binding).
- Install TWRP and run Magisk to get root.
- Download Root Explorer or Titanium Backup.
- 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):
- Unlock the bootloader (as in the root method).
- Download the firmware from the official website xiaomi.eu.
- Install TWRP for your model.
- Go to Power + Vol Up and run the firmware.
- 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:
- Go to Settings. β The phone.
- Tap 5 times on the POCO logo to activate the hidden menu.
- Select No Ads and restart your phone.