How to permanently disable Google ads on Xiaomi Redmi: from simple settings to simple ADB-hack

Owners of Xiaomi Redmi smartphones regularly face one unpleasant feature of MIUI firmware: aggressive advertising from Google, which appears in the search bar, on the home screen and even in system notifications, and the problem is relevant for both budget models (Redmi 9A, Redmi Note 10) and flagships (Redmi K50, Redmi Note 12 Pro+).

It's important to understand that some of the ads are embedded in Google services (like Google Discover or Google Play Services), and another in the branded shell MIUI. So to get rid of banners, you need to combine several methods. We tested each method on the current versions of MIUI 14 and HyperOS (2026), so the instructions are guaranteed to work on modern firmware.

1. Disable personalized advertising in Google settings

The safest and most official way is to limit data collection for targeted advertising, which won't remove all banners, but will significantly reduce their number, and works on all Redmi models, including the Redmi 13C, Redmi Note 12 and older devices.

Instructions:

  • πŸ“± Open the Google Settings app (not to be confused with the phone's basic settings!) If it's not on the home screen, search through a search system.
  • πŸ” Go to the Google Account Management section β†’ Data and confidentiality.
  • πŸ›‘οΈ Scroll to the Advertising Settings block and select Disable Ad Personalization.
  • πŸ”„ Reboot your smartphone to make changes take effect.

This method blocks impressions based on your search queries and location, but does not remove MIUI system ads (such as banners in Security or Topics).

πŸ“Š Which advertisements annoy you the most?
Banners in Google Search
Advertising in MIUI (topics, security)
Notifications from annexes
Browser advertising

2. Remove unnecessary system applications (without root)

Many of the advertising modules in MIUI are tied to pre-installed applications that can be disabled or removed without superuser permission.

AnnexType of advertisementCan I remove it?
Msa (MIUI System Ads)Banners in settings, notificationsYes (via ADB)
CleanerAdvertising in the "Cleaning" sectionYeah (offline)
Mi Video / Mi MusicBanners in playersYes (total removal)
Google Play News NewsGoogle Discover TapeYeah (offline)

To remove without root, use ADB (Android Debug Bridge). Connect Redmi to your PC, enable USB Debugging (Settings β†’ About Phone β†’ MIUI Version β†’ 7 times press to unlock developer mode), then follow the commands:

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


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




adb shell pm uninstall --user 0 com.google.android.apps.magazines

For applications that cannot be removed (such as Msa), use the Disabled:

adb shell pm disable-user --user 0 com.miui.systemAdSolution

Enable debugging over USB in the developer settings

Install Xiaomi drivers on PC

Download the ADB platform (for example, from Google)

Connect your phone to your PC with the original cable

-->

⚠️ Note: Deleting system applications may cause some functions to work unstable (e.g., cleaning a cache or video player). β†’ Additionally. β†’ Backup.

3. Blocking ads via DNS (without root)

Change. DNS-So you can block the loading of ad domains, and it works at the network level, and it doesn't require any interference. DNS plug-in:

  • πŸ›‘οΈ AdGuard DNS: 176.103.130.130 and 176.103.130.131
  • 🌍 NextDNS: 45.90.28.167 (requires registration for customization)
  • πŸ”’ Cloudflare Family: 1.1.1.3 (Blocking Malware) + promotion)

How to set up:

  1. Go to Settings. β†’ SIM-maps and mobile networks β†’ Private DNS.
  2. Select the Private DNS Host Name and type dns.adguard.com.
  3. For Wi-Fi: Go to network settings β†’ Change network β†’ Additional β†’ DNS β†’ Specify static IP (e.g. 176.103.130.130).

The method is effective: ~60-70% ad blocking.It does not work for built-in MIUI banners (for example, in Topics), but removes ads in the browser and some applications.

πŸ’‘

To check the DNS, use your browser and go to dnsleaktest.com. If the results show your selected DNS (e.g. AdGuard), the settings are applied correctly.

4.Use of blocking applications (with and without root)

Specialized utilities allow you to flexibly configure ad blocking, and let's consider two options: for devices without root and with root.

No root:

  • πŸ“± Blokada (Free Version): Creates a Local VPN, filtering ad domains, not requiring superuser rights, but can slow down the Internet.
  • πŸ›‘οΈ AdGuard: Offers a browser with built-in lock + System filter (requires settings) HTTP-manually).

From root:

  • πŸ”§ AdAway: blocks ads at the hosts file level. Requires superuser rights, but works as efficiently as possible.
  • πŸ“΅ XprivacyLua: restricts the access of applications to advertising SDK (For example, Google AdMob).

For Redmi with an unlocked bootloader and Magisk installed, we recommend the Universal Ad-Blocker module, which combines locking via hosts and DNS.

⚠️ Note: Blocking applications may conflict with banking programs (e.g., SberBank Online or Tinkoff) If payment services stop working after installation, add them to exceptions or temporarily disable them. VPN/proxy.

5. Manual editing of hosts file (for advanced)

The hosts file in Android is responsible for matching domain names with IP-Adding ad domain entries to 127.0.0.1 completely blocks them from downloading.

Instructions:

  1. Install a file manager with root support (such as Root Explorer or Mixplorer).
  2. Go to /system/etc/hosts and back up the original file.
  3. Open the edit file and add lines (example to block Google Ads): 127.0.0.1 googleads.g.doubleclick.net 127.0.0.1 pagead2.googlesyndication.com 127.0.0.1 adservice.google.com
  4. Save the file, set the rights 644 (rw-r--r---).

Critical! Incorrect editing of the hosts file can lead to loss of Internet access. If the Internet is lost after the changes, restore the original version of the file.

Where to get the current list of domains to block?
Download ready-made hosts files from resources: 1. AdAway (updated weekly) 2. Peter Lowe's List (specialized for AdServers) 3. Steven Black (universal list) Combine files into one, removing duplicates, before downloading to your phone.

6.Resetting of advertising ID and restriction of access to data

Each Android device is assigned a unique Advertising ID (AAID) that is used for targeted advertising, and its reset and access restriction reduces the number of impressions.

How to reset AAID:

  1. Go to Settings β†’ Google β†’ Advertising.
  2. Click Reset Advertising ID.
  3. Activate the option to disable advertising personalization.

For full control, use App Ops (requires ADB or root) to restrict access to ad permissions:

  • πŸ” Find the Google Play Services app in the list.
  • 🚫 Disable permissions: Show system windows, run when booting.
  • πŸ“± For MIUI: Restrict access to Notices for Msa and Cleaner.

πŸ’‘

Resetting an advertising ID is only effective in combination with other methods (DNS, blockers), which by itself does not remove ads, but only makes them less personalized.

7. Alternative firmware: transition to AOSP or custom software

If none of the methods worked, the radical solution is to install custom firmware based on AOSP (like LineageOS, Pixel Experience or ArrowOS), which lacks built-in MIUI advertising and offers a clean Android.

Pros:

  • βœ… Complete absence of system advertising.
  • βœ… Regular security updates.
  • βœ… Ability to fine-tune the interface.

Cons:

  • ❌ Loss of branded functions MIUI (Second Space or Game Turbo).
  • ❌ Risk of "bricking" if installed incorrectly.
  • ❌ The need to unlock the bootloader (leads to a data reset).

Installation instructions:

  1. Unlock bootloader via Mi Unlock Tool (requires Xiaomi account binding and waits 7-14 days).
  2. Install custom recovery (TWRP or OrangeFox).
  3. Sweep through the selected firmware (e.g. Pixel Experience for Redmi Note 11).

⚠️ Note: Installing custom firmware will void Xiaomi’s warranty and may cause some modules to fail (e.g, NFC or IR-Before you run the firmware, check the compatibility on the forum. XDA Developers.

FAQ: Frequent questions about ad blocking on Xiaomi Redmi

πŸ”Ή Why banners still show up after personalized advertising is turned off?
Disabling personalization in Google settings only blocks targeted ads based on your data. MIUI system banners (such as in Themes or Security) are managed separately – they must be disabled via ADB or application removal (Msa, Cleaner).
πŸ”Ή Can you turn off advertising without rooting and ADB?
Yes, but the effectiveness will be limited. DNS-lockdown (AdGuard) DNS) + Blocking application (Blokada) + Disable personalization in Google settings will reduce the amount of advertising on the ~70-80%. It is impossible to completely remove it without deep intervention.
πŸ”Ή Why after removing the ms through ADB Advertising returns after update MIUI?
When you update your MIUI firmware, some system applications (including Msa) are automatically restored. Solution: after each update, repeat the command adb shell pm uninstall --user 0 com.miui.systemAdSolution or use Magisk modules to permanently lock.
πŸ”Ή Whether AdGuard blocks DNS YouTuber?
No, DNS-Blocking does not work for advertising in applications that use HTTPS and your own servers (e.g. YouTube, Instagram) Use YouTube ads to block: πŸ“± Vanced app (requires MicroG). 🌐 Browser with uBlock Origin extension (mobile version).
πŸ”Ή How to return ads if something goes wrong?
If important features (such as push notifications or internet access) are lost after manipulation, follow the following steps: Restore the original hosts file from backup. DNS customized Wi-Fi/Reinstall remote system applications via mobile network ADB: adb shell cmd package install-existing com.miui.systemAdSolution Reset network settings: Settings β†’ SIM-maps and networks β†’ Reset network settings. If the problem persists, reset to factory settings (Settings) β†’ The phone. β†’ Resetting settings).