The lock screen on Xiaomi smartphones with the shell MIUI 12 is often a source of irritation for users β instead of current information about time, notifications and weather, the system stubbornly demonstrates banner ads, recommendations of applications from the Mi App Store or βusefulβ services from partners.
The reason for this behavior is the aggressive monetization of MIUI β Xiaomi integrates ad modules at the firmware level to compensate for the low cost of devices. However, most users are willing to pay more for a clean interface to get rid of intrusive banners. Fortunately, there are several legal ways to disable ads on the lock screen without root rights or installing custom firmware. In this article, we will examine all the current methods, from basic settings to advanced tricks with ADB.
Itβs important to understand that MIUI 12 has regional features: global firmware versions (e.g. MIUI Global) tend to have less advertising than Chinese ones (MIUI China).However, even in clean builds, banners can slip through updates or third-party services. Weβve tested all methods on Redmi Note 9 Pro, Poco X3 NFC and Mi 10T devices β the instructions are universal for most 2020-2023 models.
1. Disable advertising through standard settings MIUI 12
The first and most obvious way is to take advantage of the built-in options, which Xiaomi gives users the ability to partially control the display of ads, although these settings are often hidden in the back of the menu.
- Open the "Settings" and go to the About Phone section.
- Tap the MIUI version 7-10 times in a row until the notification βYouβve become a developer!β appears.
- Return to the main settings menu and select Additional β Special features β Advertising.
- Turn off the sliders: π± Recommendations MIUI (Responsible for banners on the lock screen) π Personalized Ads (using data about your activity) π Showing Advertising in System Applications
After applying the changes, restart the device. In most cases, this removes ads from the lock screen, but does not guarantee 100% results - some banners may continue to appear due to integration with Xiaomi services (for example, Mi Video or Mi Browser).
β οΈ Note: On some devices (e.g. Redmi) 9A s MIUI 12.0.3) Advertising may not be available in the settings, which means your firmware does not support manually switching off through the menu β go to the following methods.
2. deactivation of advertising services through "Security"
MIUI 12 uses background services to collect data and display ads, and one of the main culprits is the Security app (or Security in global versions), which not only scans the device for viruses, but also manages ad modules to limit its activities:
- Launch the Security app (the shield icon on the desktop).
- Go to Settings (cog in the upper right corner).
- Select Cleanup β Auto Start.
- Find it in the app list: π MiuiDaemon (responsible for background advertising processes) π‘οΈ Security (Security application itself") π± MSA (Mi System Ads β the main ad module and disable auto-run for each.
- Return to the basic security settings and turn off: π Recommendations π’ Security Notices (often containing advertisements)
This method reduces the amount of advertising by 60-70%, but does not eliminate it completely.
βοΈ Preparing for the Advertising Disconnection
3.Use of ADB-commands for deep disabling advertising
If standard settings don't work, you'll have to go for a more radical solution, which is to shut down your ad services through the Android Debug Bridge (ADB), which doesn't require root rights, but it requires connecting your phone to your computer, and the advantage is that it blocks ads at the system level, including banners on the lock screen.
You'll need:
- π₯οΈ Computer with installed Xiaomi and ADB-tools drivers.
- π± Included Debugging by USB on the phone (in Settings) β The phone. β Version. MIUI Tap 7 times, then return to the additional β For developers).
- π Cable USB (preferably original).
Step-by-step:
- Connect the phone to the PC and confirm the debugging permission.
- Open the command line (Windows) or terminal (macOS/Linux) in the adb folder.
- Enter the commands in turn (after each click Enter): adb shell pm uninstall --user 0 com.miui.systemAdSolution pm uninstall --user 0 com.xiaomi.midrop pm disable-user --user 0 com.android.browser pm disable-user --user 0 com.miui.player pm disable-user --user 0 com.xiaomi.gamecenter.sdk.
- Reset the device.
Critical! Commands above remove system applications responsible for advertising, but do not affect critical services. However, on some devices (e.g. Poco F3), disabling com.miui.player can lead to errors in the standard video player. If this happens, return the application with the command:
pm enable com.miui.playerWhat if the ADB canβt see the device?
4. Removing Advertising through Hosts File Editing
Another effective way is to block ad domains at the system level, by editing the hosts file, which is responsible for forwarding network requests, which requires root rights or using ADB to temporarily gain access.
List of domains that block ads in MIUI 12:
| domain | Appointment | The blocking effect |
|---|---|---|
| ad.mi.com | The main advertising server Xiaomi | Remove banners on the lock screen |
| tracker.ai.xiaomi.com | Collection of user statistics | Stops personalized advertising |
| sdkconfig.ad.xiaomi.com | Configuration of advertising SDKs | Disables advertising in system applications |
| api.ad.xiaomi.com | API for displaying banners | Removes pop-ups |
To add domains to hosts:
- Download the Termux app (no root required).
- Enter the commands: pkg install nano su mount -o rw, remount /system nano /system/etc/hosts
- Add a line at the end of the file (one per domain): 127.0.0.1 ad.mi.com 127.0.0.1 tracker.ai.xiaomi.com 127.0.0.1 sdkconfig.ad.xiaomi.com
- Save the changes (Ctrl+O, then Ctrl+X) and restart the phone.
β οΈ Attention: Incorrect editing of the hosts file can lead to loss of Internet access.Before changes, make a backup of the original file with the cp command /system/etc/hosts /sdcard/hosts_backup.
5. Alternative methods: custom launchers and firmware
If none of these methods worked, radical measures remain, such as replacing the standard launcher or installing custom firmware, which require more time and technical skills, but are guaranteed to remove all advertising.
Option 1: Installation of a third-party launcher
Some launchers (such as Nova Launcher or Lawnchair) allow you to completely replace the lock screen, bypassing the system limitations of MIUI.
- Install a launcher from Google Play.
- In the launcher settings, find the Lock Screen option (for example, in Nova Launcher it is the Nova Lockscreen plugin).
- Activate the replacement of the standard lock screen.
The downside of the method: Some MIUI features (such as fast notifications or NFC) may not work properly.
Option 2: Switch to custom firmware
Firmware like LineageOS or Pixel Experience completely removes all Xiaomi advertising modules, but requires unlocking the bootloader and installing via TWRP. This method is only suitable for advanced users, as:
- π Violates the warranty (if the bootloader has not been unlocked before).
- π Requires backup of data (full reset is mandatory).
- π οΈ Can lead to a "brick" of the device when errors during firmware.
π‘
Before installing custom firmware, check its compatibility with your Xiaomi model on the XDA Developers forum. Some firmware (for example, for the Redmi Note 8 Pro) require additional patches to properly operate the camera or NFC module.
6.How to prevent the return of ads after updates
Even after a successful ad disabling, it can return after the MIUI update, which is because Xiaomi regularly adds new ad modules or resets its default settings to minimize the risks:
- Turn off automatic MIUI update: Go to Settings β About Phone β System Update. Tap three dots in the upper right corner and select Update Settings. Turn off Auto Boot over Wi-Fi.
- Use Update Blocker: Install the Package Disabler app (requires ADB). Disable the service com.android.updater (responsible for MIUI updates).
- Check your ad services regularly: Once a month, go to Settings β Apps β Application Management. Sort the list by AutoRun and block suspicious processes (such as MSA or MiuiDaemon).
If the update does happen and the ad returns, repeat the steps from section C. ADB-Teams β they work after updates.
π‘
The most reliable way to avoid ads after updates is to disable the system updater via ADB with pm disable-user --user 0 com.android.updater. But remember: this will deprive you of important security patches!