How to turn off application protection on Xiaomi: all the ways and nuances

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).

πŸ“Š Have you ever had a lock on your installation? APK Xiaomi?
Yeah, often.
Yeah, but rarely.
No, never.
I haven't tried to install APK.

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:

  1. Download. APK-file and remember which application it was made through (e.g. Chrome or Files by Google).
  2. When you try to install, a warning window will appear. Press Settings at the bottom of the screen.
  3. Turn on the switch Allow installation from this source.
  4. 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:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Find the application through which the APK is downloaded (such as Browser or Explorer).
  3. Slip on the item Install unknown applications.
  4. 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:

  1. Open the Settings. β†’ PapaSSWORD & SECURITY β†’ Privileges (on some firmware, the path may differ: Settings) β†’ Additionally. β†’ Confidentiality).
  2. Find Application Protection or Special Permits.
  3. Turn off the App Verification or APK Scan option.
  4. 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?
On some firmware (e.g. global versions for Europe), this section is hidden. Try: 1. Search in the settings for "protection." 2. Enable developer mode (7 times tap on the build number in "About Phone") and look for additional options in the "Developers" menu. 3. Update MIUI to the latest version - sometimes menu items change location.

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:

  1. Activate Developer Mode: Go to Settings β†’ About Phone and tap on MIUI Version 7 times.
  2. Go back to the basic settings, open Additional β†’ for developers.
  3. Turn on USB debugging and confirm the permission.
  4. 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 1

This 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 1

Method 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:

  1. Open the Security app (shield icon).
  2. Go to Antivirus β†’ Settings (cog icon).
  3. Turn off the options of Real-time Scanning and Installed Apps Check.
  4. Return and click Clear (if there are active threats).

For complete removal (with root only):

  1. Install a file manager with root support (such as Root Explorer).
  2. Go to /system/priv-app/MiuiSecurity or /system/app/Security.
  3. Remove or rename the folder (for example, in the Security_bak).
  4. 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 protectionActive deep system inspectionUse it. ADB-Adb shell settings put global package_verifier_enable 0
Application not installedA damaged APK or incompatible versionDownload the file again, check the architecture (arm64/x86) and the Android version
Unknown error of code -24Conflict with the existing version of the applicationRemove the old app and clear its data in Settings β†’ Apps
Lack of memoryAPK requires more space than is availableClear the cache or install it. APK on SD-card (if supported)
Packet parsing errorAPK is not designed for your version of AndroidCheck 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.apk

Flag. -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:

  1. Block installation from unknown sources for all applications except the file manager.
  2. Enable Google Play Protect in the Google Play settings.
  3. 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.

FAQ: Frequent questions

Can I turn off the application protection permanently?
No, most Xiaomi devices are back on protection after a system reboot or upgrade.
Why is the APK not installed after the protection is turned off?
Possible reasons: APK is designed for a different processor architecture (e.g. x86 instead of arm64) File corrupted or not fully downloaded. Secured Space is activated (on some Xiaomi models for China). Check APK compatibility with your device via APK Info or AIDA64.
How do you get protection back?
To turn the protection back on: Open Settings β†’ PapaSSWORD & SECURITY β†’ Privileges. Activate App Verification and Protection. MIUI. Disable installation from unknown sources for all applications in Settings β†’ Applications: To reset security settings through ADB Adb shell settings put global settings package_verifier_enable 1
Will this work on POCO or Redmi?
Yes, all MIUI devices (including POCO, Redmi, Black Shark) use the same protection system, except for models for the Chinese market (for example, Xiaomi 13 Pro with HyperOS), where there may be additional restrictions.
Can I turn off the protection without a computer?
Yes, the first two methods (resolving unknown sources and disabling verification in security settings) do not require a PC. ADB and removing antivirus are only possible with a computer or with root rights.