How to completely remove Google ads on Xiaomi smartphones: from simple settings to ADB-team

Advertising on Xiaomi smartphones is one of the most annoying features of MIUI firmware, especially if it is integrated into Google system applications. Even after buying a device, users are faced with banners in the settings menu, notifications about β€œrecommended services” and contextual advertising on Google Discover or YouTube. The reason lies in the agreements between Xiaomi and Google: the manufacturer receives income from the display of ads, and users – unnecessary clickable elements on the screen.

In this article, we’ll break down 5 working methods to disable Google ads on any Xiaomi smartphone (including Redmi, POCO, Black Shark, the methods are suitable for versions MIUI 12-14 or more new, and take into account the features of regional firmware (global, Chinese, European). ADB, But we're going to start with the simplest solutions that don't require technical skills.

Why Google Ads Are Appearing on Xiaomi and Can They Be Deleted Forever?

Google Advertising on Xiaomi is of two types:

  • πŸ“± Systemic - built into MIUI (For example, in Security, Topics, Files, you can turn it off through your firmware settings.
  • πŸ” Service – shown by Google apps (Search, YouTube, Play Store) requires separate settings in your Google account or blocking through the Google account ADB.

The manufacturer officially claims that the ads help to "support the development of MIUI," but in practice they often interfere with the interface slows down, consumes traffic and battery.

  1. Turn off personalized ads in your Google account.
  2. Block advertising services through hosts file or ADB.
  3. Remove (or disable) system applications responsible for displaying banners.

⚠️ Note: On Chinese firmware (China) ROM) There's more advertising than global ads. If you're using this version, consider flashing it on the Internet. EU ROM (For example, xiaomi.eu – there is no advertising by default.

πŸ“Š Which advertisements annoy you more?
Banners in MIUI settings
Advertising on Google Search
Notifications from Google Services
YouTube ads
other

Method 1: Disabling personalized advertising in your Google account

The easiest way to do this is to limit data collection for targeted advertising, which won't remove all banners, but it will reduce the number of banners and make them less intrusive.

Instructions:

  1. Open the Google Settings app (or go to Settings β†’ Google).
  2. Select Google Account Management β†’ Data and Privacy.
  3. Scroll to the Advertising Settings block and click Disable Ad Personalization.
  4. Confirm the action by clicking Disconnect in the pop-up window.

It is also recommended that:

  • πŸ”„ Reset the advertising identifier in the same menu (Reset Advertising identifier section).
  • 🚫 Disable Web and Application Activity in Privacy Settings.

β˜‘οΈ What to do in a Google account

Done: 0 / 4

This works on all Xiaomi devices, but it doesn’t eliminate ads completely, like banners on Google Discover or YouTube that will remain, but will become less relevant.

Method 2: Block ads through MIUI settings (without root)

MIUI firmware has built-in ad restriction tools, and their effectiveness depends on the firmware version and region:

Steps to shut down:

  1. Go to Settings β†’ About Phone and 7 times click on the MIUI version to activate the Developer Mode.
  2. Return to Settings β†’ Additional β†’ For developers and enable the option to debug over USB.
  3. Open Settings β†’ Applications β†’ Application Management.
  4. Find the Msa (MIUI System Ads), AdsService and Analytics apps, select Disable or Stop.

Some firmware may call these apps different. If you don't find them on the list, try:

  • πŸ” Enter in the search by settings request advertising or ads.
  • πŸ“ Check the System Applications folder in the Application Manager.
What to do if the β€œDisable” button is inactive?
If the button Disable gray, then the application is protected by the system, in this case, only removing through ADB (see Method 4) or obtaining root rights will help.

After disabling, restart the device. Advertising in the system menus (such as Settings or Files) should disappear.

Method 3: Using an Alternative DNS to Block Ads

Change of change DNS-The server allows you to block ad domains at the network level. This method does not require root and works on all Xiaomi devices.

Instructions:

  1. Go to Settings β†’ Connections β†’ Private DNS.
  2. Select the host name of the private DNS provider.
  3. Enter one of the addresses: dns.adguard.com (blocks ads and trackers), family.adguard-dns.com (blocks ads + adult content) doh.centraleu.pi-dns.com (open source alternative)

Save the settings and restart the device.

DNS-serverWhat's blockingSpeed.
dns.adguard.comAdvertising, trackers, phishing⭐⭐⭐⭐
family.adguard-dns.comAdvertising + Adult Content⭐⭐⭐
dns.nextdns.ioCustomizable filters⭐⭐⭐⭐⭐

This method blocks ads in the browser, some apps and some Google services, but it does not affect the system banners in MIUI.

πŸ’‘

If some sites have stopped opening after the DNS change, try using 1.1.1.3 (Cloudflare Family) – it only blocks malicious domains without affecting legitimate resources.

Method 4: Remove Advertising Applications via ADB (without root)

If previous methods have not helped, you can remove advertising components through the ADB (Android Debug Bridge. It doesn't require root rights, but it will require a computer and a computer. USB-cable.

Step-by-step:

  1. Download and install Google’s Platform Tools.
  2. Connect your smartphone to your PC, enable USB Debugging (see Method 2).
  3. Open the command line (cmd) in the folder with the platform-tools.
  4. Enter the command to check the connection: Adb devices should appear the name of your device.
  5. Follow the commands to remove ad packets (one by one): adb shell pm uninstall --user 0 com.miui.systemAdSolution adb shell pm uninstall --user 0 com.xiaomi.midrop adb shell pm uninstall --user 0 com.miui.analytics adb shell pm uninstall --user 0 com.miui.msa.global

The list of packages may vary depending on the model and firmware. To see all installed system applications, use the command:

adb shell pm list packages -s

⚠️ Note: Deleting some packages (e.g. com.google.android.gms) may disrupt Google services. Do not delete packages with Google in their name unless you are sure they are intended.

After you execute the commands, restart the device. Advertising in the system menus and some applications should disappear.

Method 5: Install custom firmware (for advanced users)

If you’re willing to take drastic measures, installing custom firmware (e.g., Xiaomi.eu, LineageOS, or Pixel Experience) will completely remove ads from Google and Xiaomi.

  • πŸ”“ Unlocked bootloader (on new devices, you need to wait 7-15 days after the request).
  • πŸ› οΈ Ability to work with fastboot and TWRP.
  • πŸ“± Backup data (firmware erases everything from the device).

Advantages of custom firmware:

  • 🚫 Total lack of advertising (including system-wide).
  • πŸ†• Regular security updates.
  • πŸŽ›οΈ Additional interface settings.

Disadvantages:

  • ⚠️ Loss of warranty (if the device is under warranty).
  • πŸ”‹ Possible battery or camera problems (depending on firmware).
  • πŸ“Ά Certain functions (e.g, NFC or IR-blaster) may not work properly.

Recommended firmware for Xiaomi:

FirmwareFeaturesWebsite
xiaomi.euOfficial MIUI without ads, weekly updatesxiaomi.eu
Pixel ExperienceClean Android without MIUI, support for Google servicesget.pixelexperience.org
LineageOSMinimalist Android, without Google services (should be installed separately)lineageos.org

πŸ’‘

Custom firmware is the most reliable way to get rid of advertising, but it is only suitable for advanced users, and beginners are recommended to start with methods 1-3.

What if the adverts returned after the MIUI update?

After updating the MIUI firmware, some advertising components can be restored.

  1. Before updating, back up a list of disabled apps (for example, through ADB or Titanium Backup).
  2. After the update, repeat the steps from Method 2 (disabling system applications).
  3. If you use a hosts file to block ads, update it through an app like AdAway.

You can also turn off automatic MIUI updates:

  1. Go to Settings β†’ About the phone β†’ System update.
  2. Click on the three dots in the top right corner and select Settings.
  3. Turn off the option of Automatic download via Wi-Fi.

If the ad appears in a particular app (such as Google Search or YouTube), check its settings:

  • πŸ” In Google Search: Settings β†’ General. β†’ Notifications β†’ Turn off all unnecessary alerts.
  • πŸ“Ί On YouTube: Settings β†’ General. β†’ Restricted mode (enable it to reduce the amount of advertising).

FAQ: Frequent questions about advertising on Xiaomi

Can I turn off advertising without a computer?
Yes, methods 1-3 (setting up a Google account, disabling system applications in MIUI, changing DNS) do not require a PC, but you need an ADB to completely remove ad packets (Method 4), which means a computer.
Why does it still appear after the ad is turned off in the settings?
You probably haven't turned off all ad components. Check: System applications Msa, AdsService, Analytics (should be disabled); Google account settings (ad personalization should be turned off); MIUI updates (sometimes return ads); If the problem persists, try Method 4 (delete via ADB).
Is it safe to remove system applications through ADB?
Removing most ad packages (com.miui.systemAdSolution, com.xiaomi.msa.global) is safe and does not affect system stability.However: Do not delete packages called google, android or miui.core - this can cause failures. Before deleting, back up via ADB: adb backup -apk -shared -all -f backup.ab
How to remove ads in Google Discover?
Google Discover shows ads based on your activity to reduce: Open Google Search β†’ Click on the avatar β†’ Settings β†’ Discover. Turn off the option to Show Interesting Finds. In the same menu, click on Interest Management and delete all topics. You can only completely remove ads in Discover by blocking domains in the hosts file (requires root).
Does resetting your phone help you to factory settings?
Reset will delete all your settings, including disabling ad components. After reset: Ads in MIUI will return (you have to repeat Methods 2-4); Google account settings (Method 1) will remain if you use the same account. Reset only makes sense if you want to start from scratch and apply all the methods of blocking adverts again.