Application protection on Xiaomi smartphones is a built-in security mechanism in the shell MIUI, which blocks the installation of programs from unknown sources, scans APK-Virus files and limit access to system features, which is useful for most users, but sometimes it gets in the way of installing an app outside of Google Play or testing your own development. In this article, we will discuss how to properly disable application protection on Xiaomi without risk to the system, what settings are responsible for this and what to do if standard methods do not work.
It's important to understand that disabling protection reduces security. On models with MIUI 14 and later, after disabling APK, the system can automatically turn it back on after rebooting β this is a feature of the firmware, not a failure. We'll look at not only the basic ways through the settings menu, but also alternatives for power users, including working with ADB and developer rights. If you encounter an error, "Installation is locked" or "Ap not supported," here you will find a solution.
Why is Xiaomi blocking the installation of apps?
The MIUI shell uses a multifaceted protection system that includes:
- π Verification of signature APK β Blocks the installation of files without a developerβs digital signature.
- π‘οΈ Malware scanner β analyzes the application code before installation.
- π Restricting Unknown Sources β prohibits Google Play from being installed by default.
- π± Protection MIUI β an additional layer that can block even authorized applications if they request suspicious permissions.
The main reasons for blocking:
- π The app is not downloaded from the official store (Google Play or Mi App Store).
- π File. APK damaged or modified (for example, after editing in the APK Editor).
- π The developer has not specified compatibility with your version of Android or MIUI.
- π The system activated mode Protected space (on some models Xiaomi).
For example, if you try to install a modified version of YouTube (like YouTube Vanced), the system may block it because there is no official signature, the same applies to rooting apps (Magisk, KingRoot) or emulators (PPSSPP, Dolphin).
Method 1: Allowing installation from unknown sources
The easiest method is to enable APK installation from external sources, and MIUI does this not globally for the entire system, but for each application separately (for example, for a file manager or browser).
Instructions:
- Download. APK-file and remember which application it was made through (e.g. Chrome or Files by Google).
- When you try to install, a warning window will appear. Press Settings at the bottom of the screen.
- Turn on the switch Allow installation from this source.
- Return to the installation and confirm the action.
If the window with the suggestion to go to the settings did not appear, do it manually:
- Open Settings β Applications β Application Management.
- Find the application through which the APK is downloaded (such as Browser or Explorer).
- Slip on the item Install unknown applications.
- Activate the resolution for this source.
Download the file only from verified sources (APKMirror, APKPure)
Check the hash amount of the file (optional)
Enable installation from unknown sources for the desired application
Disable VPN/proxy (can block download)
-->
On some models (Redmi Note 10 Pro, POCO X3 Pro) after upgrading to MIUI 13/14, this method may not work due to the added protection.
Method 2: Disable MIUI check in security settings
MIUI has a separate Security section where you can temporarily disable application scanning, which is suitable if the installation is blocked during the file verification phase.
Step-by-step:
- Open the Settings. β PapaSSWORD & SECURITY β Privileges (on some firmware, the path may differ: Settings) β Additionally. β Confidentiality).
- Find Application Protection or Special Permits.
- Turn off the App Verification or APK Scan option.
- Confirm the action if you need to enter a password or fingerprint.
On Xiaomi with MIUI 12.5 and later, this item may be called MIUI Protection. After disabling, try re-install the application. If the warning βInstallation blocked by MIUI protectionβ appears, then a deeper intervention is required (see method 4).
What if the "Application Protection" item is not in the settings?
Note that once the device is restarted, the protection can be activated automatically.This is normal MIUI behavior associated with Xiaomi's security policy.
Method 3: Using Developer Mode (ADB)
If standard methods donβt work, you can turn off app verification via ADB (Android Debug Bridge), which requires connecting your smartphone to your computer and basic command line knowledge.
What you need:
- π» A computer with installed Xiaomi drivers and ADB (You can download from the Android Developers website).
- π± Developer mode on the smartphone enabled (instruction below).
- π USB-cable (preferably original).
Steps:
- Activate Developer Mode: Go to Settings β About Phone and tap on MIUI Version 7 times.
- Go back to the basic settings, open Additional β for developers.
- Turn on USB debugging and confirm the permission.
- Connect your smartphone to your PC, open the command line (Win + R β cmd) and type:
adb devices(Your device name should appear. If not, check the drivers.)
adb shell settings put global package_verifier_user_consent 1This command disables the application verification during installation. After you do, restart your smartphone.
If you need to turn off APK scanning completely (not recommended), use:
adb shell settings put global package_verifier_enable 0π‘
After working with ADB Always turn off debugging. USB This will reduce the risk of unauthorized access to the device through the USB-port.
On some models (Xiaomi 12, Redmi K50) after these commands, you may need to additionally disable MIUI Optimization in the developer settings.
adb shell settings put global miui_optimization_disabled 1Method 4: Remove the built-in antivirus (for power users)
MIUI has a built-in Security (or Mi Security) antivirus that can block installation even after all settings are turned off, and can be temporarily deactivated or removed (root rights required).
How to turn it off:
- Open the Security app (shield icon).
- Go to Antivirus β Settings (cog icon).
- Turn off the options of Real-time Scanning and Installed Apps Check.
- Return and click Clear (if there are active threats).
For complete removal (with root only):
- Install a file manager with root support (such as Root Explorer).
- Go to /system/priv-app/MiuiSecurity or /system/app/Security.
- Remove or rename the folder (for example, in the Security_bak).
- Reset the device.
π‘
Removing the built-in antivirus deprives the device of basic protection against malware. Use this method only if other methods have not helped, and you are confident in the security of the APKs installed.
On models with MIUI 14 and HyperOS (such as Xiaomi 13T), the antivirus is integrated deeper into the system, and its removal can lead to failures, in which case it is better to use ADB or alternative methods.
Addressing common mistakes
Even after the protection is turned off, you may encounter errors.
| Mistake. | Reason. | Decision |
|---|---|---|
| The installation is blocked by MIUI protection | Active deep system inspection | Use it. ADB-Adb shell settings put global package_verifier_enable 0 |
| Application not installed | A damaged APK or incompatible version | Download the file again, check the architecture (arm64/x86) and the Android version |
| Unknown error of code -24 | Conflict with the existing version of the application | Remove the old app and clear its data in Settings β Apps |
| Lack of memory | APK requires more space than is available | Clear the cache or install it. APK on SD-card (if supported) |
| Packet parsing error | APK is not designed for your version of Android | Check minSdkVersion in the APK manifesto or use the patched version |
If the error persists, try:
- π Install APK through ADB adb install path to file.apk.
- π Put the file in a folder /sdcard/Download/ and set up from there.
- π§ Temporarily shut down MIUI Optimization in the Developer Settings.
adb install -r -d path to file.apkFlag. -r replaces the existing annex, and -d allows you to downgrade.-->
Security after the protection is turned off
Disabling application verification increases the risk of installing malware to minimize threats:
- π‘οΈ Set up. APK only from verified sources: APKMirror, official developer sites.
- π Before installing, check the hash amount of the file (for example, through Hash Droid).
- π± Regularly scan your device with a third-party antivirus (e.g. Malwarebytes).
- π Turn on protection back after installing the desired applications.
On models with MIUI 14 and HyperOS, it is recommended to disable the protection after:
- Block installation from unknown sources for all applications except the file manager.
- Enable Google Play Protect in the Google Play settings.
- Disable automatic update installation for applications from unknown sources.
π‘
If you install APKs frequently, consider creating a second user or an Android work profile, which isolates potentially dangerous apps from the main system.
Remember, even legitimate applications (such as modified WhatsApp or Telegram clients) can contain vulnerabilities. Always check the reviews and reputation of the source before installing.