Why Xiaomi is showing ads on the lock screen and can it be turned off?
Xiaomi, Redmi and POCO smartphone owners often face intrusive ads on the lock screen โ banners with games, promotions or news appear even with minimal activity. This is not a coincidence, but part of the companyโs business model: MIUI contains built-in ad modules that load content through the services of Msa (Mobile Services Analytics) and MiuiDaemon. This practice allows Xiaomi to reduce the price of devices, but annoys users, especially on budget models like the Redmi Note 12 or POCO X5.
The good news: ads on the lock screen can be turned off completely โ as standard means MIUI, Bad news: Some methods require unlocking the bootloader or the rights of the superuser (root), which will void the warranty. In this article, we will discuss all the current ways to use the software. MIUI 14/15, including hidden settings, ADB-So let's start with the simplest solutions, without risking the device.
Before you start, check your firmware version in Settings โ About Phone โ MIUI version. Some methods only work on global (Global) or Chinese (China) builds. Also note that after major updates (for example, from MIUI 13 to MIUI 14), ad modules may return - they will have to be blocked again.
Method 1: Disabling Advertising through MIUI Settings (without root)
The safest method is to use built-in MIUI options.It is suitable for most devices on MIUI 12-15, but does not guarantee 100% results: some banner ads may remain due to regional features of the firmware.
Instructions:
- ๐ฑ Open the Settings. โ Lock screen.
- ๐ Scroll down and find the Advertising or Recommendations section (the title may vary).
- ๐ซ Turn off the sliders: ๐ข "Showing ads on the lock screen" ๐ฏ "Personalized recommendations" ๐ "Usage analysis"
- ๐ Reset the device.
If there is no advertising section, try an alternative way:
- Go to Settings โ Applications โ Application Management.
- Press three points (โฎ) in the upper right corner and select "Show all processes".
- Find the com.xiaomi.msa.global and com.miui.daemon apps, open their settings and turn off the Notifications Show.
Make a backup copy of important data|Check the version. MIUI customized|Connect the device to Wi-Fi|Battery charge > 50%-->
Method 2: Blocking Advertising through ADB (without root)
If the standard settings do not help, use ADB-Android Debug Bridge, which doesn't require root rights, but you need a computer and enabled debugging. USB. Suitable for MIUI 14/15 on global and European firmware.
Step-by-step:
- ๐ฅ๏ธ Install. ADB Tools on PC.
- ๐ฑ On the phone, activate Settings. โ The phone. โ Version. MIUI (Press 7 times to turn on Developer Mode, then return to Settings โ Additionally. โ For developers and include "Debugging by" USB".
- ๐ Connect your phone to your PC and confirm your debugging permission.
- ๐ป Open the command line (Windows) or the terminal (macOS/Linux) in the folder from adb.exe and execute the commands in turn: adb shell pm hide com.xiaomi.msa.global adb shell pm hide com.miui.daemon adb shell pm hide com.android.browser
After the commands are executed, the ads on the lock screen should disappear. If not, try additional commands:
adb shell settings put global captive_portal_detection_enabled 0
adb shell settings put global captive_portal_server false๐ก
If so, ADB-commands lose the Internet, restart the phone or execute the command adb shell settings put global captive_portal_detection_enabled 1, to retrieve network detection.
Method 3: Using third-party applications (without root)
For users who don't want to mess with ADB, there's an alternative: ad-blocking apps.
| Annex | Functional | Cons | Reference |
|---|---|---|---|
| Blokada | Blocks DNS-level advertising domains, works without root | Can conflict with VPN, paid version for advanced features | Website |
| AdGuard | Filtering Ads, Trackers and Malware Sites | Requires settings, can slow down the Internet | Website |
| NetGuard | Blocking access to the network for advertising services | You need to manually add Xiaomi domains | GitHub |
How to set up Blokada to block Xiaomi ads:
- Download and install the app from the official website (not from Google Play!).
- Launch Blokada and allow creation VPN-linkage.
- Go to Settings โ Blacklist and add these domains: msa-cdn.micloud.xiaomi.net api.ad.xiaomi.com tracker.ai.xiaomi.com data.mistat.xiaomi.com
- Activate the lock and restart the phone.
What if Blokada doesnโt block ads?
Method 4: Disabling Advertising through System File Editing (Root Requires)
If previous methods have failed, the radical way is to remove ad modules from system files, which requires root rights and can lead to unstable MIUI operation.
Instructions for MIUI 14/15:
- ๐ ๏ธ Get root access with Magisk.
- ๐ Install a file manager with root support (such as Root Explorer or Mixplorer).
- ๐ Cross the path. /system/priv-app/ and find the folders: Msa (or MsaGlobal) MiuiDaemon Browser (if any)
.apk
.bak
Msa.apk โ Msa.bak
๐ Reset the device.
To remove the ads completely, edit the file /system/build.prop:
- Open the file in the text editor (with root rights).
- Add at the end of the line: ro.miui.has_ad_service=false ro.miui.notification_ad_enabled=false
- Save the changes and restart the phone.
Installation process:
- ๐ Unlock the bootloader via Mi Unlock Tool (requires Xiaomi account and wait 7-30 days).
- ๐ฅ Download the firmware for your model with XDA Developers or xiaomi.eu.
- ๐พ Install. TWRP Recovery from fastboot: fastboot flash recovery twrp.img fastboot boot twrp.img
- ๐ฒ V TWRP run the Wipe โ Advanced Wipe (tag Dalvik, Cache, System, Data).
- ๐ Install the firmware through Install โ Choose. ZIP.
โ ๏ธ Attention: Installing custom firmware voids warranty, can lead to a "brick" (inoperability) of the device and requires technical skills. Before the procedure, check the firmware compatibility with your Xiaomi model!
What if the adverts returned after the MIUI update?
After a firmware update, Xiaomiโs ad modules are often re-activated to avoid this:
- ๐ Reverse to the previous version MIUI Fastboot (instructions are available on Xiaomi Firmware Updater).
- ๐ซ Freeze system applications with Titanium Backup or Lucky Patcher (root required).
- ๐ก๏ธ Use it. DNS-filtration (e.g., filtration, 1.1.1.1 or 9.9.9.9 customized Wi-Fi/mobile).
- ๐ต Turn off mobile data for advertising services: Go to Settings โ SIM-maps and mobile networks โ Data transfer. Select "Background Limitation" for Msa and MiuiDaemon applications.