Owners of Xiaomi, Redmi and POCO smartphones often face the same problem: hidden ads penetrate the system at the MIUI firmware level. It can appear in the settings menu, on the lock screen, in the notification center and even in standard applications like the Browser or Music. The manufacturer calls these βrecommendationsβ, but in fact these are intrusive banners that slow down the phone and eat up traffic.
Many users mistakenly think that it is enough to disable personalized advertising in the settings of the Mi Account. In practice, this helps only partially - the main advertising mechanisms continue to work in the background. MIUI 12/13/14 And we'll show you how to turn them off once and for all. 12 Pro+, Xiaomi 13 Ultra, POCO F5 and other relevant devices 2023β2026 year-end.
β οΈ Warning: Some methods require superuser rights (root) or custom firmware installation.This can lead to loss of warranty and unstable phone operation!
1. disable advertising in MIUI settings (without root)
So let's start with the simplest of them all, the standard tools that are available to every user, and even without a deep technical knowledge, you can reduce the number of ads you see.
First, check the settings of personalized advertising:
- Open Settings β Google β Advertising and deactivate the option Personalized Advertising.
- Go to Settings β Accounts and Sync β Mi Account β Advertising and disable Personalized Recommendations and Interest-Based Advertising.
Next, you need to disable advertising in system applications:
- π± Lock screen: Settings β Lock screen β Additionally. β Recommendations β Turn off all switches.
- π Notification Center: Settings β Notifications β Additional settings β Recommendations β turn off the show.
- π Mi Browser: Open the browser, go to Settings β Confidentiality β Personalized recommendations and deactivate all options.
Important: Even after these actions, ads can continue to appear in the Topics, Music and Video apps, which will have to be disabled separately (see next section).
2. Removal of embedded advertising applications
MIUI firmware contains a number of pre-installed apps that not only take up space, but also actively display ads, and fortunately most of them can be removed or at least disabled.
List of the most "advertising" applications:
- π΅ Mi Music: Shows banners in playlists and on the home screen.
- π¬ Mi Video (Video): Insert commercials before watching.
- π¨ Topics: Impose paid themes and wallpaper through notifications.
- π GetApps (Mi Market): Advertises games and apps in the background.
- π Mi Browser: Replaces the start page with an advertising page.
To remove these applications:
- Install ADB on your computer (instruction below).
- Connect your phone in USB Debugging mode (Settings β About Phone β MIUI version β 7 times press to activate the developer mode).
- Execute the command to delete (example for Mi Music): adb shell pm uninstall --user 0 com.miui.player
Complete list of commands to remove:
| Annex | Package | ADB Team Team |
|---|---|---|
| Music. | com.miui.player | adb shell pm uninstall --user 0 com.miui.player |
| Video | com.miui.videoplayer | adb shell pm uninstall --user 0 com.miui.videoplayer |
| Topics | com.android.themes | adb shell pm uninstall --user 0 com.android.themes |
| GetApps | com.xiaomi.mipicks | adb shell pm uninstall --user 0 com.xiaomi.mipicks |
| browser | com.android.browser | adb shell pm uninstall --user 0 com.android.browser |
β οΈ Note: Deleting system applications can lead to errors in the phone. For example, without GetApps, some Xiaomi branded services may stop updating. Before deleting, check if you are using these programs.
Install ADB on PC| Enable USB debugging on phone | Make backup of data | Check the list of deleted packets | Connect the phone to your computer-->
3. Blocking advertising servers through hosts file
One of the most effective ways to combat ads is to block the domains from which they are downloaded, and you need to edit the hosts file in the system.
List of the main advertising domains Xiaomi:
- π ad.mi.com β the main advertising server
- π tracker.miui.com β statistics collection
- π api.ad.xiaomi.com β personalized ads
- π sdkconfig.ad.xiaomi.com β Advertising configuration
- π data.mistat.xiaomi.com β analytics
To block them:
- Download the hosts file for MIUI (or create your own).
- Use it. ADB Replacement of the system file: Adb push miui_ad_hosts.txt /sdcard/hosts adb shell su -c "mount -o rw,remount /system" adb shell su -c "cp /sdcard/hosts /system/etc/hosts" adb shell su -c "chmod 644 /system/etc/hosts"
- Reboot the phone.
If you donβt have root, you can use apps like AdAway (Magisk requires) or Blokada (which works without root, but is less efficient).
π‘
Before editing the hosts file, back it up with the adb pull command. /system/etc/hosts hosts_backup.txt. This will help you recover the original file if you make errors.
4. Disabling advertising through the developer settings
MIUI has hidden settings that allow you to disable some of the ad mechanisms, and you need to activate the developer mode to access them.
How to turn on the developer mode:
- Go to Settings β About Phone β MIUI version.
- Click on the line with the version 7 times in a row.
- Return to the main settings menu β a new item for developers will appear.
Now turn off the following options:
- π§ Debugging by USB β Turn it on (to be used) ADB)
- π« Limit background activity β Include (reduce traffic consumption by advertising)
- π‘ Turn off automatic synchronization β Include (prevents the updating of advertising databases)
- π Don't keep up β Enable (reset data for targeted advertising)
Also in the developer mode, you can limit the rights for system applications:
- Go to Settings β Applications β Application Management.
- Find Msa (com.miui.msa.global) is the primary service responsible for displaying ads.
- Disable your Internet rights, Notifications and AutoRun.
What is MSa and why should it be turned off?
5.Use of Magisk and modules to block ads
If you are willing to take more drastic measures, installing Magisk and custom modules will remove ads at the core level of the system.
The most effective modules for Xiaomi:
- π‘οΈ Xiaomi Debloater: Remove unnecessary system applications and disable advertising services.
- π« Disabler for Xiaomi: Blocks Msa, Analytics and other trackers.
- π Universal Ad-Blocker: Filtering Advertising at the Level DNS.
- π± MIUI Optimizer: Fine firmware customization, including removing ads.
How to install modules:
- Install Magisk Manager on your phone.
- Download the module you want (e.g. Xiaomi Debloater).
- Go to Magisk β Modules β Install from storage.
- Select the downloaded file and confirm the installation.
- Reboot the phone.
β οΈ Note: Installing Magisk requires unlocking the bootloader, which resets the phone to factory settings and removes warranty. On some models (e.g. Xiaomi) 13T Pro) unlocking may take up to 7 days due to manufacturer's policy.
π‘
Modules for Magisk are the most reliable way to get rid of advertising, but only for advanced users, and beginners are encouraged to start with a less risky method (ADB, hosts file).
6.Alternative firmware: transition to custom MIUI or AOSP
If none of the above methods worked, the last option is custom firmware, a radical solution that completely removes all Xiaomi advertising mechanisms, but requires technical skills.
Popular firmware without advertising:
- π± LineageOS: Clean AOSP no-nonsense.
- π§ Pixel Experience: Firmware with Google Pixel interface, without ads.
- π MIUI EU: European version MIUI without Chinese services or advertising.
- π ArrowOS: Light firmware with minimalist design.
How to install custom firmware:
- Unlock bootloader (instructions on the official Xiaomi website).
- Install TWRP Recovery or OrangeFox.
- Download firmware (e.g. MIUI EU) and GApps (if you need Google services).
- Load into Recovery, do Wipe (data cleanup) and flash the firmware.
Important: Custom firmware may contain bugs, especially on newer models. Before installing, check your deviceβs user reviews on the XDA Developers or 4PDA forums.
7. Additional tips: how to avoid ad returns
Even after all the manipulations, the ads can return after the MIUI update. To prevent this from happening, follow these recommendations:
- π Turn off automatic system updates: Go to Settings β The phone. β Updating the system β βοΈ β Auto Update and Choose Never.
- π₯ Install updates manually: Check reviews on forums before updating β sometimes new versions MIUI return.
- π Use it. DNS-Filtering: Configure DNS-over-HTTPS in Settings β Connections β Private DNS. Recommended servers: dns.adguard.com or 1.1.1.1 (Cloudflare).
- π‘οΈ Regularly check app rights: After updates, Xiaomi sometimes resets restrictions on Msa and other services.
If the ad does reappear, repeat the steps in Section 3 (hosts blocking) or check if new ad domains have appeared in AdAway logs.
π‘
To monitor network activity, use the NetGuard or PCAPdroid app, which will show which apps connect to ad servers, even if the ads are not displayed explicitly.