How to completely disable ads on Xiaomi Redmi 9A: a step-by-step guide

Xiaomi Redmi 9A owners often face intrusive ads in system applications, notifications, and even on the lock screen. The manufacturer has integrated advertising modules into the MIUI shell for monetizing budget devices, but this creates discomfort when using. In this article, we will analyze all the working ways to disable advertising, from standard settings to advanced methods using ADB.

It is important to understand that Redmi 9A with global firmware (EEA) advertising is much less than in the Chinese or Indian version of MIUI. If your device was bought in Russia or Europe, some methods may not be necessary.

Before you start settings, make sure your Redmi 9A has the latest version of MIUI installed. Check this in Settings β†’ About Phone β†’ System Update. Outdated firmware versions may not support some ad-disabled settings.

πŸ“Š Which advertisements annoy you the most?
Banners in settings
Pop-up notifications
Advertising in annexes
Advertising on the lock screen

1. disable personalized advertising in MIUI settings

The easiest way to reduce impressions is to deactivate ad personalization, which won’t remove all banners, but will make them less intrusive and relevant.

Go to Settings β†’ Google β†’ Advertising and:

  • πŸ”Ή Turn off the slider "Personalized Advertising"
  • πŸ”Ή Click "Reset advertising" ID" (This will nullify your profile for targeted advertising)
  • πŸ”Ή In the "Interests" section, delete all categories that the system has collected about you.

Then go back to the basic settings and go to Settings β†’ Applications β†’ Application Management β†’ All apps. Find Msa (Mobile Services Framework) and:

  • πŸ“΅ Turn off Auto Start"
  • 🚫 Disable displays over other windows ("display over")
  • πŸ”• Restrict access to "Notifications"

πŸ’‘

If you don’t have Msa in the list of applications, try finding com.miui.systemAdSolution, which is the main module responsible for system advertising.

2. Manual disabling of advertising in system applications

Ads in Redmi 9A are most often found in standard Xiaomi utilities, and let’s look at how to remove them in each of them.

Security appendix:

  1. Open the app and go to Settings (βš™) β†’ About the programme
  2. Tap. 5-7 once on the line β€œVersion” MIUI", until the message "Additional settings unlocked" appears"
  3. Go back and open a new section called β€œAdditional Settings”.
  4. Turn off the "Advertising Recommendations" slider

Annex "Themes" (Themes):

  • 🎨 Go to Profile. β†’ Settings β†’ Advertising preferences
  • πŸ”˜ Uncheck all boxes: "Personalized recommendations", "Show ads"
  • πŸ”„ Update your app through Google Play – sometimes newer versions contain less advertising

Music appendix (Music):

  • 🎡 Go to Settings. β†’ Additionally. β†’ Advertising settings
  • 🚫 Turn off "Show ads on the player screen" and "Advertising banners"
  • πŸ”„ Alternative: Install a third-party player (for example, VLC poweramp)
What to do if there is no β€œAdvertising Settings” item?
In some regional versions of MIUI, this section is hidden. Try changing the region in the Xiaomi account settings to India or Russia (in Settings β†’ Xiaomi Account β†’ Country / Region), then reboot the phone.

3.Using ADB to Deeply Disable Advertising

If standard methods don’t work, you’ll need to connect to your phone via Android Debug Bridge (ADB), which requires a computer but has the maximum effect.

Preparation:

  1. Download ADB Tools for your OS
  2. Enable USB Debugging on your phone: Settings β†’ About Phone β†’ MIUI Version (Tap 7 times), then Settings β†’ Additional β†’ For Developers β†’ Debugging on USB
  3. Connect Redmi 9A to your PC and confirm your trust in the device

Commands to disable ads:

adb shell pm hide com.miui.systemAdSolution


adb shell pm hide com.xiaomi.midrop




adb shell pm hide com.android.browser




adb shell settings put global captive_portal_detection_enabled 0

After you execute the commands, restart the phone.

  • πŸ›‘οΈ Disable the system module of advertising systemAdSolution
  • πŸ“΄ Remove ads in Mi Drop and standard browser
  • 🌐 Stop checking the captive portal (which sometimes shows ads when connecting to Wi-Fi)

Original connected USB-cable|Debugging is on. USB|Drivers installed ADB PC-only|Backup of important data is made|Battery charge >50%-->

4. Alternative methods: disabling via DNS and host file

Blocking ad servers at the DNS level or through a hosts file modification is an effective way to do so without root rights.

Method 1: Replacement of DNS

  • πŸ“‘ Go to Settings. β†’ Wi-Fi (or Mobile Network)
  • πŸ”§ Tap on the current network. β†’ "Change the network" β†’ "Additionally"
  • πŸ”’ In the field "DNS" Type 1.1.1.1 (Cloudflare) or 94.140.14.14 (AdGuard) DNS)

Method 2: Editing the hosts file

This will require a file manager with access to the root folder (e.g. FX Explorer or Solid Explorer):

  1. Open the way /system/etc/hosts
  2. Add the following lines to the end of the file: 127.0.0.1 ad.mi.com 127.0.0.1 globalapi.ad.xiaomi.com 127.0.0.1 sdkconfig.ad.xiaomi.com
  3. Save the file and restart the phone

πŸ’‘

Changing the hosts file without root rights is possible only on some versions. MIUI. If the file is not saved, use it. ADB-Command: adb shell "echo '127.0.0.1 ad.mi.com' >> /system/etc/hosts"

5. Install custom firmware (for advanced users)

The radical solution is to install an alternative version of MIUI or custom build (like LineageOS or Pixel Experience), which will completely remove all advertising modules, but will require unlocking the bootloader.

Advantages:

  • βœ… Complete absence of system advertising
  • βœ… More recent versions of Android
  • βœ… Additional configuration functions

Risks:

  • ⚠️ Loss of guarantee
  • ⚠️ Possible bugs in the work of the camera or sensors
  • ⚠️ Difficulty returning to standard firmware

Instructions for unlocking the bootloader are officially provided by Xiaomi at en.miui.com/unlock. Once unlocked, you can flash Redmi 9A via Fastboot or TWRP.

How to check if the bootloader is unlocked?
Turn off the phone, then press Power + Volume down. If you see "Unlocked" at the top of the screen, the bootloader is unlocked.

6. Third-party applications for blocking advertising

If previous methods didn’t work, you can use specialized utilities that work at the VPN or local proxy level, filtering advertising traffic.

AnnexType of lockdownNeed root?Reference
AdGuardLocal VPN❌ No.Official website
BlokadaDNS + host list❌ No.Official website
NetGuardDomain lockingβœ… Yes (for full functionality)GitHub
DNS66DNS-filtering❌ No.F-Droid

For maximum efficiency, combine AdGuard with a modified DNS.

  1. Install AdGuard from Google Play
  2. In the application settings, select "Advertising Filter" and "Tracer Filter"
  3. Activate DNS Protection and specify server 94.140.14.14

πŸ’‘

You can import additional filters for MIUI in AdGuard. Download this list: miui.txt and add it to User Filters.

7. Frequent mistakes and how to avoid them

When trying to turn off ads, Redmi 9A users often face typical problems, and let's look at some of the most common ones.

Problem 1: After the ADB shutdown, the advert returns

⚠️ Note: Xiaomi periodically resets settings ADB To fix the changes, follow the command: adb shell cmd package compile -m speed -f com.miui.systemAdSolution This will block the system-level ad module.

Problem 2: DNS change is not working

  • πŸ”Œ Check what you're editing. DNS for current connection (Wi-Fi or mobile network)
  • πŸ”„ Restart your phone after changing your settings
  • πŸ“± Make sure there are no conflicts with VPN-Applications (turn them off before the test)

Problem 3: Security App prevents ads from being turned off

⚠️ Note: In some regional versions MIUI Solution: Change Xiaomi account region to India (in account settings) Install APKMirror Installer and download the Security version for the Indian region from APKMirror APK top-end

Can I turn off advertising without a computer?
Yes, most of the methods in this article do not require a PC. You can: Disable personalized advertising in settings Change DNS on your phone Install applications like AdGuard or Blokada Only the method with ADB requires a connection to a computer.
Why did the MIUI update reappear?
Xiaomi often returns ad modules in new firmware versions.To avoid this: Disable automatic updates in Settings β†’ The phone. β†’ Updating the system β†’ βš™ β†’ Auto Update After manual update, re-execute all steps to disable ads Use AdGuard as a backup blocking method
Is it safe to edit the hosts file?
Yes, if you only add verified entries (e.g. to block ad.mi.com).However: Do not delete standard entries from the file (e.g. 127.0.0.1 localhost) Back up the original file before editing Use text editors without formatting (e.g. QuickEdit) If you have internet issues after the changes, restore the original hosts file.
How to check if the ad blocker works?
Several ways to verify: Open the app Topics – banners at the bottom of the screen should disappear Check notifications – there should be no promotional push messages from Xiaomi Go to Settings β†’ About phone – the ad blocks at the bottom of the screen will disappear Use the test site d3ward.github.io/toolz/adblock.html to check for lock
Can I get it back if something goes wrong?
Yes, all changes are reversible: For ADB: perform adb shell pm uninstall -k --user 0 com.miui.systemAdSolution, then reinstall the application via Google Play For hosts: delete the added lines or restore the original version For DNS: return automatic settings in network settings If after manipulation the phone began to work unstable, make a factory reset (Settings β†’ Additional β†’ Restore and Reset).