Built-in antivirus MIUI on smartphones Xiaomi, Redmi and POCO It often blocks legitimate applications, perceiving them as a potential threat. APK, modified software, and sometimes even with official utilities from unknown developers, if you are sure about the security of the application, it can be added to the exceptions of antivirus, this will prevent automatic deletion of files and blocking functions.
The procedure for adding to the exception depends on the version MIUI and the device models. On new firmware (starting with the MIUI 12.5) The security interface has changed significantly, and in older versions (MIUI 11 and below) The path to settings may vary. In this article, we will discuss current ways for all popular versions, and also tell you how to check whether the antivirus is blocking your application covertly.
Why is Xiaomi Antivirus Blocking Apps?
Built-in protection MIUI It works on the basis of three mechanisms:
- ๐ Signature analysis โ comparing hashes of files with the database of known viruses (updated via the Xiaomi cloud).
- ๐ค Behavioral analysis โ tracking suspicious activities (e.g., attempts to gain root rights or access to a site) SMS).
- ๐ฆ Source Checking โ Blocking the Installation APK from unknown sources (configured in the settings) โ Annexes โ Special rights).
Most often, false positives occur due to:
- ๐ฑ Install applications from third-party storage (not Google Play).
- ๐ง Use of modified versions of software (e.g. Lucky Patcher, GBWhatsApp).
- ๐ App updates bypassing the Play Market (via APK).
- ๐ ๏ธ Work with tools for developers (for example, ADB, Termux).
If the antivirus has deleted a file or blocked access to the application, you will see a notification in the curtain or in the Security section. โ Viral scanner: In some cases, the locking happens without any visible signs โ for example, the application just doesn't start or crashes after a few seconds. To check this, open Settings. โ Annexes โ Manage applications and find a problem application: if there is a shield icon next to it, it is blacklisted.
How to add an application to the exceptions of antivirus on MIUI 12.5โ14
Starting with MIUI 12.5, the security interface was combined with the Privacy Protection section to add the app to the exceptions:
- Open the settings (cog icon on the desktop).
- Go to Privacy Protection โ Security.
- Slip on the Viral Scanner (magnifying glass icon).
- In the upper right corner, press three dots (โฎ) and select Scanning Settings.
- Scroll down to the "Exceptions" block and click Add Exclusion.
- Select an app from the list or find it through a search.
If the application you want isn't on the list, it hasn't been scanned by the antivirus yet.
- ๐ฒ Install or update the app (if itโs already installed, just open it).
- ๐ Run a manual scan in a viral scanner.
- ๐ก๏ธ Once the application is discovered, it will appear in the exclusion list.
โ๏ธ Preparation for addition to exceptions
Important: on some models (for example, Xiaomi 13 Pro or XP) POCO F5) If there's no security item in Privacy Protection, try it:
- Open Settings โ Applications โ Application Management.
- Find the app in the list and tap it.
- Select Permits โ Additionally. โ Delete from the inspection.
Exceptions for older versions: MIUI 11 and below
On the firmware MIUI 11 and older (relevant to Redmi Note 8, Xiaomi Mi 9 and other devices of 2019 and earlier) the way to set up another:
- Open the Security app (the shield icon on your desktop).
- Go to the Antivirus (or Scanner) tab.
- Put it on the gear (โ) top-right.
- Select the Exceptions.
- Click Add Exclusion and select the app or folder.
If the app doesnโt appear in the list, try:
- ๐ Add to exceptions a folder where stored APK (for example, /storage/emulated/0/Download).
- ๐ Restart the device and try again.
- ๐ฆ Remove and reinstall the application.
What to do if there is no "exclusion" clause?
Nana MIUI 10 or earlier versions are even easier:
- Launch Security.
- Go to Antivirus. โ Settings โ Exceptions.
- Add a file or a folder.
On devices with a MediaTek processor (e.g., Redmi) 9A) You may need to disable the โReal-Time Checkโ option in your antivirus settings, as it ignores exceptions for some file types.
How to check if the antivirus is blocking your application
Sometimes, Xiaomi's antivirus will block apps covertly, without notification, to check:
- Open Settings โ Applications โ Application Management.
- Find the problem app in the list.
- Look at the status: ๐ก๏ธ ยซBlocked โ Antivirus restricted access. โ ๏ธ ยซDangerous โ App blacklisted, but not removed. โ ยซDeleted - Antivirus erased file.
Also check the scan log:
- Open Security. โ Viral scanner.
- Stick to the journal (or scan history).
- See if there are records of your app being blocked.
To add a folder to the exceptions:
- Open Security. โ Viral scanner โ Settings โ Exceptions.
- Choose Add a folder (or Add a path).
- Specify the path to the folder (for example, /storage/emulated/0/Download or /sdcard/Android/obb).
Nana MIUI 14 and a newer path to the folders may be hidden:
- Install any file manager (e.g. Solid Explorer or File Manager) FX File Explorer).
- Enable the display of hidden files in the manager settings.
- Copy the full path to the folder (long press). โ Properties โ Way).
- Insert the path in the field of exceptions of the antivirus.
๐ก
Adding a folder to an exception does not guarantee 100% protection. Xiaomi antivirus can ignore exceptions for files with "suspicious" extensions (.exe,.bat,.sh) or archives (.zip,.rar).
If the folder is not added, try:
- ๐ Move files to another folder (for example, /storage/emulated/0/MIUI/ โ It's rarely scanned).
- ๐ Rename the folder (for example, add a symbol to the beginning to make it hidden).
- ๐ Archive password files (antivirus will not be able to scan them).
What to do if exceptions donโt work
Sometimes, Xiaomi's antivirus ignores exceptions, and this can be because of:
- ๐ Updates of the virus database (after updating the exceptions are reset).
- ๐ ๏ธ SecurityCenter (security service).
- ๐ฑ Features of firmware (on some devices exceptions work only for system applications).
If the application continues to be blocked:
- Turn off real-time check: Go to Security โ Viral scanner โ Settings. Turn off the Real-Time Check option.
- Limit background antivirus activity: Open Settings โ Annexes โ App management. Find Security (or Security). Select Battery โ Limit background activity.
- Use it. ADB Disable the scanner: adb shell pm disable-user --user 0 com.miui.securitycenter adb shell pm disable-user --user 0 com.miui.guardprovider โ ๏ธ Warning: this will completely disable the built-in protection.
If none of these methods worked, there are two options:
- ๐ฅ Install global or Chinese firmware (there are fewer restrictions).
- ๐ Get root rights and remove SecurityCenter through Magisk or TWRP.
๐ก
Before disabling the antivirus through ADB If you don't have protection, the device becomes vulnerable to real threats, especially if you install it. APK source.
Comparison of methods of bypassing the block
| Method | Difficulty | Efficiency | Risks. | Need root? |
|---|---|---|---|---|
| Addendum to exceptions | โญ | โ High (on most devices) | No. | โ No. |
| Turning off real-time verification | โญโญ | โ Medium (some files are blocked anyway) | Vulnerability to viruses | โ No. |
| Background Limitation for SecurityCenter | โญโญ | โ ๏ธ Low (may work temporarily) | Security can restart. | โ No. |
| ADB-switch-off | โญโญโญ | โ High (complete shutdown) | Lack of protection, possible failures | โ No. |
| Remove SecurityCenter through root | โญโญโญโญ | โ Absolute. | System failure, loss of guarantee | โ Yes. |
For most users, the first or second method is sufficient. ADB Or the root is only if:
- ๐ง You are a user and understand the risks.
- ๐ฑ The device is not used for payments or storage of sensitive data.
- ๐ You are ready for possible malfunctions in the firmware.
Frequent Mistakes and How to Avoid Them
When working with Xiaomi antivirus exceptions, users often make mistakes that lead to the opposite effect.
- Addition to system file exceptions. โ ๏ธ Note: If you add folders to exceptions /system or /vendor, It can cause firmware to malfunction, and it blocks changes to those parts for a reason, because they're critical to system stability.
- Use of outdated instructions, such as MIUI 14 there is no separate Security app - all settings are moved to Privacy Protection. MIUI 11 on a new device, you just won't find the right items.
- Disable the antivirus without alternative protection.If you completely disable the SecurityCenter through ADB, install a third-party antivirus (for example, Bitdefender or Kaspersky). Without any protection, the risk of catching malware increases significantly.
- Ignoring updates. After update MIUI All exceptions are reset. Always check them after you install a new firmware.
Many users also forget that:
- ๐ Exceptions do not apply to files downloaded after they are added. If you add a Download folder to exceptions and then download a new file there, the antivirus can scan it.
- ๐ฑ On HyperOS devices (new shell instead of a new one) MIUI) The path to security settings may be different. Check the current instructions for your version.