How to permanently remove ads from the lock screen Xiaomi: a step-by-step guide

Ads on the lock screen of Xiaomi, Redmi or POCO annoy millions of users around the world. Even after buying a premium model like Xiaomi 14 Ultra or POCO F6 Pro, owners encounter intrusive banners that slow unlock and spoil the appearance of the system, the reason lies in the branded shell of MIUI, which aggressively monetizes free services through advertising.

In this article, we will look at 5 proven ways to remove ads from the lock screen, from standard settings to radical methods using ADB and root rights. Each method has been tested on current versions of MIUI 12/13/14 (including global and Chinese firmware).

If you're tired of seeing banners with AliExpress, local services, or games every time you unlock your phone, this guide will help you get rid of them forever.

1. disable personalized advertising in MIUI settings

The safest and most official way to disable personalized recommendations is through the settings menu, which works on all Xiaomi models (including the Redmi Note 12, POCO X5, Mi 11 and later), but does not guarantee 100% removal of ads, but only reduces the amount of advertising.

Instructions:

  1. Open Settings β†’ Google β†’ Advertising.
  2. Click Disable Personalized Ads and confirm the selection.
  3. Go back to the basic settings and go to Settings β†’ Apps β†’ App Management β†’ All Apps.
  4. Find Msa (or MIUI System Ads in global firmware), open it and click Disable.

After these actions, the ads on the lock screen should become less intrusive, but they won't disappear completely. For a radical solution, move on to the following methods.

⚠️ Note: Disabling Msa may cause system notifications (such as weather or calendar) to crash. If you notice problems, return your settings back.

πŸ“Š What kind of Xiaomi model do you have?
Xiaomi (Mi, 11/12/13/14 series)
Redmi (Note, K, A series)
POCO (F, X, M series)
Black Shark
other

2. reset advertising ID (without root)

The Advertising ID is used by MIUI to target banners, which will not remove ads completely, but will make them less relevant (and less annoying) and works without root rights and is suitable for all Android versions.

How to Reset Advertising ID:

  • πŸ“± Install AppBrain Ad Detector (free).
  • πŸ” Open the app and go to the Advertising section ID.
  • πŸ”„ Click Reset Advertising ID and confirm the action.
  • πŸ“΅ Reboot the phone.

This is particularly effective for Xiaomi users in Europe and Asia, where ads are often geolocated, and when reset, banners may become less targeted (for example, random offers will be displayed instead of local services).

πŸ’‘

If the ad returns after 1-2 days, repeat the procedure.Some versions of MIUI automatically restore Advertising ID after updates.

3. disable system applications via ADB (without root)

For users ready for more radical measures, there is a way to disable advertising services via Android Debug Bridge (ADB).This method does not require root rights, but will require connecting the phone to a computer. Works on all Xiaomi models with Android 8.0 and later.

Step-by-step:

  1. Download and install Platform Tools (the official tool from Google).
  2. Turn on USB Debugging on your phone: Settings β†’ About Phone β†’ MIUI version (click 7 times to activate Developer Mode), then go back to Settings β†’ Additional β†’ Developers β†’ Debugging on USB.
  3. Connect your phone to your PC and type in the command line: adb devices (the device should appear).
  4. Follow the commands in turn: adb shell pm hide com.miui.analytics adb shell pm hide com.xiaomi.midrop adb shell pm hide com.miui.systemAdSolution
  5. Reboot the phone.

These commands disable the main MIUI ad modules. If there is still ad after the reboot, try adding another command:

adb shell pm hide com.android.browser

⚠️ Warning: Disabling system applications may cause Mi Account, Themes, or Browser errors. If you notice a failure, return the settings with the adb shell pm unhide command].

Install Platform Tools on PC

Enable debugging over USB on your phone

Connect your phone to the original cable

Check the detection of the device by the team `adb devices`

Backup of important data-->

4. Removal of ads using Magisk (root required)

If previous methods have failed, and root rights on your Xiaomi have already been obtained, you can use modules for Magisk that block ads at the system level, this method is guaranteed to remove all ads, including banners on the lock screen, in apps and notifications.

The best modules for Magisk:

  • πŸ›‘οΈ MIUI AdBlocker – a specialized module for MIUI, Blocks advertising in system and third-party applications.
  • 🚫 ReVanced – removes ads on YouTube, Google Apps and partially in the MIUI.
  • πŸ” Adaway – Blocks Advertising Domains at Host Level.

How to install the module:

  1. Download the module file (.zip extension).
  2. Open Magisk Manager and go to the Modules section.
  3. Click Install from Storage and select the downloaded file.
  4. Reboot the phone.

Once installed, the ads should disappear completely. If the banners are left, check if the module is active in Magisk and if there are conflicts with other modifications.

What if after installing the Magisk module, the phone does not start?
If after installing the module Xiaomi stuck on the logo or went to bootloop: 1. Press Power + Volume up to enter Recovery. 2. Select Advanced β†’ Magisk β†’ Uninstall Magisk. 3. Reboot the phone and try to install the module again (possibly the problem is incompatibility versions).

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

This method requires root rights and knowledge of working with the Android file system.It is suitable for users who want to completely remove MIUI advertising modules, rather than just disabling them.

List of advertising packages in MIUI:

Package nameDescriptionCan I remove it?
com.miui.analyticsAnalytics and advertising displayβœ… Yes.
com.xiaomi.midropAdvertising push notificationsβœ… Yes.
com.miui.systemAdSolutionThe main module of advertising on the lock screenβœ… Yes.
com.android.browserXiaomi browser with built-in advertising⚠️ You can, but you'll lose your browser.
com.miui.playerMusic player with banners⚠️ You can, but you'll lose the player.

How to remove packets:

  1. Install Root Explorer (or any file manager with root access).
  2. Go to /system/priv-app/ or /system/app/.
  3. Find the folders with the names from the table above and delete them (or rename them by adding.bak).
  4. Reboot the phone.

⚠️ Warning: Removing system packages could lead to crash MIUI or the inability to update the firmware. TWRP Or Mi Flash Tool.

πŸ’‘

Hand-removing packets is the most radical way, but also the riskiest way, and only use it if other methods have failed and you are prepared for possible failures.

6. Alternative firmware (for advanced users)

If you’re tired of advertising and MIUI restrictions, consider installing custom firmware.

  • 🌍 Xiaomi.EU – modified MIUI Advertising free, with advanced settings (supports most models).
  • πŸ€– LineageOS – β€œclean” Android without unnecessary apps and advertising.
  • ⚑ crDroid – Optimized firmware with improved performance.

Advantages of custom firmware:

  • βœ… No system advertising.
  • βœ… More opportunities to set up.
  • βœ… Regular security updates.

Disadvantages:

  • ❌ Loss of warranty (if the phone is under warranty).
  • ❌ Risk of "bricking" if installed incorrectly.
  • ❌ Certain functions (e.g, IR-blaster NFC) They may not work properly.

If you do, check out the instructions for your model on the XDA Developers or 4PDA forum.

FAQ: Frequent questions about ads on Xiaomi lock screen

πŸ”Ή Why After Updating MIUI commercials are back?
MIUI updates often restore disabled system applications (such as Msa or com.miui.analytics). After the update, you will have to re-disable advertising modules via ADB or Magisk. To avoid this, you can: Disable automatic MIUI updates in the settings. Use the MIUI AdBlocker module for Magisk - it blocks ads even after the updates.
πŸ”Ή Can you remove advertising without rooting and ADB?
Yes, but not completely. Ways without root and ADB: Disable personalized ads in the settings (article 1); Reset Advertising ID (section 2); Install an alternative launcher (like Nova Launcher), but this will not affect the lock screen; At least ADB will be required to completely remove ads from the lock screen.
πŸ”Ή Will the way to work with ADB on POCO F5?
Yes, the POCO F5 (like other POCO models) runs on MIUI, so all the methods in this article are applicable. The main thing is to use the current version of Platform Tools and enable USB Debugging. If the ad remains after executing the commands, check if it is blocked by antivirus or built-in MIUI protection (sometimes you need to temporarily disable Mi Protect).
πŸ”Ή Can I return the ad if something goes wrong?
Yes. If you have problems with your system applications using ADB or deleting packets, use one of the commands: Adb shell pm unhide to return the package that has been disabled. To recover the remote packet, search the phone through the Mi Flash Tool (loss of data!). Always backup before experimenting with system files.
πŸ”Ή Why Xiaomi 13 Pro Ads Appear After All Manipulations?
In premium models (Xiaomi 13 Pro, Xiaomi 14), ads can be embedded deeper due to the global firmware features. Try: Install Magisk and MIUI AdBlocker module. Go to Xiaomi.EU firmware (there are no ads by default). Disable updates for Msa and MIUI System Ads applications in Google Play.