How to permanently remove ads from the lock screen Xiaomi: official and hidden methods

Advertising on the lock screen Xiaomi is one of the most annoying features of the firmware MIUI, which the manufacturer has been actively implementing in recent years. Even after buying premium models Xiaomi 13 Ultra or Redmi K60 Pro users are faced with intrusive banners, offers of games and services that appear every time you unlock the device, and the problem is relevant not only for budget lines, advertising can appear even on flagships, if you do not turn it off correctly.

Many people try to solve the problem through standard settings, but often it only has a temporary effect. The fact is that MIUI uses several channels of display advertising, and blocking one source does not guarantee the complete disappearance of banners. In this article, we will examine all possible ways, from official settings to hidden developer parameters, which will help to clear the lock screen once and for all, and pay special attention to methods that work on the latest versions of firmware (MIUI 14 and later) without the need to obtain root rights.

It is important to understand that some methods may conflict with Xiaomi’s policies – for example, disabling system applications through ADB can cause service disruptions. However, all of the actions described below are tested on real devices and do not violate warranty obligations if performed carefully. If you use a device with global firmware (Global ROM), some of the ads may be less intrusive than on the Chinese versions (China ROM), but it disappears completely only after manual settings.

📊 What kind of Xiaomi model do you have?
Xiaomi 12/13/14 series
Redmi Note 10/11/12
POCO F/X series
Redmi K50/K60
Another model

1.Official method: disabling advertising in the MIUI settings

The first and most obvious method is to use built-in MIUI tools. The manufacturer provides the ability to disable some of the ads, but not all users know exactly where these settings are hiding. It is important to check them after each major firmware update, since Xiaomi sometimes resets the settings to default values.

Go to Settings → Password and Security → Screen lock settings. You should find Ads and Recommendations (some versions may call it Show Recommendations or Personalized Ads). Disable all sliders in this section. If there is no point, your firmware version doesn't support it (often found on older devices or Chinese ROMs).

Next, check Settings → Additional → Special Features → Notifications on the lock screen. There may be another source of advertising hidden here: turn off the option to “Show Notifications from Apps” or blacklist apps like Mi Browser, Mi Video and GetApps.

  • 🔍 Where to look: Settings → Password and security → Locking settings
  • 📱 It works on: all devices with MIUI 12+ (Chinese ROM global-hardware)
  • ⚠️ Restriction: does not remove advertising from system applications (Mi Music, Mi Pay)

On devices with firmware for the Chinese market (China ROM), the official method often does not work - you need to flash it to a global version or use alternative methods.

2. disable system applications via ADB (without root)

If the standard settings didn’t work, the next step is to disable the system applications that are responsible for displaying ads. This does not require root rights, just use ADB (Android Debug Bridge), which works on all Xiaomi devices, including POCO and Redmi, but requires a connection to a computer.

First, turn on Developer Mode: Go to Settings → About Phone and click on MIUI Version 7 times. Then go back to Settings → Additional → For Developers and activate Debugging on USB. Connect your phone to your PC, confirm debugging permission, and open the command prompt (or Terminal on Mac/Linux).

Follow the following commands in turn (each team disables one ad app):

adb shell pm hide com.miui.weather2 # Weather (shows ads in widgets)


adb shell pm hide com.xiaomi.joyose #Music player Mi Music




adb shell pm hide com.miui.video # Video player Mi Video




adb shell pm hide com.xiaomi.midrop #Mi Drop (file transfer ads)




adb shell pm hide com.miui.bugreport # Error Reports (sometimes shows banners)




adb shell pm hide com.miui.analytics # Analytics (collects data for targeted advertising)

After you execute the commands, restart the device. Ads from the lock screen should disappear, but some system features (such as weather forecast) will also become unavailable. To return the application, replace hide with unhide in the command.

⚠️ Note: Disabling com.miui.analytics may cause some Xiaomi services to fail, such as cloud backup. If you notice a failure, return the application with the command adb shell pm unhide com.miui.analytics.

Enable the developer mode (7 taps according to MIUI)

Activate debugging over USB in settings

Install ADB-Drivers on PC (for example, through Mi) PC Suite)

Connect the phone to your computer and confirm permission

Download platform tools ADB (Or use the Mi Unlock Tool or)-->

3.Use of third-party launchers to circumvent advertising

If you don’t want to mess with ADB, an alternative is to install a third-party launcher that blocks system notifications on the lock screen, such as Nova Launcher or Lawnchair, which lets you customize the display of widgets and notifications, including banner ads from MIUI.

Install the launcher from Google Play, then go to its settings and find the section "Block Screen" or "Notifications".

  • 📱 "Show notifications from system applications"
  • 🔕 "Widgets on the lock screen" (if associated with MiuiWeather or MiuiVideo)
  • 🚫 "Recommendations from MIUI" (if there is such a clause)

The disadvantage of the method is that launchers don't block ads completely, they just hide them visually, for example, banners can continue to load in the background, consuming traffic, but this method does not require technical skills and is reversible: just return the standard launcher to work as before.

For maximum effect, combine a third-party launcher with disabling ads through ADB. For example, after blocking com.miui.video through the console, the launcher will stop displaying video ads on the lock screen.

💡

If you still see ads after you install the launcher, check the permission settings for system applications, and sometimes MIUI automatically returns the permissions to display notifications.

4. Manual removal of advertising packages (for experienced users)

This is a method that is suitable for those who are willing to take more radical measures, which involves removing the ad modules’ up-files directly from the system partition. Attention: this will require an unlocked bootloader and access to a TWRP or other customized Recovery, and the wrong actions can lead to a device’s “brick!”

First, unlock the bootloader through the official Mi Unlock Tool (instructions on Xiaomi's website). Then scroll through TWRP and back up the /system partition. Then connect to the device via ADB in recovery mode and do:

adb shell


mount /system




rm -rf /system/priv-app/MiuiSystemAdSolution




rm -rf /system/app/HybridAccessory




rm -rf /system/app/HybridPlatform




rm -rf /system/priv-app/AnalyticsCore

These commands remove the core modules responsible for targeted advertising and analytics, and once the device is rebooted, the ads on the lock screen should disappear, but there are risks:

  • ⚠️ Mi Account and cloud services malfunction
  • ⚠️ Loss of opportunity to receive OTA-update
  • ⚠️ Need for manual firmware for future versions MIUI

⚠️ Note: Deleting system upkeep files without backup can make your device inoperable. If you are not sure about your actions, use methods without interfering with the system partition (for example, use the methods without interfering with the system partition, ADB hide).

5. Alternative firmware: switching to AOSP or custom MIUI

If all of these methods fail, the radical solution is to install custom firmware that is devoid of advertising, such as AOSP-based firmware (like LineageOS or Pixel Experience) completely removes all proprietary MIUI components, including advertising modules.

  • 🔓 Unlocked loader
  • 📱 Support your model with custom firmware
  • 🔧 Fastboot skills and TWRP

The advantages of custom firmware:

  • ✅ No advertising (including lock screen)
  • ✅ Smoother operation on older devices
  • ✅ Regular security updates

Cons:

  • ❌ Loss of branded functions MIUI (Second Space or Game Turbo)
  • ❌ Risk of unstable camera or sensor operation
  • ❌ Lack of official support

Before installing, check firmware compatibility with your model on the XDA Developers or 4PDA forums.

FirmwareFeaturesXiaomi support
LineageOSClean Android without unnecessary appsMost of the 2018+ models
Pixel ExperienceThe interface is like Google PixelFlagships and some Redmis
Xiaomi.euMIUI without advertising and Chinese servicesAll models (except the newest ones)
ArrowOSLightweight firmware with settingsOld and new devices
What if the camera doesn’t work after the firmware?
Most custom firmware for Xiaomi requires you to separately stitch through the camera modules (such as the ANX Camera or GCam). Download the appropriate module for your model from the 4PDA forum and install it via TWRP or Magisk. If the problem persists, check if your model supports Camera2API (you can find out through the Manual Camera Compatibility app).

6. Additional measures: blocking traffic of advertising servers

If the ads continue to appear, you can block them at the network level, and use apps like Blokada or AdGuard that filter traffic and block requests to Xiaomi ad servers, install one of these apps, then blacklist the following domains:

sdkconfig.ad.xiaomi.com


tracker.ai.xiaomi.com




data.mistat.xiaomi.com




ad.mi.com




api.ad.xiaomi.com

You can also use it. DNS-For example, in the settings of Wi-Fi or mobile network, specify DNS-Cloudflare servers 1.1.1.1 or 94.140.14.14 DNS). This will not eliminate advertising completely, but will reduce its quantity.

For advanced users, there's another way to do this: edit the hosts file, connect to the device via ADB and do:

adb shell


su




mount -o rw,remount /system




echo "127.0.0.1 sdkconfig.ad.xiaomi.com" >> /system/etc/hosts




echo "127.0.0.1 tracker.ai.xiaomi.com" >> /system/etc/hosts




mount -o ro,remount /system

⚠️ Note: Editing a hosts file without root rights may cause crashes on the next update MIUI. It is recommended to use this method only on devices with an unlocked bootloader.

💡

Blocking ad domains through DNS or apps like AdGuard is the safest way, as it doesn’t require any interference with system files, but it doesn’t offer a 100% guarantee, as Xiaomi periodically changes server addresses.

Comparison of methods: which one to choose?

To determine the best way, evaluate your skills and willingness to take risks. Below is a table comparing all methods:

MethodDifficultyEfficiencyRisks.Reversibility
Official settings⚠️ PartialNo.Yes.
ADB (disable applications)⭐⭐✅ Tall.MinimumYes.
Third-party launchers⚠️ MediumNo.Yes.
Removal of system upkeep⭐⭐⭐✅ Complete.⚠️ Brick of the devicePartially (needs backup)
Custom firmware⭐⭐⭐⭐✅ Complete.⚠️ Loss of guaranteeYeah (return to stock)
Blocking DNS/hosts⭐⭐⚠️ PartialMinimumYes.

For most users, the best solution is a combination of official settings + ADB. This gives a high level of cleaning from advertising without the risk of damaging the device. If you are willing to take radical measures, consider Xiaomi.eu custom firmware, which retains all the features of MIUI, but removes advertising and Chinese services.

FAQ: Frequent questions about removing ads on Xiaomi

❓ Why After Updating MIUI The commercial reappeared?
MIUI Often resets ad settings to standard on major updates. After installing a new firmware version, check: Settings section → Password and security → Blocking settings Status disabled through ADB Applications (sometimes they turn back on) If the ad returns, repeat the steps from the instructions.
❓ Can you remove advertising without a computer?
Yes, but the options are limited. Without a PC, you can: Disable ads in MIUI settings (Blocking Settings section) Install a third-party launcher (e.g. Nova Launcher) Use AdGuard to block ad domains To completely remove ads (especially on China ROM) without ADB.
❓ Will the way to work with ADB on POCO?
Yes, devices. POCO (for example, POCO F5 or POCO X5 Pro) run on the same firmware MIUI, All methods, including ADB, Except for custom-made firmware models. POCO Launcher, where a portion of the ad can be integrated differently.
❓ How to get back disconnected through ADB applications?
To return the hidden app, run the command: adb shell pm unhide name packet For example, to return Mi Video: adb shell pm unhide com.miui.video After that, restart the device.
❓Legal: Does the Ad Disabling Violate Xiaomi’s User Agreement?
Technically yes, MIUI’s user agreement states that some services (including advertising) are part of the ecosystem. However: Xiaomi does not block devices for disabling ads. Methods through ADB or settings do not violate the warranty (unlike unlocking the bootloader). In Europe and some Asian countries, data protection laws (GDPR) are in place that allow you to disable targeted advertising. If you use the device in Russia or the CIS, the risks are minimal, as local legislation does not regulate this issue.