How to permanently remove pop-up ads on Xiaomi Redmi Note 7: a step-by-step guide

Pop-up ads on Xiaomi Redmi Note 7 are one of the most annoying features of MIUI firmware, which haunts users even in system menus. The manufacturer integrates banner ads into standard applications (e.g. Browser, Music, Themes), and also allows third-party programs to show annoying pop-up notifications. In this article, we will discuss 5 proven ways to turn off ads at the system level, applications and even through hidden ADB settings.

The Redmi Note 7 (lavender) is based on Android 9 Pie (originally) with a MIUI 10/11/12 shell. In the new firmware versions, Xiaomi has partially removed ads for the European region, but in global and Chinese builds (MIUI Global/China), it remains. It is important to understand that some methods require superuser rights (root), others work without them. We will start with the simplest solutions and get to the radical ones.

Warning: disabling system advertising can lead to failures in the work of branded services (for example, Mi Cloud or Themes). If you are not ready for experiments, use the first 2 methods. For advanced users, instructions with ADB and modification of hosts files have been prepared.

1. disable personalized advertising in MIUI settings

The safest and most official way to do this is to deactivate personalized recommendations in the Settings menu, which will not remove ads completely, but will reduce ads by 60 to 70 percent, and it works on all versions of MIUI without root rights.

Instructions:

  • 📱 Open the Settings. → Google → Advertising (or Settings) → Additionally. → Confidentiality → Advertising in older versions).
  • 🔄 Switch the slider "Personalized advertising" to the off position.
  • 🗑️ Click "Reset advertising" ID» (This will clear your profile for targeted advertising).
  • 🔙 Return to the main Settings menu and go to About Phone → Version. MIUI. Tap the label 7 times to activate the developer mode (required for the following methods).

After this, ads in system applications (such as Browser or Music) will become less intrusive, but banners in Themes or Mi Video may remain — they will require additional manipulation to remove them.

📊 Which Advertising Irritates You the Most?
Pop-up banners in games
Advertising in system applications
Notifications from unknown applications
Browser advertising

2. Manually disabling advertising in standard Xiaomi apps

Many of Xiaomi’s branded apps have hidden settings to disable ads, such as Mi Browser, Mi Music or Mi Video, which allows you to deactivate banner displays through internal menus.

AnnexThe path to settingsWhat to turn off
TopicsProfile → Settings → RecommendationsTurn off “Show recommendations” and “Advertising Notices”
browser⋮ → Settings → Additionally.Disable “Recommendations on the main” and “Push notifications”
Music.⋮ → Settings → NotificationsTurn off “Advertising Notices” and “Recommendations”
Mi VideoProfile → Settings → NotificationsDisable “Advertising Banners” and “Push Messages”

If your app doesn’t have these points, it uses external advertising SDKs (like Google AdMob or Baidu), which can only be blocked through hosts or ADB (more on that below).

⚠️ Note: After disabling ads in Themes or Mi Video, some features (such as downloading new wallpapers) may not work properly.This is because Xiaomi blocks access to content for users who have disabled targeted ads.

3.Use ADB for deep disabling of ads (no root)

If previous methods didn't work, it's time to connect Android Debug Bridge (ADB), which allows you to disable system advertising services at the MIUI level without getting root rights.

What you need:

  • 💻 Computer with installed ADB-driver.
  • 📱 Developer mode enabled and debugging by USB on the Redmi Note 7.
  • 🔌 Cable USB Type-C (original or qualitative analogue).

Instructions:

  1. Connect your phone to your PC and open the command line (Windows) or Terminal (macOS/Linux).
  2. Enter the command to check the connection: adb devices If the device is determined – go further.
  3. Follow the commands alternately (copy and paste): adb shell pm hide com.miui.systemAdSolution adb shell pm hide com.xiaomi.mipicks adb shell pm hide com.miui.analytics adb shell settings put global hidden_api_policy 1
  4. Reboot your phone: adb reboot

These commands disable the main MIUI advertising modules, including Mipicks (recommendation service) and Analytics (statistics collection). If the ads remain after the reboot, check if the settings have reset (sometimes MIUI automatically restores hidden packages).

Enable the developer mode (7 taps according to version) MIUI)|Activate debugging by USB developer-setting|Install ADB-PC-driver|Connect your phone to the original cable|Check the connection with the adb device command-->

4. Blocking ads via hosts file (requires root or Magisk)

One of the most radical ways is to edit the hosts file, which is responsible for redirecting domains, and if you add the addresses of Xiaomi's ad servers to it, the system will stop downloading banners, and it requires root rights or a Magisk module.

Step-by-step:

  1. Install a file manager with root support (such as Root Explorer or Mixplorer).
  2. Cross the path. /system/etc/hosts Make a backup copy of the file (copy it on the file). SD-map).
  3. Open the hosts file in the text editor and add the following lines at the end: 127.0.0.1 ad.xiaomi.com 127.0.0.1 tracking.miui.com 127.0.0.1 data.mistat.xiaomi.com 127.0.0.1 sdkconfig.ad.xiaomi.com 127.0.0.1 api.ad.xiaomi.com
  4. Save the file, set resolutions 644 (rw-r--r---) and restart the phone.

If you have Magisk installed, you can use the AdAway or Systemless Hosts module, which automatically updates the list of blocked domains, eliminating the need to manually edit hosts after updates.

⚠️ Attention: Incorrect editing of the hosts file can lead to loss of Internet access or malfunction of applications. Always back up before changes! If the Internet is lost after editing, restore the original file.

What if the Internet disappeared after editing hosts?
If the hosts file has been changed, follow the following steps: 1. Connect the phone to your PC and copy the backup file back to /system/etc/hosts. 2. Set the correct resolutions: chmod 644 /system/etc/hosts. 3. Restart the device. If the problem persists, check the file for syntactic errors (such as extra spaces or string transfers).

5. Removal of system applications with advertising (requires root)

Some Xiaomi apps (Mi Browser, Mi Music, GetApps) can’t be completely cleaned of ads — they’re easier to remove.

List of safe applications (do not affect the system):

  • 🌐 com.android.browser (Mi Browser) – can be replaced with Google Chrome or Firefox.
  • 🎵 com.miui.player (Mi Music) – alternative: Spotify or VLC.
  • 📦 com.xiaomi.midrop (Mi Drop) – Use Nearby Share to transfer files.
  • 🛒 com.xiaomi.mipicks (GetApps) – App Store with Advertising, can be removed.
  • 🎨 com.android.themes – if you don’t use custom themes.

To remove, use the command in ADB (if there is root):

adb shell


su




pm uninstall -k --user 0 name package

Or use the Titanium Backup app (for root) or the Magisk app systemizer (allows you to freeze system applications without removing them).

💡

Before you delete system applications, check their dependency! Some packages (e.g. com.miui.securitycenter) are critical to MIUI. Use the Package Name Viewer app to see what processes depend on the software being removed.

6. Alternative methods: third-party blockers and firmware

If none of these things work, consider using third-party tools or custom firmware, which are radical measures, but they are guaranteed to remove all ads.

Options:

  • 🛡️ Adblockers: Blokada (works without root, blocks ads at the level) DNS). AdGuard (there is a version for Android with local) VPN). DNS66 (free-blocker with open source).
  • 📱 LineageOS - pure Android without advertising and unnecessary services. Pixel Experience - firmware with an interface from Google Pixel. MIUI EU — modified MIUI Advertising free (but requires unlocking the bootloader).
  • 🔄 Reset to factory settings: If the ad appears after the update, try making a hard reset (but it will delete all data!).

Custom firmware requires unlocking the bootloader, which resets all data and can be insecure. You can find detailed instructions on how to install LineageOS on the Redmi Note 7 on the XDA Developers forum.

💡

Custom firmware is the most reliable way to get rid of advertising, but it requires unlocking the bootloader and can lead to a loss of warranty.Be sure to back up your data via TWRP before installing it!

FAQ: Frequent questions about removing ads on Xiaomi Redmi Note 7

❓ Why does it appear again after the ad is turned off in the settings?
Xiaomi periodically resets ads through MIUI updates. To avoid this: Turn off auto-update firmware in Settings → About Phone → System Update. Use ADB to permanently disable advertising services (see Section 3). Install the Magisk module to block updates to specific applications.
❓ Can you remove advertising without rooting and ADB?
Yes, but not completely. The combination of the following methods yields a good result: Turn off personalized ads in settings (section 1). Remove updates for system applications (Mi Browser, Mi Music) through Settings → Apps. Install an ad blocker like Blokada or AdGuard. This will reduce the number of banners by 80-90%, but will not eliminate them completely.
❓ Why Some Sites Don't Open After Hosts Edit?
If you add too many domains to hosts, it can block not only ads, but also useful services. Solutions: Use verified domain lists (for example, from the AdAway project); Check the file for duplicate entries; temporarily disable the lock to find the problematic domain.
❓ How to return remote system applications?
If you have removed the system application through ADB Or Titanium Backup, you can restore it like this: APK-A file from a trusted source (e.g. APKMirror) install it with adb install the name file.apk. If the application doesn't work, reset your phone to factory settings or reflash it. MIUI via Fastboot.
❓ Will the way to work with ADB post-refresh MIUI?
No, the firmware update resets all changes made through ADB. To save settings: Turn off auto updates in Settings → About phone. Use the script to automatically apply commands after the reboot (Magisk requires). Install the DisableFlagSecure module (for Magisk) that blocks resetting.