How to add an exception to Xiaomi antivirus: step-by-step instructions

Xiaomi’s modern MIUI and HyperOS smartphones have a powerful built-in Security tool that scans the system around the clock for threats. Sometimes this protection becomes too aggressive and starts to delete or block files you downloaded from the Internet or applications installed outside the official Google Play store. This can be annoying, especially if you are confident in the security of the software you download.

Adding an exception allows you to indicate to the system that a particular file, folder or application is secure and does not require verification. In this article, we will discuss in detail how to properly configure antivirus so that it stops interfering with your work, while maintaining the basic protection of the device.

Why Xiaomi Antivirus is Blocking Files

The main reason for blocking lies in heuristic analysis algorithms: the built-in engine, often based on Avast or Tencent technologies, flags as suspicious all programs that do not have a digital signature in official registers. Virus signatures are updated regularly, but sometimes legitimate utilities for system modifications get blocked.

Xiaomi also strictly monitors application permissions: If a program tries to access system files or contacts without an explicit request through a standard dialog, it can be seen as a privacy threat.

⚠️ Note: By adding a file to exceptions, you take responsibility for its security. Make sure the download source is reliable, as the antivirus will no longer check the object for malicious code.

Users often face a situation where the APK-The file is deleted as soon as the download is complete. MIUI, It's designed to protect inexperienced users, but for advanced users, it's a huge obstacle.

Preparation for setting exceptions

Before you make changes to your system settings, you need to find a way to the file you installed. Usually downloads are stored in /storage/emulated/0/Download. If you plan to delete an application, it should be at least temporarily installed or stored in memory.

Also worth checking is the current security status. Open the Security app (the shield icon) and go to the Antivirus section. This shows the date of the last database update and scan status. Make sure you have access to the Internet to update the lists before setting up.

β˜‘οΈ Preparation for setup

Done: 0 / 4

It's important to understand the difference between excluding from scanning and excluding from memory optimization, because we're setting up an antivirus engine that checks files for viruses, not a power saving system that closes the background processes.

How to add an app to the whitelist

The most common scenario is to launch an application that the system considers risky. To do this, open the Security app and select Antivirus. Click on the settings icon (cogs) in the upper right corner of the screen.

In the menu that opens, look for the Whitelist section, which shows all the apps that are allowed to ignore the checks, click Add and select the program you want from the list of those installed on the device, and then add the signature to the trusted database.

  • πŸ›‘οΈ Open the Security app on the home screen.
  • πŸ” Go to the Antivirus section and click on the settings.
  • βœ… Select the White List and add the desired app.
  • πŸ”„ Restart the device to apply the changes.

If the application is not in the list to add, it may already have been removed by the system, in which case you will need to temporarily disable the protection, install the application, and then add it to the exceptions according to the instructions above, which is critical, since without installation, you can not add a package to the whitelist.

What to do if the "Add" button is inactive?
If you can't choose an application, try running it first. Sometimes the system blocks whitelisting for system services that don't have a user interface. Rarely, root access is required to edit system exception lists.

Excluding specific files and folders

The standard MIUI functionality doesn't always allow you to add an arbitrary folder to the exceptions through the GUI, but you can exclude files from the manual scanning check. Run a full antivirus check.

When the scan reaches a suspicious file and the system prompts you to delete it, don't rush to agree. Often in the corner of the screen or in the menu (three dots) there is an option to ignore or add exceptions. By clicking on it, you will prevent repeated notifications about this particular threat.

Type of objectMethod of exclusionEfficiency
Annex (APK)Through the White ListTall.
Separate fileIgnoring in scanningMedium
Data folderChange of decryption (encryption)Low.
Systemic processNot recommendedRisky.

For folders with media files or documents that are falsely identified as threats, sometimes changing the extension or putting them in an archive with a password helps. Xiaomi antivirus does not know how to scan the contents of encrypted archives, which automatically eliminates the issue of false positives.

πŸ“Š How often do you have false antivirus positives?
Every day.
Once a week.
Once a month
Almost never.

Scanning settings during installation

And you have to pay special attention to the installation package scanning function, and it works when you're trying to open the downloaded package. APK-To set up this process, go to the phone settings, then to the Passwords and Security section.

Find Special Features (or Privacy Protection in newer versions) and select Administration. You can manage permissions for Google Play Protect and Xiaomi's built-in scanner. Disabling check-in during installation makes life much easier for those who often test new software.

⚠️ Warning: Disabling scanning completely when installed reduces the security of your device, only if you understand the risks and trust the source of the files.

In some versions of HyperOS, the path may differ: Settings β†’ Applications β†’ Settings β†’ Install via USB (for debugging) or Security β†’ Settings β†’ Scan before installation. The location of the switches depends on the firmware region (Global, China, EEA).

Using Developer Modes for Exceptions

To fine-tune it, you can use the developer mode. Turn it on by quickly tapping the MIUI Version 7 times in the About Phone section. Once the Developer Menu appears in the basic settings, look for the section related to monitoring or checking apps.

You can turn off the application verification via ADB (Android Debug Bridge).

adb shell pm disable-user --user 0 com.miui.securitycenter

πŸ’‘

Use Flight mode when installing suspicious but necessary files, which will prevent the hash amount of the file from being sent instantly to Google or Xiaomi servers for verification in the cloud.

Also in developer mode, you should pay attention to the option Verify apps over USB. If you connect your phone to your computer to transfer files, this feature can block the recording of data, considering it potentially dangerous.

Frequently Asked Questions (FAQ)

Can you completely disable Xiaomi antivirus?
Yes, in the Security settings, you can turn off real-time protection, but the system can periodically turn it back on or require confirmation when running potentially dangerous applications.
Why is the file deleted immediately after downloading?
This is Google Play Protect, or the built-in browser download scanner, and to prevent this, you need to add a file to exceptions when a threat is detected, or temporarily disable download scanning in your browser settings.
Is it safe to add files to a whitelist?
Security depends solely on your source: the file on the whitelist is not checked by the antivirus at launch, and if there is a virus inside, the system will not be able to prevent its action.
What to do if the white list is not saved?
Try clearing the app's cache Security through Settings β†’ Apps β†’ Security β†’ Memory β†’ Clear the cache. Also make sure the device has the current firmware version installed, as older versions may have had settings sync bugs.

πŸ’‘

Competent setting of exceptions allows you to combine the usability of third-party software and the basic level of system protection without the need to completely disable the antivirus.