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).
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:
- Download the.apk file and try to install it. When the "Installation locked" error appears, click Settings in the warning window.
- 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).
- Activate the switch Allow installation from this source.
- 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
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:
- Open Settings โ Password and Security โ Device Protection.
- Find App Check (or Mi Protect on older versions) and turn it off.
- Return to the Password and Security menu and select Autoboot and Lock.
- 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:
- Activate Developer Mode: Settings โ About Phone โ MIUI Version (click 7 times)
- Enable USB Debugging: Settings โ Additional โ For Developers โ Debugging by USB
- Connect the phone to the PC and confirm the debugging permission.
- Download ADB Tools and unpack it into a folder.
- Open the command prompt in this folder (Shift + right mouse button โ โOpen PowerShell window hereโ).
- Enter the command: adb shell settings put global install_non_market_apps 1
- 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?
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.
| Annex | Advantages | Deficiencies | Reference |
|---|---|---|---|
| SAI (Split APK Installer) | Supports Split APK (e.g. Google Camera) and bypasses MIUI verification. | It requires permission to install through ADB. | GitHub |
| APKMirror Installer | The official tool from APKMirror, automatically updates applications. | Doesn't work for MIUI China ROM. | APKMirror |
| App Manager | Allows you to install/remove system applications, bypasses the MIUI lock. | A complex interface for beginners. | GitHub |
To install one of these applications:
- Download the installerโs APK from the official source (see table).
- Allow installation from unknown sources for the browser (see Method 1).
- 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:
- Go to Settings โ Password and Security โ Privacy.
- Select Reset privacy settings.
- Confirm the action with a password / fingerprint.
- 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.apkIf the team returns an error, the file is corrupted.
adb install -r -t -d --fastdeploy your file.apk