Why does Xiaomi Security have ads and can it be turned off?
Security is the standard MIUI firmware component that is responsible for virus protection, performance optimization, and permission control. However, many Xiaomi, Redmi, and POCO users are faced with intrusive ads right in the toolβs interface: banners in the βScannerβ section, pop-up notifications about βproblemsβ with memory or battery, and sometimes even full-screen offers to install third-party apps.
The reason is simple: Xiaomi monetizes its firmware through integrated advertising, especially in budget and mid-budget models. But the good news is that in most cases, ads can be turned off without root rights using hidden settings or third-party tools. In this article, we will discuss all the current ways for MIUI 12-14, including methods for users with an unlocked bootloader.
It is important to understand that some methods may conflict with system updates, for example, after a major update to MIUI, the ad settings may reset and the procedure will have to be repeated, and it is also worth considering that models for the Chinese market (China ROM) traditionally have more advertising than in global versions (Global ROM).
Method 1: Disabling personalized advertising in MIUI settings
The easiest and safest way to do this is to deactivate personalized recommendations through the settings menu, which won't take away all the ads, but will significantly reduce the number of banners targeted.
Instructions:
- π± Open the Settings. β Google β Advertising.
- π Switch the slider "Personalized advertising"** to the position Off.
This works on all devices with MIUI 12+, but has a limitation: it only removes personalized ads, and static banners (for example, in the Optimization section) can remain.
Method 2: Using ADB to Deeply Disable Advertising
If standard settings donβt work, you can use Android Debug Bridge (ADB) debugging, which doesnβt require root rights, but requires connecting your smartphone to your computer.
Step-by-step:
- Download and install Googleβs Platform Tools (includes adb.exe).
adb devices(Your device should appear)
adb shell pm disable-user --user 0 com.miui.analytics
adb shell pm disable-user --user 0 com.xiaomi.midrop
adb shell pm disable-user --user 0 com.miui.systemAdSolutionThese commands disable Xiaomi's analytics and ad modules, and after you reboot the device, the ads in Security should disappear. If they don't, try adding another command:
adb shell pm disable-user --user 0 com.miui.securitycenterβ οΈ Warning: Disabling com.miui.securitycenter may disrupt some security features (e.g. virus scanner) and use this method only if you are prepared for the consequences.
Download Platform Tools|Enable debugging on USB|Connect the phone to the PC|Check the visibility of the device in ADB|Make a backup copy of the data-->
Method 3: Remove ads through region settings (for global firmware)
One little-known trick is to change the firmware region to the European Union (EEA), where the EU versions of MIUI have adverts turned off by default due to local data protection laws.
How to change the region:
- πͺπΊ Select a country from the EU list (e.g. Germany or France).
After the region changes, the ads in Security and other system applications should be gone.
- β The method works without root and ADB, does not violate the guarantee.
- β Cons: Pre-installed services may change (for example, Xiaomi Assistant for the EU will appear instead of Google Assistant).
What if the EU is not on the list?
Method 4: Install custom firmware (for advanced users)
If you are willing to take drastic measures, installing custom firmware (like LineageOS, Pixel Experience or Xiaomi.eu) will completely remove all MIUI advertising modules.
- π Unlocked bootloader (bootloader unlock).
- π οΈ Installations of custom recaveri (TWRP).
- π± Compatible firmware for your model.
Advantages:
- π« Complete lack of advertising in the system.
- π Regular security updates.
- ποΈ More opportunities to set up.
Risks:
- β οΈ Loss of warranty (if the bootloader is unlocked).
- π Possible bugs (unstable operation of the camera, sensors, etc.).
- π Difficulty rolling back to stock firmware.
| Firmware | Advertising support | Need root? | Complexity of installation |
|---|---|---|---|
| Xiaomi.eu | β No advertising. | β No. | Medium |
| LineageOS | β No advertising. | β No. | Tall. |
| Pixel Experience | β No advertising. | β No. | Tall. |
| Stock Global ROM | β There's adverts. | β No. | Low. |
β οΈ Attention: Installing custom firmware can result in the blocking of your Mi Account (if the device is tied to your Xiaomi account).Be sure to untie your account in the settings before the procedure!
Method 5: Manual removal of advertising packages (requires root)
If you have root rights, you can manually remove the apps and services responsible for displaying ads, and any root-enabled file manager (such as Root Explorer or Mixplorer) will do.
List of disposal packages:
- π¦ com.miui.analytics β an analytics system.
- π¦ com.xiaomi.midrop β Advertising push notifications.
- π¦ com.miui.systemAdSolution β the main advertising module.
- π¦ com.miui.bugreport β error reports (sometimes containing ads).
- π¦ com.miui.hybrid β Hybrid services (may affect stability).
How to delete:
- Open Root Explorer and go to /system/priv-app/ or /system/app/.
- Find the folders with the package names from the list above.
- Remove folders or rename them (e.g. add at the end of.bak).
- Reset the device.
After removal, the ads will disappear, but some system features may not work properly, for example, without com.miui.hybrid, the theme of the design may disappear.
π‘
Before you delete packets, back up via TWRP or Titanium Backup, which will help restore the system if something goes wrong.
What if the advertisements returned after the update?
Xiaomi regularly releases updates that can restore remote ad modules or reset settings. If after the update, the ad appeared again, try:
- π Repeat the method with ADB (section).
- π Check out the region - sometimes it's dropped on "ChinaΒ».
- π΅ Turn off the automatic update of the Security app in Settings β Annexes β Security β Threefold β Turn off auto-update.
- π‘οΈ Install Xiaomi. ADB/Fastboot Tools (tool for mass disabling of advertising).
If the problem is repeated too often, consider switching to Xiaomi.eu or other custom firmware β they are devoid of system-level advertising mechanisms.
π‘
MIUI updates often restore ad modules, and to avoid this, disable automatic updates to system applications or use tools like Xiaomi ADB/Fastboot Tools to permanently block ads.