Ads on Xiaomiβs lock screen are one of the most annoying features of MIUI that users of the brand face. Even after buying premium models like the Mi 13 Ultra or Redmi K60 Pro, owners are forced to watch banners offering games, credits and promotions instead of a clean desktop. The reason lies in the companyβs business model: monetization through advertising keeps device prices lower than those of competitors. But what if you are willing to sacrifice free cheese for comfort?
In this article, weβll look at all the current ways to remove ads, from official settings to hidden tricks with ADB and modifying system files. Itβs important to understand that some methods require unlocking the bootloader or superuser rights, which can affect the warranty, and weβll also analyze why ads return after updates and how to avoid this.
Beginning with MIUI 14, Xiaomi actively blocks gray-based methods of disabling ads through configuration file editing. If your device is running the latest firmware version, be prepared for the fact that some of the methods may not work, in which case either official settings (they are limited) or switching to custom firmware like LineageOS or Pixel Experience remain.
1. Official method: disabling through MIUI settings
The easiest and safest method is to use the built-in options of the system, and unfortunately, it doesn't remove the ads completely, it just reduces the amount of ads.
Open the Settings app and go to Lock Screen. Here you are interested in two things:
- Lock screen style β choose the option βOnly watchβ or βSimpleβ (no widgets).
- Recommendations β disable the slider βShow recommendationsβ.
Next, go to Settings β Applications β Application Management β System Apps. Find Msa (this is Xiaomiβs advertising service) in the list and:
- π Turn off Auto Start".
- π΅ Disable access to the Internet (both via mobile and Wi-Fi).
- π« Press βStopβ (if the button is active).
βοΈ Preparing for the Advertising Disconnection
These actions will reduce the number of banners, but not remove them completely, because the ads are embedded at the level of the system services com.miui.systemAdSolution and com.xiaomi.midrop, which can not be disabled by standard means.
2. Disconnection via ADB (no root)
If the official settings donβt work, the next step is to use Android Debug Bridge (ADB). This method does not require superuser rights, but a computer and a computer are required. USB-Important: after rebooting or updating MIUI part of the team can drop.
First, activate the developer mode:
- Go to Settings. β The phone.
- Click 7 times on the MIUI version (you will be notified "You became a developer").
- Back to Settings β Additionally. β For developers.
- Enable USB Debugging and Allow Debugging (always).
Now connect your phone to your PC, open the command line (or Terminal on Mac/Linux) and type in one by one:
adb devices
adb shell pm hide com.miui.systemAdSolution
adb shell pm hide com.xiaomi.midrop
adb shell pm hide com.miui.analytics
adb shell settings put global captive_portal_detection_enabled 0After you've done the commands, restart the device. The ads on the lock screen should disappear, but there are nuances:
- β οΈ Note: On some models (e.g, POCO F5) The pm hide command is only valid until the first update. MIUI.
- π If the ad returns, repeat the procedure or use an alternative command: adb shell settings put global. miui_optimize_ad 0
π‘
Create a text file on the PC desktop with commands ADB And keep it like disable_xiaomi_ads.bat. You can quickly repeat the procedure after the update.
3. editing system files (root required)
For users with unlocked bootloader and superuser rights, the most reliable way is to edit MIUI configuration files. We will use the Root Explorer or Mixplorer application with root module.
Go to /system/etc/hosts
Open the hosts file in the text editor and add the following lines at the end:
127.0.0.1 ad.xiaomi.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.brs.intl.miui.comSave the changes, set the rights to 644 (rw-r--r---) and restart the device, a method that blocks access to ad servers at the system level.
To completely remove advertising modules, you can also delete files:
- ποΈ /system/priv-app/MiuiSystemAdSolution
- ποΈ /system/app/MSA
- π /system/etc/permissions/com.miui.systemad.xml
β οΈ Note: Deleting system files can lead to unstable firmware.Before making changes, back up through TWRP Or OrangeFox Recovery. On some devices (e.g. Xiaomi) 12T) This may cause a system integrity check error on the next update.
4. Use of third-party applications
If you don't want to mess with ADB or root, you can try specialized utilities, which work on the principle of blocking advertising domains through a VPN or modifying traffic.
Top.-3 Applications to remove advertising on Xiaomi:
| Annex | Type of lockdown | Need root? | Reference |
|---|---|---|---|
| Blokada | DNS lockdown | No. | Official website |
| AdGuard | Local VPN + filters | No. | Official website |
| Luck Patch | Modification of APK | Yes. | Informal source |
| MIUI Hidden Settings | Hidden MIUI settings | No. | XDA Developers |
The most effective root-free solution is AdGuard with filters enabled:
- π‘οΈ "AdGuard Base filter"
- π± "AdGuard Mobile Ads filter"
- π¨π³ "Chinese filter (specially for Xiaomi)
Once installed, launch the app, activate the protection, and restart the phone. The ads on the lock screen should disappear within 5-10 minutes.
5.Why does the ad return after the updates?
Many users complain that after the MIUI update, the ads on the lock screen reappear, which is due to Xiaomi restoring the standard settings of system applications.
1.MSA reset. When you update your firmware, com.miui.msa.global (Miui System Ads) automatically resets, and even if you disable it through ADB, you will need to repeat the procedure after the update.
2. Update Ads Modules. Xiaomi regularly updates the MiuiSystemAdSolution and AnalyticsCore packages through the Google Play Store or background services. These updates can bypass your locks.
3. changes in MIUI policy: Since MIUI 13, Xiaomi has tightened its control over advertising services, and new firmware versions have added security mechanisms that restore ads even after manually deleting files.
How do you deal with that?
- π Turn off automatic updates MIUI in settings (Settings) β The phone. β Updating the system β βοΈ β Auto-update).
- π΅ Block the Internet for MSA through a firewall (e.g., NetGuard).
- π§ Use Magisk modules like this. MIUI Optimizations that block ads at the core level.
What happens if you delete the MSA via Titanium Backup?
6. Alternative firmware: a radical solution
If none of these methods worked, the last option is to switch to custom firmware, which will completely remove all Xiaomi ad modules, but require unlocking the bootloader and losing warranty.
Best Firmware for Xiaomi without Advertising:
- π± LineageOS β pure Android without unnecessary services.
Installation process:
- Unlock the bootloader through the Mi Unlock Tool (requires a wait of 7-15 days for new accounts).
- Install custom Recovery (TWRP or OrangeFox).
- Make a full backup through the Recovery.
- Sweep through the selected firmware and GApps (if you need Google services).
β οΈ Note: On devices with MediaTek processors (e.g. Redmi Note 12 or POCO M5) Unlocking the bootloader can lead to hardware locking of the camera or module NFC. Before firmware check compatibility on the forum XDA Developers or 4PDA.
7. Frequent mistakes and how to avoid them
When trying to remove ads, users often face problems, and here are the most common mistakes and solutions:
Error 1: ADB does not see the device
- π Check if the debugging is on USB and whether Mi drivers are installed USB Driver.
- π Try another one. USB-cable (preferably original).
- π₯οΈ On Windows, run the command line on behalf of the administrator.
Mistake 2: Advertising is back after rebooting
- π΅ Use AdGuard with Local Mode enabled VPN".
- π§ Repeat commands. ADB or add them to the automatic execution script when downloading.
Error 3: I can't turn off the MSA
- π οΈ On some devices (e.g. Xiaomi) 11T Pro) annex MSA Try to turn it off via AppOps).
- π Use Luck Patch to Freeze the App.
Error 4: After deleting system files, the phone will not turn on
- π Restore deleted files through TWRP (if there's a backup).
- π Refuse the device via the Mi Flash Tool in Fastboot mode.
π‘
On devices with MIUI 14+ The most reliable way without root is a combination ADB-team + AdGuard with Chinese filter. ~90% of Ad Blocking.