How to add Xiaomi antivirus to the exceptions: the complete guide

Owners of Xiaomi, Redmi and Poco smartphones often face aggressive security built-in. MIUI Security’s smart algorithms can force background processes to close, block notifications or delete installation files, considering them potentially dangerous, especially for specialized applications, mod games or remote access programs that require constant activity.

The solution is not to turn off the security, which would be unsafe, but to correctly configure exceptions. Android on the shell of MIUI allows you to flexibly manage the rights of each installed package. You need to go through several stages of configuration to the operating system stops strangling the application you want. In this article, we will discuss all the nuances of the built-in virus scanner and energy saving mechanisms.

The correct configuration of exceptions ensures that the software runs smoothly without the risk of infection. It is important to understand the difference between locking the installation (the scanner prevents the APK from running) and blocking work (the system unloads the process from memory). For each case, there are separate settings in the Security menu that require careful attention. Ignoring these steps can lead to incorrect display of messages or stop downloads.

Understanding the MIUI security architecture

The MIUI shell and its new HyperOS use a layered security system that relies on Avast or the company’s own work, and unlike pure Android, it controls applications more tightly, and it analyzes not only virus signatures, but also the behavior of the program: network access rates, battery usage, and auto-start attempts.

The main problem with users is that they're looking for one "Add to Exceptions" button that doesn't exist explicitly. Instead, the functionality is scattered across different submenus. The antivirus scanner is responsible for checking files, and Battery Saver monitors background activity. If an application is labeled as dangerous, it's locked at the installer level. If it's just "glutty," it's killed by a memory optimizer.

False positives often occur with applications that have access to system files or use non-standard communication methods. Xiaomi seeks to protect the inexperienced user from itself, so by default prohibits many actions. Understanding this logic helps to properly configure the device without violating its integrity.

⚠️ Note: By adding an application to exceptions, you confirm that the source of its download is reliable. Never exclude from the verification programs downloaded from dubious sites or forums, as this can lead to identity theft.

Effective security management requires knowing where key switches are located, and the following is a table describing the main security components and what they are responsible for in the context of exceptions.

System componentFunctionAffects the installationAffects background work
Security ScanVerification APK-virus-fileYeah (blocks launch)No.
Battery SaverEnergy controlNo.Yeah (unloads the process)
App LockBlocking access to applicationsNo.Yes (password required)
Install MonitorMonitoring of the package installerYes (warning)No.
πŸ“Š What antivirus is used on Xiaomi?
Built-in Security
Kaspersky
Dr.Web
ESET NOD32
I don't use it.

Set up exceptions in the Security app

The central element of protection is the standard Security application with a green shield icon, and this is where the main scanner, which most often blocks the installation of third-party devices, is located. APK-To add a file or folder to an exception, you need to go to the scanner menu. Open the application and select Antivirus.

In the upper right corner of the screen is the settings icon (cogs), clicking on it, you will be taken to the scanner configuration menu. Here you need to find the option to ignore errors or Add exceptions. MIUI This item may be called a "White List." Adding it does not guarantee that the application will not be unloaded from memory, but it will allow you to install it. APK-file without system warning.

Also on this menu, you should pay attention to the Scan When Install switch, which means that if you often install apps that are not from Google Play, you can temporarily disable this feature, but you should just add the necessary files to the exceptions, which will maintain a basic level of protection against really dangerous threats.

πŸ’‘

If the application is still deleted immediately after installation, check the Quarantine folder in the Security app. The installation file may have already been placed there and deleted.

The process of addition is as follows:

  • πŸ“‚ Click the Add button or plus in the exclusion menu.
  • πŸ” Select a file or folder that you want to exclude from the check.
  • βœ… Confirm the action by accepting the risks.

They don't give priority to the process. If your application requires constant work in the background (for example, a GPS tracker or a messenger for business), settings alone will not be enough.

Energy saving management for background processes

The most common reason applications disappear is an aggressive energy-saving policy: MIUI seeks to save battery power by forcibly closing processes that are not on the screen. For an application to work steadily, it must be taken out of the control of the optimizer.

Go to Settings β†’ Applications β†’ All apps. Find the program you want in the list. From the menu that opens, select Activity Control (or Battery Savings). The default is β€œBattery Savings.” You need to change it to No Restrictions.

This setting allows the application to:

  • πŸ”‹ Working in the background without restrictions.
  • πŸ“‘ Use mobile internet and Wi-Fi in the background.
  • πŸ”” Show notifications on time.
  • πŸš€ Start automatically after restarting.

β˜‘οΈ Checklist of application settings

Done: 0 / 5

Once you change this, the system will stop killing the process, even if it consumes a lot of resources. However, this can lead to a faster battery discharge. Balance the settings depending on the importance of the application. For the navigator or the Mi Band smartwatch, this is critical, and for a game you play only during the day, you can leave the standard settings.

⚠️ Warning: Setting β€œNo Limits” mode for a large number of applications will result in a marked reduction in the battery life of the device. Use this feature selectively only for mission-critical software.

Working with package installer and unknown sources

When trying to establish APK-A file downloaded from a browser or received via a messenger, Xiaomi blocks the action by citing security policies.The system requires explicit permission for each installation source.This is not a bug, but a feature of Android Security.

When you see a window that says "Installation locked," don't panic. This window usually has a Settings button or a link to settings. When you click on it, you'll be taken to the Install Unknown Apps menu, and you'll find the source you're downloading the file from (like Chrome, Telegram, or Explorer) and let it install.

Algorithm of action:

  1. Get a warning when installing.
  2. Click Settings in the warning window.
  3. Activate the Allow switch from this source.
  4. Go back and click "Install".
Why is Xiaomi so strict about APK?
The company follows Google Play Protect's policy, but adds its own filters to prevent the installation of malware, which is often masquerading as useful utilities. In China, where Google services don't work, such rigor helps keep the ecosystem clean, but in global versions it often creates inconveniences for advanced users.

If you install a lot of apps from third-party sources, it makes sense to turn on the developer mode and find the Verify Apps option. Disabling it will remove most warnings, but reduce the overall security level of the device.

Auto-start and special features

Many users forget about the AutoRun menu. Even if you set up the battery and antivirus, the app may not start after you reboot the phone unless it is added to this list. You can find it through a search in the settings or in the Security app β†’ Permissions β†’ AutoRun.

In addition, some applications require access to Accessibility to work properly (e.g., ad blockers, automatizers, or screen readers). Without that permission, they may or may not fly out. Path to setup: Settings β†’ Advanced Settings β†’ Special Features.

Caution is important here. Giving these rights gives the app full control over the actions on the screen. Add to the exceptions and allow access only to verified programs. The special features list also includes the Notification Access option, which is necessary for smartwatches and wristbands to synchronize messages.

πŸ’‘

Comprehensive exception settings require changes in three places: Antivirus (for files), Battery (for background work), and AutoRun (for start-up after reboot).

Frequent problems and methods of their solution

Despite the correct setup, there may be situations where the application continues to behave unstable, such as notifications arriving with a delay, or the application β€œflying out” when the windows are rolled up. In such cases, it is worth checking whether Full Cleanup mode is included in the multitasking menu. By closing applications with a swipe, you force them to stop, ignoring the exception settings.

Also worth mentioning is the theft protection feature, which, if activated, can be blocked at the Mi Account level from removing some system or secure applications, so adding antivirus to the exceptions won’t help, but you need to turn off protection in your cloud account settings.

Sometimes it helps to reset the settings of the application itself Security. To do this, go to Settings β†’ Apps β†’ All Apps β†’ Find Security β†’ Memory β†’ Clear Data. This will not delete your files, but will return the scanner settings to factory settings, which can remove erroneous locks.

⚠️ Warning: Cleaning up the data from the Security app will reset all the exceptions and whitelists you created. You will have to reconfigure them. Use this method only if other methods have not worked.

In conclusion, the right exception setting is a balance between convenience and security. Xiaomi provides powerful tools for control, but requires the user to understand the logic of their work. Follow the instructions, check the sources of files and enjoy the stable operation of your smartphone.

What if the antivirus deletes the file over and over again?
If a file is deleted immediately after being added to an exception, try renaming it the extension from.apk to.txt, moving it to another folder, adding the folder to exceptions, and then renaming it back. Sometimes this bypasses the scanner cache.

Questions and Answers (FAQ)

Is it safe to completely disable antivirus on Xiaomi?
You can't completely disable the built-in scanner without root rights, because it's a system component, but you can disable Installation Check and Monitor, and you don't recommend that if you download files from unknown sources often, but you'd better add a specific application to an exception than leave your phone unprotected.
Why does the app crash even if it added a battery to the exceptions?
If a system is memory-deficit, it can shut down even the permitted processes. Try extending virtual memory (memory extension) in settings if your model supports it, or close unused heavy applications.
How to add a folder to the scanner exceptions?
In the Antivirus menu, click on the settings gear, select Add Exceptions, and specify the path to the folder. All files inside this folder will be ignored when scanning. Make sure you trust the contents of this folder.
Are exception settings lost after the MIUI update?
For major shell updates (e.g., switching from MIUI 13 to 14), security settings can be reset to factory ones. After a major update, it is recommended to check the exception list and battery modes for important applications.