Googleβs ads on Xiaomi smartphones appear in unexpected places, from banners in system applications to intrusive notifications about the companyβs services. Even after buying a device, users are faced with the fact that the manufacturer and Google have integrated advertising mechanisms at the firmware level. In this article, we will examine all the current ways to disable advertising, from standard settings to deep modification of the system, including methods for users without root rights and with them.
Itβs important to understand that Xiaomi uses two types of ads: native (on branded apps like Mi Browser or Mi Video) and Google ads (on Play, Discover, Chrome, etc.) Weβll focus on the latter category, because itβs often annoying because of aggressive targeting. If you want to get rid of all ads β including banners in MIUI β youβll have to combine several methods.
Before you start, check the MIUI and Android version on your device: Settings path β About phone β MIUI version. Some methods only work on certain firmware, and improper actions can lead to system failure or loss of warranty. If you are not sure of your skills, start with the safest methods (sections 1-3).
1. Disable personalized Google ads through settings
The easiest and safest way to reduce targeted ads is to disable personalization in your Google account. This won't remove ads completely, but will make them less intrusive. MIUI.
Instructions:
- π± Open Google Settings (cog icon in the Quick Settings Panel or in the app menu).
- π Go to the Google section β Managing a Google Account.
- π‘οΈ Select the Data and Personalization tab.
- π« Scroll to the Advertising Settings block and click Disable Ad Personalization.
- π Restart the device to make the changes effective.
This method also disables the collection of data about your activity for targeted advertising on other Google services (YouTube, Gmail, etc.), however, banners in apps (such as Google Discover) will remain - they will simply become less relevant.
β οΈ Note: Disabling personalization does not affect the amount of ads in Xiaomi apps (e.g., Mi Browser).
2. Remove unnecessary Google services through ADB (no root)
If standard settings donβt work, you can disable Googleβs system apps responsible for displaying ads using ADB (Android Debug Bridge), a method that doesnβt require root rights, but requires connecting the phone to a computer.
List of applications that can be safely disabled:
- π¦ com.google.android.apps.nexuslauncher β Google Launcher (if you use it) MIUI Launcher).
- π° com.google.android.apps.magazines β Google Play News (Banner Source in Discover).
- π¬ com.google.android.videos - Google Play Movies (advertising in recommendations).
- π com.google.android.apps.tachyon β Google Duplex (booking promotional notices).
Instructions for unsetting:
- Download and install ADB Tools on your computer.
- Turn on the phone Developer Mode (7 times click on the MIUI version in the settings) and activate Debugging over USB.
- Connect your phone to your PC and execute the command in the terminal: adb shell pm uninstall -k --user 0 com.google.android.apps.magazines (replace the name of the package with the one you want from the list above).
- Repeat for the rest of the applications.
β οΈ Note: Do not delete system services like com.google.android.gms (Google Play Services) β this will cause your phone to fail. Also avoid disabling com.google.android.gsf, or you will lose access to the Play Market.
Install Xiaomi drivers on PC| Download ADB Tools (latest version)|Enable USB debugging on your phone | Check the connection with the command `adb devices`| Make a backup of the data-->
3. Replacement of the standard launcher with an alternative
One of the sources of advertising on Xiaomi is the MIUI brand launcher, which can show banners on the home screen or in the application menu.
- π Nova Launcher β flexible setup, no advertising, gesture support.
- π¨ Lawnchair β open source, minimalist design.
- β‘ Hyperion Launcher β Optimized for Performance.
- π Microsoft Launcher β Windows integration, no advertising.
How to install and configure:
- Download the launcher from Play Market.
- When you first start, select it as the default launcher.
- In the new launcher settings, disable all options related to Google Discover or Google Feed.
- Remove Google Search widgets from the home screen (they may show ads).
The advantage of this method is the complete removal of ads on the home screen and in the application menu, as well as the ability to fine-tune the interface, but advertising in system applications (for example, in Chrome or YouTube) will remain.
π‘
If after changing the launcher, the icons of some applications are missing, try restarting the phone or clearing the launcher cache in the application settings.
4. Blocking ads via hosts file (requires root or Magisk)
For users with root rights or Magisk installed, there is a radical way to edit the hosts file, which is responsible for redirecting domains, and if you add the addresses of Google's ad servers to it, the system will stop downloading banners.
Instructions for Magisk:
- Install Systemless Hosts via Magisk Manager.
- Download the current list of blocked domains (for example, from here).
- Place the file in /sdcard/Download/hosts.
- Activate the module in Magisk and restart the phone.
List of key Google domains responsible for advertising:
| domain | Appointment |
|---|---|
| googleads.g.doubleclick.net | Google's main advertising server |
| pagead2.googlesyndication.com | Showing banners in apps |
| admob.com | Advertising in mobile applications |
| firebase-settings.crashlytics.com | Collection of statistics for targeting |
β οΈ WARNING: Incorrect editing hosts without Magisk (directly in) /system/etc/hosts) This can lead to loss of Internet access. Use only verified modules!
5. Installation of custom firmware (for experienced users)
The most drastic way to get rid of all advertising (including banners Xiaomi and Google) is to install custom firmware without Google services (GApps).
- π LineageOS β pure Android without Bloatware.
- π₯ Pixel Experience β firmware with Pixel interface and minimum number of Google services.
- β‘ Havoc-OS β Highly castomy firmware with module support.
- π‘οΈ GrapheneOS β Firmware with a focus on privacy (without Google).
Advantages:
- β Total lack of advertising at the system level.
- β Choosing which Google services to install.
- β Regular security updates.
Disadvantages:
- β Loss of warranty (if the phone is under warranty).
- β Risk of "bricking" if installed incorrectly.
- β Possible problems with the camera or sensors (depending on the model).
Installation instructions:
- Unlock the bootloader through the Mi Unlock Tool (requires a Xiaomi account binding).
- Install custom recovery (TWRP or OrangeFox).
- Download the firmware for your model from the XDA Developers forum.
- Flush the firmware through recovery by first making wipe data, cache, dalvik.
What if the camera doesnβt work after the firmware?
Additional measures: disabling notifications and limiting background activity
Even after applying the basic techniques, some Google apps may continue to show ads through notifications.
Step 1: Disable notifications from unnecessary services:
- Go to Settings β Applications β Application Management.
- Find Google Play Services, Google Play Store, Google (search app).
- In each of them, turn off the option to show notifications.
Step 2: Limit background activity:
- In the same application settings, select Battery β Background Limitation.
- Add to the list of restrictions Google Play Services and Google.
Step 3: Turn off Google Discover:
- On the home screen, swipe to the right to open Google Discover.
- Click on the gear icon β Settings β Disable.
π‘
Disabling background activity of Google Play Services can cause problems with account sync or some applications. Use this method only if other methods have not helped.