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

Why does the ad appear on the lock screen and can it be removed?

Xiaomi’s lock screen is one of the most controversial places in MIUI firmware, with time, notifications and quick action on the one hand, and aggressive advertising that interferes with users, due to monetization of the brand shell: Xiaomi integrates banner ads into system applications to compensate for the low price of the devices.

The good news is that you can remove ads from the lock screen without rooting and complex manipulation. The bad news is that not all methods work equally well on different versions of MIUI (especially MIUI 14/15 for global and Chinese firmware). In this article, we will analyze all the current ways of 2026, including official settings, ADB commands and workarounds for stubborn advertising modules.

It’s important to understand that some methods may not work immediately or require a reboot. If you use POCO or Redmi with custom firmware (e.g. Xiaomi.EU), advertising is usually not there initially – the problem is typical for official global and Chinese builds.

Method 1: Disabling personalized advertising in MIUI settings

The easiest and safest way to do this is to deactivate personalized recommendations through the settings menu, which will not remove the ads completely, but will reduce the amount of ads significantly. MIUI 12–15:

  1. Open Settings β†’ Google β†’ Advertising.
  2. Click Disable Personalized Ads and confirm the selection.
  3. Return to the main settings menu and go to Settings β†’ Memory β†’ Cleanup.
  4. Slap the gear icon (βš™οΈ) in the upper right corner and select Clean Advertising.

This method works on most models (Redmi Note 12/13, POCO X5, Mi 11/12), but does not guarantee 100% results.

πŸ’‘

If the β€œClean Up Ads” item isn’t on the menu, try clearing the Security app cache first (Settings β†’ Apps β†’ App Management β†’ Security β†’ Storage β†’ Clear Cache).

Method 2: Deactivation of advertising services through ADB (without root)

More radical method: disabling advertising packages via Android Debug Bridge (ADB). This does not require superuser rights, but requires a computer and USB-Advantage: Advertising disappears forever until you reset the settings to the factory.

You'll need:

  • πŸ–₯️ Computer with Windows/macOS/Linux and installed Xiaomi drivers.
  • πŸ“± Included debugging by USB on the phone (Settings) β†’ The phone. β†’ Version. MIUI β€” Tap 7 times, then Settings β†’ Additionally. β†’ For developers β†’ Debugging by USB).
  • πŸ”Œ USB-cable (preferably original).
  • πŸ“‚ Archives with ADB Tools (download platform-tools for your OS).

Steps:

  1. Unpack the platform-tools into any folder (e.g., C:\adb).
  2. Connect the phone to your computer and select File Transfer mode.
  3. Open the command prompt (Win + R β†’ enter cmd) and go to the folder with ADB: cd C:\adb
  4. Check the device connection: Adb devices (the serial number of your Xiaomi should appear).
  5. Follow the commands in turn: adb shell pm hide com.android.browser adb shell pm hide com.miui.systemAdSolution adb shell pm hide com.xiaomi.midrop adb shell pm hide com.miui.analytics
  6. Reboot the phone.

Install Xiaomi drivers on PC|

Enable debugging over USB on your phone |

Download the latest version of platform-tools |

Connect the phone in the mode "File transfer" |

Check what adb devices displays your device.-->

If the ad remains after the reboot, try additional commands:

adb shell pm uninstall --user 0 com.miui.analytics


adb shell pm uninstall --user 0 com.xiaomi.midrop

πŸ’‘

Pm hide commands temporarily β€œhide” applications for the current user without removing them completely. This is safer than uninstall, and allows you to return everything back to pm uninstall --user 0 (replacing hide with unhide).

Method 3: Use of third-party applications (without root)

If previous methods have not worked, you can use specialized utilities.

AnnexHow it worksPlusesCons
QuickShortcutMakerIt allows you to find and disable hidden system activities related to advertising.No ruths, free.The interface is complicated for beginners.
App InspectorScans applications for advertising SDKs (e.g. com.bytedance.sdk).Shows the exact packet names for ADB.It does not block ads on its own.
BlokadaBlocks advertising domains at the DNS level.It works systemically, without root (in VPN mode).It may conflict with banking applications.

Instructions for QuickShortcutMaker:

  1. Install the app from Google Play.
  2. In the search box, type com.miui.systemAdSolution.
  3. Find activities called AdActivity or SplashAdActivity.
  4. Then, tap them and select to unplug them (if available).
What if the app doesn’t find advertising packages?
If QuickShortcutMaker doesn’t show the desired activity, try: 1. Clear the Security app cache (as in Method 1). 2. Reboot your phone and repeat the search. 3. Use App Inspector to scan system applications for advertising SDKs (look for packages with ad, analytics, bytedance in the title).

Method 4: Manual removal of advertising applets (for advanced ones)

This method involves removing the system APK-Danger: if you act carelessly, you can disrupt the work MIUI. We recommend only for users who are ready for possible consequences.

Procedure:

  1. Install a file manager with access to system folders (such as Mixplorer or FX File Explorer).
  2. Give it root rights (if any) or use ADB to mount /system in write mode: adb shell su mount -o rw, remount /system
  3. Go to /system/priv-app/ and delete (or rename it by adding.bak): SystemAdSolution AnalyticsCore Msa (if any)

Reboot the phone.

Official settings for MIUI|

ADB-team|

Appendix side (Blokada, QuickShortcutMaker) |

Manual removal of APK|

I haven't tried it yet.|Another way.-->

Warning: Deleting system files may result in:

  • 🚨 Errors in updating MIUI.
  • 🚨 Loss of functionality (such as push notifications).
  • 🚨 "Brick" device (in rare cases).
adb pull /system/priv-app/ C:\backup_priv-app

Method 5: Transition to a custom firmware (radical solution)

If nothing worked, the last option is to install an alternative firmware, for example, Xiaomi.EU or LineageOS. These builds are initially devoid of advertising and unnecessary services, but require:

  • πŸ”“ Unlocked bootloader (bootloader).
  • πŸ“± Compatible model (see the list of supported devices on the forum Xiaomi.EU).
  • πŸ’» Ability to work with Fastboot and TWRP.

The advantages of custom firmware:

  • βœ… No advertising at all (including lock screen, settings menu, system applications).
  • βœ… Regular security updates.
  • βœ… Ability to fine-tune the interface.

Cons:

  • ❌ Loss of warranty (if the bootloader is unlocked).
  • ❌ Risk of β€œbricking” in case of errors during firmware.
  • ❌ Some features (such as Mi Pay or Game Turbo) may not work.
How to check if the bootloader is unlocked?
Turn off the phone, then press Volume Down + Power to log in to Fastboot. Connect the phone to your PC and execute the command: fastboot oem device-info If there is a line Device unlocked: true in the answer, the bootloader is unlocked.

What if the advertisements returned after the update?

MIUI updates often return disabled ad modules to avoid this:

  1. Turn off automatic update: Settings β†’ The phone. β†’ Updating the system β†’ βš™οΈ β†’ Auto-update β†’ Off.
  2. Use ADB after each update: Repeat the commands from Method 2, as the update can restore deleted packets.
  3. Install Blokada in β€œAlways-on VPN” mode: This will block the download of banner ads at the system level.

If you notice that after upgrading to MIUI 15, ads have become more frequent, this is due to Xiaomi’s new policies: In recent firmware versions, ad packages (com.miui.systemAdSolution) are better protected and harder to disable without root rights.

πŸ’‘

Since 2023, Xiaomi has been increasingly protecting system applications from removal. If ADB commands have stopped working, try first updating the platform-tools to the latest version, and then repeat the procedure.

FAQ: Frequent questions about ads on Xiaomi lock screen

❓ Why After Disabling Advertising Through ADB It reappears?
This is due to background updates to system applications. Xiaomi can restore deleted packages through Mi Push or System Update services. Solution: Disable Auto Update for Security. β†’ Annexes β†’ Security β†’ βš™οΈ β†’ Auto-update β†’ Use Blokada to block ad server domains (api.ad.xiaomi.com, sdkconfig.ad.xiaomi.com).
❓ Can you remove advertising without a computer?
Yes, but with limitations: πŸ“± Method 1 (disabling personalized advertising). πŸ“± Installation of Blokada or RethinkDNS (blocking at the level) DNS). πŸ“± Using QuickShortcutMaker to disable activities, but you can't do without a PC to completely remove ad packages.
❓ Why not? POCO There is no advertising, but Redmi has it?
This depends on the regional firmware: POCO (global models) often come with a lightweight version of MIUI, where ads are disabled by default. Redmi (especially for the Chinese market) have aggressive monetization through advertising. Xiaomi.EU and LineageOS firmware remove ads completely regardless of the model.
❓ Will the way to work with ADB on MIUI 16?
Starting with MIUI 16 (expected 2026-2026), Xiaomi plans to tighten control over system packages. Alternatives: Magisk + DisableFlagSecure module (requires root); switching to custom firmware; Blokada or similar ad blocking.
❓ Is it legal to turn off ads on Xiaomi?
Yes, but with reservations: βœ… Disconnecting via Settings (Method 1) is completely legal. ⚠️ Use of the ADB does not violate the license agreement, but may be considered an "unauthorized change" to the software". ❌ Deleting system files (especially on rooted devices) can lead to a loss of warranty. Xiaomi does not block devices for such actions, but in rare cases can refuse warranty repair if it finds traces of modifications.