The MIUI 12 is one of the most controversial versions of Xiaomiโs shell, bringing long-awaited improvements in design and optimization, and tightening security policies, which has left many users unable to install APK- files due to blocking โunknown sources,โ and the standard settings path often doesnโt work or is hidden behind multiple menu layers.
Complicating the problem, Xiaomi regularly changes the layout of options depending on the model and the firmware region. For example, on the Redmi Note 9 Pro with a global MIUI 12.5, the path is different from the Chinese version on the Mi 11 Ultra. And on some devices, the option is not at all in the security menu until the first connection to the Mi Account. In this article, current ways to unlock all variants of MIUI 12, including hidden methods through ADB and bypassing restrictions for Chinese firmware.
If you try to install an application outside of Google Play (for example, a modified YouTube Vanced or a regionally blocked TikTok), the system will give an error: โInstallation is blocked. For security reasons, the phone prohibits installing applications from unknown sources.โ Even after enabling permission in the settings, some APK- files may not be installed โ this is due to additional check of the signature of packages in MIUI 12.
โโโ
Why MIUI 12 blocks APK installation and what are โunknown sourcesโ
With Android 8.0+ (and MIUI 12 is based on Android 10/11), Google introduced the concept of โunknown sourcesโ as part of its security policy. It used to be enough to turn on one global switch in the settings, but now the permission is given separately for each application that requests APK installation. For example, if you downloaded a file through Chrome, then it is the browser that needs permission, not the file manager.
Xiaomi went further and added additional layers of protection to MIUI 12:
- ๐ Signature Verification APK โ The system blocks files with an incorrect or missing digital signature, even if the source is authorized.
- ๐ฑ Mi Account binding โ some security settings are hidden on Chinese firmware before being logged into your Xiaomi account.
- ๐ Permission reset โ after the MIUI update, all previously issued installation permits APK are reset.
- ๐ก๏ธ Rooting Protection โ MIUI 12 actively prevents installation of tools like Magisk or Xposed.
It is important to understand that the lock works on three levels:
- System โ General setting in the security menu.
- Applications โ permission for a specific installer (browser, file manager).
- File โ check the APK itself for integrity and signature.
If you see a message saying โInstallation locked,โ it doesnโt always mean you just need to turn on โunknown sources,โ and it may be a corrupted file, an incompatible architecture (ARM/x86), or a conflict with an already installed application.
โโโ
Official method: Including through security settings
This is the basic method that works on most MIUI 12 devices, but the path to settings may vary depending on the model and firmware version, and below is a general-purpose instruction with all options.
Step 1. Open Settings (the gear icon on the desktop or in the application menu).
Step 2. Go to the section:
- ๐ฑ Passwords & security for global firmware.
- ๐จ๐ณ โ (Additional settings โ Security) โ for Chinese versions.
- ๐ Additional settings โ Privacy protection โ on some European builds.
Step 3: Find Install apps from unknown sources or (Special Application Permissions) for Chinese MIUI.
If the item is not in the main security menu, try an alternative path:
- Open Settings โ Applications โ Application Management.
- Click on the three dots in the top right corner and select Special Access.
- Slip on Install Unknown Applications.
In the list that opens, select the application you plan to install APK through (for example, Files, Chrome, Mi Browser), and activate the switch.
Download the file to the device|Check integrity APK (size, hash)|Open the security settings|Give permission to the desired application|Restart your phone (recommended)-->
Important! On some devices (e.g. Poco F2 Pro with MIUI 12.5), a reboot is required after the resolution is turned on, otherwise the system will continue to block the installation.
โโโ
Hidden Methods: How to Enable Unknown Sources When There Is No Option
If there is no unlock item in the security menu, it can mean one of three:
- You have a Chinese firmware without a tied Mi Account.
- The system hides the option because of regional policies (e.g., on devices for India).
- MIUI has failed and the settings are not displayed.
In such cases, one of the alternative ways will help:
Method 1: Mi Account (for Chinese firmware)
- ๐ฑ Sign in to Mi Account in the settings (Accounts โ Mi Account).
- ๐ Reset the device.
- ๐ Check the security menu - the option should appear.
Method 2: Through ADB (Universal)
If the option is hidden or blocked, you can enable it via USB debugging:
- Activate Developer Mode (7 taps according to the MIUI version in Settings โ About Phone).
- Enable USB debugging in Settings โ Additional โ For developers.
- Connect your phone to your PC and execute the command: adb shell settings put global install_non_market_apps 1
Method 3: Through a Third-Party File Manager
Some managers (such as Solid Explorer or FX File Explorer) have a built-in installation permission request feature. Try opening an APK through such an application - the system can automatically prompt you to enable unknown sources.
What to do if ADB is not working?
โโโ
Table: Compatibility of methods with popular Xiaomi models
Not all methods work the same on different devices, and the table below shows the proven combinations for popular models with MIUI 12/12.5:
| Model of the device | MIUI version | Official way | ADB-team | Mi Account | Notes |
|---|---|---|---|---|---|
| Redmi Note 9 Pro | 12.0.3 (Global) | โ It's working. | โ It's working. | โ Don't. | Option in Passwords & Security |
| Mi 10T / 10T Pro | 12.5.2 (EEA) | โ It's working. | โ It's working. | โ Don't. | Reboot is required after switching on |
| Poco X3 NFC | 12.0.8 (Global) | โ ๏ธ Hidden | โ It's working. | โ Don't. | The option appears after the first failure of the installation |
| Mi 11 Ultra | 12.5.15 (China) | โ No. | โ It's working. | โ Required. | Without a Mi Account tied, the option is inactive. |
| Redmi 9A | 12.0.1 (India) | โ It's working. | โ Locked down. | โ Don't. | ADB banned by regional politics |
If your model isnโt in the table, try the universal method through ADB โ it works on 90% of devices with MIUI 12.
โโโ
Frequent mistakes and how to fix them
Even after you turn on the unknown sources, the APK installation can end up in error, and here are the most common problems and solutions.
Error: โApp not installedโ (App not installed)
- ๐ Reason 1: A corrupted APK- file. Check its hash (e.g., via Hash Droid) or download it again.
- ๐ Reason 2: Conflict with an already installed application. Remove the old version via Settings โ Apps.
- ๐ฑ Reason 3: Incompatible architecture. Make sure APK is designed for arm64 (most modern Xiaomi).
Error: Parse error (Package analysis error)
This means that the system cannot recognize the file as a correct APK.
- ๐ง Rename the file by removing the extra characters (e.g., from app_v2.1(mod.apk to app.apk).
- ๐ Try opening a file through another installer (e.g., SAI โ Split APK Installer for batch APK).
- ๐ฅ๏ธ If APK is downloaded from a PC, check the extension โ sometimes files are saved as.apk.zip.
Error: "Blocked by Play Protect"
Google Play Protect can block installation even after unlocking in MIUI to disable the check:
- Open the Google Play Store โ Menu โ Play Protect
- Turn off the option to scan the device for threats.
- Reboot the phone.
๐ก
If the APK still doesn't install, try turning on Airplane Mode before installing it, which will disable Play Protect checks and some MIUI background processes that may block the process.
โโโ
Security: risks of installing APKs from unknown sources
Enabling this option opens up potential vulnerabilities, and here are the real risks you may face:
- ๐ต๏ธ Spyware: Modified APK (e.g., hacked games) may contain keyloggers or Troyjans transmitting data to remote servers.
- ๐ธ Phishing: Fake applications of banks or payment systems (such as fake SberBank Online) steal usernames and passwords.
- ๐ฑ Root exploits: Some APK exploit vulnerabilities in MIUI to obtain root rights without your knowledge.
- ๐ Hidden Mining: Applications can use the phoneโs resources to mine cryptocurrency (especially for Poco F1 and other devices with powerful processors).
How to minimize the risks:
- Download APK only from trusted sources: APKMirror, official developer sites.
- Before installing, check the hash of the file (for example, via VirusTotal).
- Use Mi Security to scan the file before installing (enable Scan installed applications in security settings).
- Once installed, disable permission for unknown sources.
โ ๏ธ Warning: On Chinese firmware MIUI 12, some APK (e.g., Google Services) may permanently block access to Mi Account when trying to install.This is due to Xiaomi's policy against "uncertified" modifications. If your account is important (e.g., linked to Mi Cloud), avoid installing system APK.
โโโ
Alternative ways to install APKs without including unknown sources
If unlocking is not possible for some reason, there are workarounds:
Method 1: Google Play (if the app is in the store)
Sometimes the app is available on Google Play, but it doesn't show up in your region.
- Use a VPN (like ProtonVPN) to connect to the country where the app is available.
- Open Google Play and find the app you want from a direct link (e.g. https://play.google.com/store/apps/details?id=com.example.app).
- Set it up in the standard way.
Method 2: Mi App Store (for Chinese firmware)
The Chinese versions of MIUI have their own Mi App Store(s), where you can find many apps that are not available on Google Play.
- ๐ Set regional settings for China (Settings โ Additional โ Language and Region).
- ๐ Find the application you want through search (use a translator for titles).
- ๐ฅ Download and install - restrictions on unknown sources do not apply.
Method 3: Through the Web version of the application (PWA)
Many services (e.g. Twitter, Spotify) have progressive web applications (PWAs) that can be installed as regular programs:
- Open the site in Chrome.
- Press โฎ โ Install the application.
- Confirm the installation โ this will create a shortcut on the desktop without the need for APK.
๐ก
If you need one particular app (like Netflix with modified bitrate), try finding it in XAPK format and installing it via SAI. This method often bypasses the limitations of MIUI, as it uses an alternative installer.
โโโ