After resetting to factory settings, many Xiaomi smartphone owners face an unpleasant surprise: ads in system applications, the browser and even on the lock screen return with a vengeance.This is due to the fact that MIUI activates Xiaomiβs personalized recommendations and advertising services by default, which are integrated into the firmware at the system level. Simple disconnection in settings is often not enough β advertising modules continue to work in the background, consuming traffic and battery power.
In this article, we will discuss all the current ways to remove ads on Xiaomi after cleaning the device, from basic MIUI settings to advanced methods using ADB and modifying system files. Particular attention will be paid to the nuances for different versions of firmware (MIUI 12, 13, 14) and smartphone models β from budget Redmi to flagship Xiaomi 13/14. All methods are tested on current versions of the software (2026) and do not require superuser rights (root), unless otherwise stated.
Why does the advertisement appear again after the reset?
The reason for the return of advertising after cleaning the device is the MIUI system services, which are automatically turned on when you first set up the smartphone.
- π Reset does not remove pre-installed apps: even after Hard Reset, Mi Browser, Mi Video, GetApps and other services with built-in advertising remain.
- π‘ Automatic synchronization with Xiaomi servers: when you first connect to the Internet, the device receives a configuration of advertising modules (msa, mipush).
- π¦ Hidden system updates APK: promotional SDK Updated via Google Play or background services MIUI, Even if you manually shut them down.
- π§ Regional settings: more ads on devices for the China/India market than in global firmware (e.g, MIUI Global vs MIUI China).
Itβs important to understand that Xiaomi doesnβt consider these ads βmaliciousβ β theyβre part of the companyβs business model, but users outside of China often perceive them as intrusive, such as Redmi Note 12 ads that can take up to 15% of the screen in the browser, and POCO X5 ads that can appear in the settings menu.
Basic MIUI settings: what to disable first
Before resorting to radical methods, check the standard MIUI settings. Many users miss these points, considering them ineffective, but in MIUI 14, some advertising modules can be deactivated through the interface:
- Disabling Personalized Recommendations: Go to Settings β Privacy β Advertising services and deactivate: π "Personalized recommendationsβ (master switch) π "Advertising Identification (Advertising Option) ID) π "Show recommendations in Mi Browser"
V MIUI 14 This section may be called Privacy. β Additionally. β Advertising services.
Limitation of background activity
In Settings β Applications β Application Management, find:
- π± Mi Browser β Limit background activity β Banned
- π¬ Mi Video β Notifications β Shut down.
- π¦ GetApps β Auto-start β Turn it off.
After this, restart the device. Advertising in the browser and some system applications should disappear, but in Mi Video and Mi Music, banners may remain - they are removed by other methods.
βοΈ Basic cleansing of advertising
Removing embedded applications without root (ADB-method)
If standard settings donβt work, the next step is to uninstall system applications via ADB. This method works on all Xiaomi devices (including POCO and Black Shark) and doesnβt require superuser rights.
- π₯οΈ Computer with installed ADB Tools
- π± Included debugging by USB on a smartphone (Settings) β The phone. β Version. MIUI β 7 times tap to unlock the developer mode, then Settings β Additionally. β For developers β Debugging by USB)
- π Cable USB (preferably original)
List of safe packets to remove (does not affect critical system functions):
| Annex | Packet name | ADB Team Team | The effect |
|---|---|---|---|
| Mi Browser | com.android.browser | adb shell pm uninstall -k --user 0 com.android.browser | Remove the browser with advertising, you can install Chrome |
| GetApps (Mi App Store) | com.xiaomi.mipicks | adb shell pm uninstall -k --user 0 com.xiaomi.mipicks | Notifications of βrecommended applicationsβ disappear |
| Mi Video | com.miui.videoplayer | adb shell pm uninstall -k --user 0 com.miui.videoplayer | Remove banners in the player, but saves the system player |
| Mi Music | com.miui.player | adb shell pm uninstall -k --user 0 com.miui.player | Remove Advertising in Music Player |
| MSA (Advertising Service) | com.miui.msa.global | adb shell pm uninstall -k --user 0 com.miui.msa.global | Disables background data sending (can break push notifications!) |
β οΈ Note: Deleting com.miui.msa.global may result in loss of Mi Account functionality, cloud backups, and some push notifications. If you use contact or note sync through Xiaomi Cloud, skip this package.
To execute commands:
- Connect your smartphone to your PC and confirm debugging over USB on the device screen.
- Open the command prompt (Windows) or terminal (macOS/Linux) in the folder with adb.exe.
- Enter commands one at a time, waiting for a Success response.
π‘
If you have lost access to downloads after removing Mi Browser, install any file manager (for example, Files by Google) β it will restore the visibility of the Download folder.
Blocking Advertising via DNS and Hosts File
If the ads appear in the browser or apps, they can be blocked at the network level.
- Change of change DNS: Go to Settings. β Wi-Fi β Additionally. β Settings DNS and point out: π AdGuard DNS: 176.103.130.130 and 176.103.130.131 π‘οΈ Cloudflare Family: 1.1.1.3 and 1.0.0.3
This will block advertising domains at the Internet connection level, but will not affect banners in system applications.
Editing the hosts file
Download the current ad-blocking hosts file and upload it to your device.
adb push hosts /sdcard/
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"
adb shell su -c "mount -o ro,remount /system"β οΈ Warning: Incorrect editing of the hosts file can lead to loss of access to the Internet.Before changes, back up the original file with the adb pull command /system/etc/hosts.
To check the effectiveness of the lock, open the browser page http://adservice.google.com β if the DNS works correctly, it will not load.
What if the DNS does not work after the change?
Hidden settings MIUI: disabling advertising modules
MIUI has hidden menus that are not displayed in the standard interface, but allow you to deactivate advertising services.
- Activate Developer Mode: Go to Settings β About Phone β MIUI Version and tap 7 times on the line with the version. After that, the Developer Item will appear.
- Shutdown MSA (Miui System Ads: In Settings β Additionally. β Find the developers: π§ Shut down. MSA (turn on this switch) π§ Background optimization β Limit background activity for MSA
On some firmware, these options are hidden β you can enable them through ADB:
adb shell settings put global hidden_api_policy 1Resetting the advertising ID
In the same developer menu, find Reset Ad ID and click on it. This will clear the cache of personalized ads.
After these actions, it is recommended to clear the cache of system applications:
- π§Ή Settings β Annexes β Application management β Three dots (menu) β Clear the cache of all applications
π‘
Disabling MSA through the developer menu is the safest way to reduce the amount of ads you have without risking damage to the system, but it doesn't remove ads completely, it only reduces the intrusiveness of the ads.
Advanced methods: Modification of system files (requires root)
If you're willing to take drastic measures and have root access, you can remove the ad modules at the system file level, which is suitable for advanced users and includes:
- Removal of advertising APK from /system/priv-app: with the help of Root Explorer or ADB With superuser rights, delete folders: ποΈ /system/priv-app/MiuiDaemon (responsibilities) ποΈ /system/priv-app/Analytic (statistics) ποΈ /system/priv-app/MiuiSystemAdSolution (main advertising module)
β οΈ Note: Deleting these files may lead to unstable work MIUI or update errors. Before you change, make a full backup through TWRP.
build.prop
Open the file /system/build.prop and add at the end:
ro.miui.has_real_blur=1
ro.miui.has_handy_mode_sf=1
ro.config.nocheckin=1This will disable some of the license and background services checks.
Freeze Processes through Magisk
Install Magisk and use App Systemizer or DisableFlags to freeze:
- βοΈ com.xiaomi.midrop (advertising in Mi Drop)
- βοΈ com.miui.hybrid (hybrid services)
- βοΈ com.miui.systemAdSolution
After modifying the system files, be sure to clear the Dalvik cache in TWRP or through the Magisk application, otherwise permanent reboots are possible.
Alternative firmware: transition to custom assemblies
If none of the methods worked, the last option is to install custom firmware without advertising modules.
- π LineageOS: pure Android without unnecessary services, but may not support some features (for example, IR Blaster in Redmi Note).
- π Pixel Experience: firmware with Google Pixel interface, optimized for performance.
- π± Xiaomi.eu: modified MIUI without advertising and Chinese services, but requires unlocking the bootloader.
- π‘οΈ ArrowOS: Lightweight firmware with a focus on privacy.
Installation process:
- Unlock the bootloader through Mi Unlock Tool (requires to link the account to the device for 7 days).
- Install TWRP Recovery for your model (instructions on the official website).
- Download firmware and GApps (if you need Google services) from the XDA Developers website.
- Use TWRP (Wipe β Format Data β Install ZIP)
β οΈ Note: Installing custom firmware voids warranty and can result in a brick device in case of error. For models with Dynamic Partition (e.g. Xiaomi) 12T) Special version is required TWRP.