Security (or “Cleaning” in Russian localization) is one of the most useful standard solutions in MIUI firmware. It helps free up memory, manage autoboot and scan the device for viruses. However, many users of Xiaomi, Redmi and POCO are faced with intrusive advertising right in the utility interface: banners at the bottom of the screen, pop-ups with suggestions to install games or subscribe.
In this article, we will look at all the current ways to disable ads in the “Cleanup” — from simple MIUI settings to radical methods using ADB and modified firmware. It is important to understand that some solutions require unlocking the bootloader or superuser rights, which can affect the warranty and security of the device. We will specify the risks for each method so that you can choose the best option.
If you use a smartphone on the base MIUI 14/13 Or, more recently, some of the old instructions (e.g., by disabling msa) may not work — Xiaomi regularly closes the skirts to block ads (2023–2026 garland.).
Why does the “Purification” appear in the advertising and can it be removed legally?
Advertising in standard MIUI applications is part of Xiaomi’s business model, monetizing free firmware through banner displays on Security, Mi Video, Themes and other services – technically not a virus, but a legal mechanism spelled out in the user agreement – but in some regions (e.g. the EU), Xiaomi has been forced to cut back on ads due to user complaints.
Can you remove ads without violating the license agreement? Partly yes. Here's what the company suggests:
- 🔹 Disabling personalized advertising in your Mi Account settings (reduces impressions, but does not completely remove them).
- 🔹 Use of regional firmware for the EU or India, where there is less advertising (requires a change of region in settings).
- 🔹 Premium version of Mi Security Pro (not available in all countries, price) ~$5-10 a year).
But these methods are either inefficient or paid, so users are looking for workarounds. Importantly, Xiaomi may consider some methods (such as modifying system files) to be a violation of user agreement, which theoretically threatens to block an account or device, but in practice such cases are extremely rare.
Method 1: Disabling Advertising through MIUI Settings (without root)
The safest method is to use built-in firmware options. It does not require superuser rights and is suitable for most models (Redmi Note 12, POCO X5, Xiaomi 13, etc.). Efficiency ~60-70%: ads will disappear in the “Cleanup”, but may remain in other applications.
Steps:
- Open Settings → Accounts and Sync → Mi Account.
- Slip on your profile and select Account Settings.
- Go to Confidentiality. → Personalized recommendations.
- Turn off the Use-Based Recommendation slider.
- Return to Settings and open Applications → Application Management.
- Find Security (or “Cleaning”), tap it, and select Notifications.
- Turn off all notifications and permissions to display over other windows.
Additionally, you can limit the background activity of the application:
- 📱 In the same Application Management menu, select Battery → Limit background activity.
- 🔒 Disallow Auto Start: Settings → Annexes → Auto-start → Find Security and turn it off.
💡
If after these actions the advertisement remained, try to clear the cache of the Security application. To do this, in the Application Management menu, click Storage → Clear the cache.
Method 2: Using ADB to disable advertising services
A more radical method is to disable the system services responsible for displaying advertising through ADB (Android Debug Bridge. This doesn't require root, but you need to enable debugging by USB set up ADB-The driver's on the computer. MIUI 12-14, but may stop working after a firmware update.
Step-by-step:
- Activate Developer Mode: Go to Settings → About Phone and tap 7 times on the MIUI version.
- Return to Settings → Additional → For developers and enable USB debugging.
- Connect the phone to the PC, confirm the trust in the computer on the smartphone screen.
- Open the command prompt (Windows) or terminal (macOS/Linux) in the adb folder and execute commands in turn:
adb shell pm hide com.miui.systemAdSolution
adb shell pm hide com.xiaomi.midrop
adb shell pm hide com.android.browser
adb shell pm disable-user --user 0 com.miui.analytics
adb shell pm disable-user --user 0 com.xiaomi.abOnce you've done the commands, restart the device. Ads in Cleanup and some other applications should disappear. If you see a pm: not found error, try replacing pm hide with pm disable-user --user 0.
USB debugging enabled
Installed ADB drivers on PC
Smartphone connected via original cable
The phone is allowed to connect to this PC
The command line is open on behalf of the administrator (Windows)
-->
⚠️ Note: Disabling system services through ADB This can cause some functions to work in an unstable way (e.g. synchronization with Mi Cloud or push notifications). If you have problems after executing commands, return everything back with the command adb shell pm enable user packet.
Method 3: Install a modified version of Security (requires root)
If you have a superuser license, you can replace the standard Security application with a modified version without advertising, which is 100% effective, but requires unlocking the bootloader and installing Magisk or another root solution, suitable for power users.
What you need:
- 🔓 Unlocked bootloader (instruction: official Xiaomi website).
- 📱 Installed by Magisk (version 25.0)+).
- 🔧 Modified APK-Security file (e.g. from MIUI Mods).
- 🛠️ File Manager with support for root (e.g. Root Explorer).
Instructions:
- Download the modified APK-Security file (make sure the version is compatible with your firmware!).
- With Root Explorer, go to /system/priv-app/SecurityCenter.
- Rename the original SecurityCenter.apk file to SecurityCenter.bak (in case of rollback).
- Copy the modified APK to this folder and set permissions 644 (rw-r-----).
- Reset the device.
| Advantages | Deficiencies |
|---|---|
| Removing Advertising Forever | Requires unlocking the bootloader (data reset) |
| Additional features in the modified version | Risk of "brike" in case of installation error |
| It works on all versions of MIUI. | Could be disrupting work. OTA-update |
| No dependence on Xiaomi servers | Requires APK updates when changing firmware |
⚠️ Note: Installing modified system applications may cause bootloop (download loop) if the file is not suitable for your version MIUI. Always make a backup of the original. APK Check compatibility on forums (e.g. XDA-Developers).
Method 4: Blocking Advertising via DNS or VPN
If you don't want to interfere with system files, you can block Xiaomi's ad servers at the network level.
- 🌍 Change of change DNS on alternatives (e.g. 1.1.1.1 from Cloudflare or 94.140.14.14 from AdGuard).
- 🔒 VPN Ad-blocking (e.g. AdGuard) VPN, Blokada).
- 📵 Hosts file with domain locking Xiaomi (requires root or Magisk).
How to change the DNS:
- Go to Settings → Connections and Sharing → Private DNS.
- Select the host name of the private DNS provider.
- Enter dns.adguard.com or 1dot1dot1dot1.cloudflare-dns.com.
- Save and restart the phone.
To block through hosts (requires root):
- Download the file. StevenBlack/hosts (ad-blocker).
- Root Explorer replaces the original file on the path /system/etc/hosts.
- Set the license 644 and restart the device.
List of Xiaomi domains to block in hosts
This method blocks not only ads in the “Cleanup” but also in other MIUI applications, but it does not give a 100% guarantee, since Xiaomi periodically changes the addresses of advertising servers.
Method 5: Switching to custom firmware (for advanced)
The most drastic way is to install custom firmware based on AOSP (for example, LineageOS, Pixel Experience or ArrowOS), which does not have Xiaomi system applications, including Security, and therefore can not be advertised.
- 🔓 Unlock the loader (reset all data!).
- 🛠️ Custom recaveri installations (TWRP Or OrangeFox).
- 📱 Compatible firmware for your model (see LineageOS Wiki for a list of supported devices).
Pros:
- 🚀 Complete absence of advertising and bloatware (pre-installed applications).
- 🆕 Regular security updates from the community.
- 🎛️ More opportunities for customization.
Cons:
- ⚠️ Loss of warranty (if the bootloader is unlocked).
- 🔋 Possible battery or camera problems (depending on firmware).
- 📱 Not all functions. MIUI It will work (e.g., Mi Share or Game Turbo).
💡
Custom firmware is the most reliable way to get rid of advertising, but it requires technical skills. If you're a beginner, start with simpler methods (ADB or DNS).
What do you do if nothing helps?
If you have tried all the ways, but the advertising in the “Cleanup” remained, check the following:
- 🔄 Update the firmware: sometimes in new versions MIUI Bugs with advertising are corrected.
- 🧹 Clear the cache of the Security app and Google Play Services data.
- 📱 Check the region: in settings Settings → Additionally. → Region: India or the European Union – less advertising.
- 🛡️ Install an alternative: instead of the standard "Cleaning" SD Maid, CCleaner or Files by Google.
If the problem persists, your device may be infected with adwar (adware).Do a full check with Malwarebytes or Kaspersky Mobile.
Important: On some models (e.g. Redmi Note 11 with MIUI 14), the ads in the “Cleanup” can be part of the system process com.miui.securitycenter.In this case, it can be removed only through modification of the firmware or disabling the process through Magisk (disableFlagSecure module).