Owners of Xiaomi, Redmi and POCO smartphones often face intrusive system protection, the built-in Security component can block the installation of third-party applications or delete important files, considering them a potential threat, this is especially true for users who install modified versions of programs or utilities that have not passed the Google Play Protect certification.
System system MIUI And its modern-day HyperOS counterpart is famous for its aggressive optimization and strict security rules. APK-files when downloaded and installed, and checks installed programs for malicious code, sometimes leading to false positives, when innocuous software is labeled as dangerous.
To avoid constant notifications and blocking, you need to properly configure the list of trusted objects. Exceptions allow the system to ignore specific files or folders during verification. In this article, we will examine all available configuration methods, from simple menu switches to hidden engineering options.
The principle of the built-in protection MIUI and HyperOS
Xiaomi shell protection is a comprehensive solution that combines virus scanning, garbage cleaning and permission management. The antivirus engine runs in the background and checks the file system in real time. This provides a high level of security, but can conflict with the needs of advanced users.
The main component of the system is called Security (or "Security" in the Russian localization), which decides to block the installation. APK-file or deletion of an already running application. Algorithms analyze digital signatures, permissions requested, and program behavior.
- ๐ก๏ธ Real-time protection: Continuously check all running processes and open files for threats.
- ๐ฆ APK Scanner: Automatically check installation packages before they are launched, even if they are downloaded from a reliable source.
- ๐ Privacy Guard: Control of applications access to personal data, which can also block the operation of software functions.
โ ๏ธ Note: By adding files to exceptions, you take responsibility for their security. Make sure that the source of the program download is reliable, otherwise you risk infecting the device with real malware.
Understanding how a system monitor works helps avoid many problems: If Xiaomi has deleted a file, it usually quarantines it, where recovery is possible, but not always convenient. It is much more effective to prevent blocking by setting up rules in advance.
Preparation for setting up: rights and access
Before making changes to security mechanisms, you need to make sure you have access to the menus you need. In some versions of Xiaomi firmware, access to advanced security settings may be limited or hidden. Administrative rights (Root) for basic exception settings are not required, but full control of the system sometimes makes it easier.
The first step should always be to check the relevance of the virus signature database. Xiaomi Antivirus uses cloud databases that are regularly updated. If the database is outdated, the likelihood of false positives increases. Go to the Security app and click on the shield icon to update the virus databases.
It is also important to disable the Recommendations feature in the Security app, and often it is the advertising modules inside the system utilities that prompt you to remove the โunnecessaryโ application that you actually need.
- ๐ฑ Open the Security app on the home screen.
- โ๏ธ Click on the gear icon in the upper right corner to enter the settings.
- ๐ Select the โUpdate Virus Baseโ option and wait until the process is complete.
โ๏ธ Checking before setting up
If you plan to add entire data folders to exceptions, make sure they are already created in the file system. Android directory structure is strictly hierarchical, and specifying a non-existent path will not work. Use the file manager to copy the exact address of the desired directory.
Method 1: Scanning setup APK-file
The most common problem is blocking the installation of applications from unknown sources. APK-To disable this case-specific or complete scanning, you need to change the scanner settings.
Go to the Security app and select the Antivirus section. In the upper right corner is the settings menu (three dots or gear) and there is the key switch "Check on Installation" that will allow you to install applications without checking beforehand, but will not add them to the whitelist permanently.
A more subtle setup is available in the Scanning Settings section, where you can choose which types of files to check, but for adding a specific object to the exclusion, this method is not suitable, since it works globally.
| Parameter | Description of action | Recommended value |
|---|---|---|
| Check during installation | Scans APK before installer launch | VL (for safety) |
| Auto-cleaning threats | Automatically removes detected viruses | Off (to avoid removing excess) |
| Cloud check | Comparison of files with Xiaomi server | On |
| Real-time monitoring | Continuous background check | On |
What if the file is deleted instantly?
It's important to understand the difference between turning off installation checks and adding exceptions: the first reduces overall security, the second creates a point rule, and the whitelist is a more competent approach to system setup.
Method 2: Adding applications and processes to the whitelist
If an app is already installed, but Xiaomiโs security system constantly issues warnings or restricts its background activity, it must be added to the exceptions manually.
Open Security, go to Licenses and Notifications or Application Management (the name may vary depending on the version of MIUI). Find the program you want in the list. Search for Permissions or Security inside the app menu. You can remove autostart and background restrictions.
To add to the antivirus exception:
- Run a full device check through the Security app.
- When the scan is complete (or during it if a notification appears), click on the settings or shield icon.
- Find the item โIgnore the listed threatsโ or โAdd to exceptionsโ.
- Select a process or file from the list of detected โthreatsโ and confirm the action.
โ ๏ธ Note: If the system antivirus labels the system file or driver as a virus, donโt rush to add it to the exceptions.
With new versions of HyperOS, the interface may have changed, and now the exceptions feature is often hidden in Settings โ Applications โ Permissions โ Special Options, where you can customize in detail what a particular application is allowed to do, which indirectly excludes it from the tight control of energy saving and security.
๐ก
Adding to the whitelist through the scan menu is the only way to make an antivirus ignore a specific file it considers malicious.
File system: exceptions for folders
Sometimes you have to exclude a whole folder from the check, for example, with mods for games or work documents, and standard MIUI tools make this difficult, because the interface does not always allow you to choose arbitrary directories, but there are workarounds.
One method is to use the Hide Files feature. Files placed in a hidden folder (Hidden Albums or Hidden Files in Explorer) are often excluded from quick scanning, although deep verification can still affect them. To create such a folder, press your finger on the file in Explorer and select Hide.
A more reliable way for advanced users to use ADB (Android Debug Bridge), through the computer you can specify attributes to files or change access rights, which sometimes helps to bypass heuristic analysis.
adb shell pm grant com.miui.securitycenter android.permission.WRITE_SECURE_SETTINGSOnce the command is executed (it requires unlocking the bootloader and debugging over USB enabled), you can more flexibly manage the security settings, but this method is only suitable for advanced users, since an error can lead to unstable system operation.
- ๐ Use a standard explorer to move files to secure directories.
- ๐ Encrypt folders so that the antivirus cannot read their contents.
- ๐ ๏ธ Use third-party file managers with Root rights to change attributes.
Problem Solving: If the file is deleted despite the settings
There are times when Xiaomiโs aggressive defense ignores all settings and keeps deleting files, often with quack games, console emulators, or system-change tools, and this requires a comprehensive approach.
The first thing you need to do is completely disable Mi Protect, which is system-level, and can block activities that are allowed in a regular antivirus. Path: Settings โ Passwords and Security โ Privacy โ Special features โ Access to notifications. Find Mi Protection and turn it off.
If that doesn't work, try renaming the file extension before installing it (like.apk to.apk1), copying it, then renaming it back, sometimes knocking down the pre-crawling algorithms.
๐ก
Before deleting an important file with an antivirus, make a copy of it to the cloud storage (Google Drive, Yandex.Disk), where the Xiaomi system scanner usually does not have direct access to delete.
In extreme cases, when nothing helps, users resort to replacing the system application "Security" with third-party counterparts, although in MIUI it is extremely difficult to do this without flashing. Most often, waiting for an update of signature databases helps - in a couple of days, the file may no longer be considered dangerous.