How to permanently disable ads on Xiaomi Redmi Note 5: the full guide

Xiaomi Redmi Note 5 is still a popular smartphone due to the balance of price and performance, but many users face intrusive advertising in the shell of MIUI. Banners appear in the settings menu, on the lock screen, in the applications β€œSecurity”, β€œThemes” and even in system notifications. Unlike new models where advertising can be disabled through Settings β†’ Password and security β†’ Authorization and blocking β†’ Advertising services, on the Redmi Note 5 with MIUI 9-11 this path often does not work or is hidden.

In this article, we will look at 5 proven methods, from simple (through settings) to radical (reset to factory). All methods are tested on Redmi Note 5 (codename whyred) with MIUI 10-12.5 firmware and do not require superuser rights (root).

1. disable personalized advertising in MIUI settings

The safest and most reversible method is to deactivate ad services through the settings menu. On the Redmi Note 5, the path to these options may vary depending on the version of MIUI, but the overall scheme is the same:

  1. Open Settings β†’ Additional β†’ Privacy.
  2. Choose Advertising Services (or Personalized Advertising in MIUI 12+).
  3. Turn off the slider Personalized recommendations.
  4. Go back and go to Special Permissions β†’ Show pop-ups, then disable notifications for Msa (Mobile Services Ads) and MiuiDaemon apps.

This removes most of the ads in system applications, but it doesn't guarantee 100% results. For example, banners in Settings β†’ Topics or Security can stay. If after a reboot the ads are back, move to the next method.

πŸ’‘

After disabling advertising services, clear the cache of Msa and MiuiDaemon apps in Settings β†’ Applications β†’ App Management. This will accelerate the application of changes.

2. Blocking Advertising Domains via Hosts File

The method is suitable for users who are ready to manually manipulate system files, the essence is to add a list of domains responsible for displaying ads in MIUI to the hosts file. This does not require root, but will require ADB (Android Debug Bridge).

First, download ADB Tools for Windows/macOS/Linux and enable USB Debugging on your smartphone (Settings β†’ About Phone β†’ MIUI version – press 7 times, then go back to Settings β†’ Additional β†’ For Developers).

Next, execute commands in the terminal (command line):

adb shell


su -c "mount -o rw,remount /system"




su -c "echo '127.0.0.1 ad.xiaomi.com' >> /system/etc/hosts"




su -c "echo '127.0.0.1 sdkconfig.ad.xiaomi.com' >> /system/etc/hosts"




su -c "echo '127.0.0.1 track.pps.tv' >> /system/etc/hosts"




su -c "mount -o ro,remount /system"




exit

If after completing the commands, the smartphone stopped connecting to Wi-Fi or a mobile network, check whether the hosts edit is correct. An error in the file syntax can disrupt network functions.

domainAppointmentThe blocking effect
ad.xiaomi.comThe main advertising server XiaomiRemove banners in MIUI and system applications
sdkconfig.ad.xiaomi.comConfiguration of the advertising SDKDisables personalized ads
track.pps.tvCollect statistics for Mi VideoRemoves ads in the video app

Debugging is on. USB|Downloaded. ADB Tools|Smartphone connected to PC with original cable|Backup copy of data created-->

3. Disabling system applications via ADB

Some Xiaomi apps cannot be removed or disabled by standard means, but this can be done through ADB. This method removes Msa (Mobile Services Ads) - the main source of advertising in MIUI. Important: after completing the commands of the application, Themes, Security and Mi Video may not work properly.

Connect your smartphone to your PC and execute commands in turn:

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 disable-user --user 0 com.miui.msaservice

After the reboot, check:

  • πŸ“± Have banners disappeared in Settings β†’ Topics?
  • πŸ”’ Have advertising notices stopped appearing?
  • 🎡 Does the Music app work (sometimes depends on midrop)?

⚠️ Note: If push notifications (e.g. from instant messengers) have stopped working after disabling com.miui.msaservice, return the application with the command: adb shell pm enable com.miui.msaservice

4. reset of the advertising ID (Advertising ID)

MIUI uses a unique Advertising ID to target ads, and resetting it will not remove banners completely, but will reduce their personalization and frequency of display.

  1. Go to Settings β†’ Google β†’ Advertising.
  2. Click Reset Advertising ID.
  3. Turn off the option of Personalized Advertising (if any).

This method only works for advertising related to Google services (e.g. Play Store or Chrome) and is useless for MIUI system advertising, but it has a noticeable effect when combined with other methods.

πŸ“Š Which advertisements annoy you the most?
Banners in settings
Pop-up windows in apps
Promotional notices
Advertising on the lock screen

5. Radical method: reset to factory settings

If nothing works, the last chance to get rid of advertising is a complete reset of the smartphone and then set up without linking to the Xiaomi account, which deletes all user data, so first:

  • πŸ“² Create a backup through Settings β†’ Additionally. β†’ Backup and reset.
  • πŸ” Write down logins/passwords from accounts (they will disappear!).
  • πŸ“ Save photos and files to your PC or cloud.

Next:

  1. Go to Settings β†’ Additional β†’ Backup and Reset β†’ Reset settings.
  2. Choose to erase all data.
  3. After the reboot, do not log into your Xiaomi account and turn off sync during the setup stage.
  4. Immediately after setting up, turn off personalized advertising (see Section 1).

⚠️ WARNING: Without being tied to a Xiaomi account, you'll lose access to Find Device features, cloud backups and some system updates!

What if the advertisement returned after the reset?
If the ad reappears a few days later, chances are you accidentally logged in to your Xiaomi account or updated your system apps. Try: 1. Delete your Xiaomi account in Settings β†’ Accounts. 2. Block the update of the Msa and MiuiDaemon apps via Settings β†’ Annexes β†’ Application management β†’ Threefold β†’ Turn off auto-update.

6.Alternative firmware: transition to custom MIUI or AOSP

If you’re ready for experimentation, installing custom firmware (like LineageOS or Pixel Experience) will completely remove MIUI ads.

  • πŸ”“ Unlock the bootloader (fastboot oem unlock).
  • πŸ› οΈ Installations of custom recaveri (TWRP).
  • πŸ“₯ Download compatible firmware for whyred (codename Redmi Note 5).

The process is complex and risky: if you make a mistake, your smartphone can turn into a brick. If you are a beginner, it is better to focus on the methods from Sections 1-3. For experienced users, we recommend Xiaomi.eu firmware - this is a modified MIUI without advertising and with advanced settings.

πŸ’‘

Custom firmware removes ads forever, but it is warranty-free and requires technical skills. For most users, a combination of 1 + 2 + 3 methods is enough.

FAQ: Frequent questions about disabling ads on Redmi Note 5

❓ Why After Disabling Advertising Through ADB It comes back after the update. MIUI?
System applications (Msa, MiuiDaemon) are restored when you update your firmware. To avoid this: Turn off auto-update system applications in Settings β†’ Applications β†’ Application Management. Use the lock through hosts (Section 2) – it is saved after the updates.
❓ Can you turn off advertising without a computer?
Yes, but with limitations. Try: Disable personalized ads in settings (Section 1); Install Blockada (blocks ad domains without root); Use AdGuard with Xiaomi Ads filter settings. These methods are less effective than ADB, but will reduce the amount of advertising by 60-70%.
❓ Does disabling advertising affect smartphone performance?
No, the system processes responsible for advertising (Msa, MiuiDaemon) consume minimal resources (1-3% CPU). Their shutdown: βœ… Free up to 50-100 MB of RAM. βœ… Reduce background traffic (ad servers consume) ~10–20 MB/day). ❌ It will not affect the speed of the interface or games.
❓ Why the Internet disappeared after editing hosts?
An error in the syntax of the hosts file or blocking critical domains (such as connect.rom.mi.com) can disrupt network functions.To fix: Connect to a PC and execute: adb su shell -c "echo'" > /system/etc/hosts" Reboot your smartphone. Re-edit hosts by adding only verified domains from Section 2.
❓ Can I return the ad if something goes wrong?
Yes. To recover: If you used ADB, do: adb shell pm install-existing --user 0 com.miui.msaservice If you edited hosts, return the original file with the command: adb shell su -c "mount -o rw,remount /system" adb shell su -c "echo '127.0.0.1 localhost' > /system/etc/hosts" If you did reset, link your Xiaomi account and enable personalized advertising in the settings.