How to remove the ban on installing applications on Xiaomi: disable the MIUI lock

Xiaomiโ€™s MIUI-based smartphones are known for their strict security controls, which often block the installation of applications from unknown sources (.apk) โ€“ a feature designed to protect users from malware, but often an obstacle to installing legal software, from alternative launchers to specialized utilities. If you encounter a message that says โ€œInstallation is blockedโ€ or โ€œsecurity policy is prohibitedโ€, do not rush to reset your phone to factory settings: in 90% of cases, the problem can be solved with regular MIUI tools without root rights.

In this article, we will discuss 5 proven ways to remove the ban โ€“ from basic security settings to advanced methods using ADB. Particular attention will be paid to the nuances for different versions of firmware (MIUI 12-15) and models (Redmi Note 10/11/12, POCO X3/X4, Mi 11/12). All instructions are tested on current builds and do not require unlocking the bootloader, which preserves the device warranty. If after reading the questions, check the FAQ section at the end of the article.

Why Xiaomi is blocking APK installation and can it be bypassed?

The prohibition of installing applications from unknown sources is part of MIUIโ€™s security policy, which includes:

  • ๐Ÿ”’ Protection against malware: MIUI Scans all.apk files for threats through the built-in antivirus Mi Security.
  • ๐Ÿ“ฆ Source Control: Only apps from Google Play and the official Mi App Store are allowed by default.
  • ๐Ÿ›ก๏ธ Phishing protection: blocking the installation of fake versions of banking applications or social networks.
  • ๐Ÿ”„ Restrictions of regional firmware: on devices for China ROM) Google Mobile Services is prohibited (GMS).

But it often falsely positives by blocking secure files, like APKs from trusted sources like APKMirror or official developer sites, and bypassing the limitations is possible, but it's important to understand the risks:

โš ๏ธ Warning: Disabling protection increases the likelihood of malware being installed.Always check.apk files through VirusTotal before installing, even if the source seems reliable.

Starting with MIUI 14, Xiaomi has tightened control: now installing some applications requires not only permission in settings, but also confirmation through the Mi Account. android.permission.INSTALL_PACKAGES (for example, APK Installer or SAI).

๐Ÿ“Š What version? MIUI You're using it?
MIUI 12
MIUI 13
MIUI 14
MIUI 15 (HyperOS)
I don't know.

Method 1: Permission of installation from unknown sources (basic method)

The easiest way is to enable permission for the specific source (browser or file manager) through which you are trying to install.apk. MIUI:

  1. Download the.apk file and try to install it. When the "Installation locked" error appears, click Settings in the warning window.
  2. You will be taken to the Installation menu from unknown sources. Select the application you are trying to install APKs through (e.g. Chrome, Files or Mi Browser).
  3. Activate the switch Allow installation from this source.
  4. Go back to the installer and try again.

If this item is not on the menu, your device is running MIUI 14+ with an updated security policy.

  • ๐Ÿ”ง Go to Settings. โ†’ Annexes โ†’ Application management โ†’ Three points (โ‹ฎ) โ†’ Special access โ†’ Installation of unknown applications.
  • ๐Ÿ“Œ Find the application in the list through which you want to install APK (For example, file manager, and allow installation.

โš ๏ธ Note: Some Firmware for China (China) ROM) If you don't have the right app on the list, use Method 2.

โ˜‘๏ธ Preparation for installation APK

Done: 0 / 4

Method 2: Disable MIUI verification through security settings

If the basic method didn't work, the reason could be the built-in MIUI check, which blocks even the authorized sources, to turn it off:

  1. Open Settings โ†’ Password and Security โ†’ Device Protection.
  2. Find App Check (or Mi Protect on older versions) and turn it off.
  3. Return to the Password and Security menu and select Autoboot and Lock.
  4. Disable the option to block the installation of unknown applications.

On MIUI 15 (HyperOS), the path may be different:

Settings โ†’ Applications โ†’ Application Management โ†’ Three Dots (โ‹ฎ) โ†’ Special Access โ†’ Install Unknown Applications โ†’ Select "All Files"

After this, try installing the APK again, and if you see an "Application not installed" error, the problem may be:

  • ๐Ÿ”น Incompatibility with the Android version (check the application requirements).
  • ๐Ÿ”น The damaged file. APK (download again).
  • ๐Ÿ”น Conflict with an already installed version (remove the old app).

๐Ÿ’ก

If the installation is blocked after disabling the MIUI check, try renaming the APK file to app.apk โ€“ sometimes this bypasses the system filters.

Method 3: Using ADB to unlock the installation (advanced method)

If previous methods have failed and the device has MIUI 14+ installed, you may need to use ADB (Android Debug Bridge) permission, which does not require root rights, but you need to:

  • ๐Ÿ–ฅ๏ธ Computer with Windows/macOS/Linux.
  • ๐Ÿ”Œ USB-cable (preferably original).
  • ๐Ÿ“ฑ Included debugging by USB smartphone.

Step-by-step:

  1. Activate Developer Mode: Settings โ†’ About Phone โ†’ MIUI Version (click 7 times)
  2. Enable USB Debugging: Settings โ†’ Additional โ†’ For Developers โ†’ Debugging by USB
  3. Connect the phone to the PC and confirm the debugging permission.
  4. Download ADB Tools and unpack it into a folder.
  5. Open the command prompt in this folder (Shift + right mouse button โ†’ โ€œOpen PowerShell window hereโ€).
  6. Enter the command: adb shell settings put global install_non_market_apps 1
  7. Reset the device.

For MIUI 15 (HyperOS), an additional command may be required:

adb shell settings put secure install_non_market_apps 1

โš ๏ธ Attention: After completing these commands MIUI You can request confirmation via your Mi Account. If you do not have an account attached, create it in advance, otherwise the installation will be blocked.

What if the ADB does not recognize the device?
1. Install drivers for Xiaomi from the official website (link). 2. Try another one USB-cable (not all support data transfer). 3. Enable the Debugging option in the developer settings USB (Security settings) and Allow change of debugging resolution. 4. Restart PC and phone.

Method 4: Bypassing locking through third-party APK installers

If standard methods don't work, you can use specialized installers that bypass the limitations of MIUI.

AnnexAdvantagesDeficienciesReference
SAI (Split APK Installer)Supports Split APK (e.g. Google Camera) and bypasses MIUI verification.It requires permission to install through ADB.GitHub
APKMirror InstallerThe official tool from APKMirror, automatically updates applications.Doesn't work for MIUI China ROM.APKMirror
App ManagerAllows you to install/remove system applications, bypasses the MIUI lock.A complex interface for beginners.GitHub

To install one of these applications:

  1. Download the installerโ€™s APK from the official source (see table).
  2. Allow installation from unknown sources for the browser (see Method 1).
  3. Install the installer, then through it - the desired application.

SAI requires additional configuration via ADB:

adb shell appops set com.aefyr.sai android:install_unknown_apps allow

๐Ÿ’ก

Installers (such as SAIs) are often updated faster than built-in MIUIs and can bypass new firmware restrictions.

Method 5: Reset security settings (last resort)

If none of these things worked, and APK installation is critical, you can reset MIUI security settings to factory settings, and it won't delete your data, but it will return all permissions to default.

Instructions:

  1. Go to Settings โ†’ Password and Security โ†’ Privacy.
  2. Select Reset privacy settings.
  3. Confirm the action with a password / fingerprint.
  4. After reset, repeat Method 1 to allow installation.

On MIUI 15 (HyperOS) the path is different:

Settings โ†’ About the phone โ†’ Resetting settings โ†’ Resetting app settings

โš ๏ธ Warning: This method will reset all permissions for applications (camera, microphone, geolocation) and after the procedure, you will have to reconfigure the permissions for each application.

If the reset did not help, the problem may be:

  • ๐Ÿ”ธ Regional firmware: on China ROM without GMS Many applications are blocked at the system level.
  • ๐Ÿ”ธ Corporate Governance Policy: if the phone is linked to a work account (e.g., via Android Enterprise).
  • ๐Ÿ”ธ Hardware limitations: on some models (POCO F5, Redmi K60) Xiaomi blocks installation of uncertified APK loader-level.

Frequent mistakes and their solutions

Even after unlocking the installation, users face typical problems.

Mistake.Reason.Decision
"No appendix installed"Conflict with an existing version or damaged APK.Remove the old app and download the APK again.
"Device not supported"The application requires a different architecture (arm64/x86).Download the version for your architecture (check in Settings โ†’ About Phone โ†’ Kernel Version).
"Mi Account required."MIUI 14+ is limited to sensitive applications.Link your Mi Account and confirm the installation via SMS.
"Not enough space."MIUI reserves space for system updates.Clear the cache in Settings โ†’ Storage or use ADB for forced installation.

If you see the error "Can't analyze the package" - the problem is in the package itself. APK-Check it through the command:

aapt dump badging your file.apk

If the team returns an error, the file is corrupted.

adb install -r -t -d --fastdeploy your file.apk

FAQ: Answers to Frequent Questions

Can I install APK without disabling MIUI protection?
Yes, but only if the file is signed with an official certificate (for example, APK from Google Play via APKMirror).
Why does MIUI block the installation again after the update?
Xiaomi resets some resolutions after major updates. After the update, repeat Method 1 or Method 2.
How to install Google Play on China ROM?
Google Mobile Services (GMS) is locked at the system level on China ROMs, and you need to: Unlock the bootloader (lost warranty!), install custom recoveries (TWRP), flash GMS through Open GApps or NikGApps. Detailed instructions: xiaomi.eu.
Will the ADB work on MIUI 15 (HyperOS)?
Yes, but HyperOS added verification via Mi Account. If after the command adb shell settings put global install_non_market_apps 1 installation is still blocked - confirm the action through SMS or push notification in the account.
Can I return the standard security settings after installation?
Yes, all changes are reversible: For the method 1: Turn off the permission for the source in Install unknown applications. 2: Turn back Application Check in Security Settings. 3: Adb shell settings put global settings install_non_market_apps 0.