How to Enable Unknown Sources on Xiaomi with MIUI 12: All Ways + Error Solving

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:

  1. System โ€“ General setting in the security menu.
  2. Applications โ€“ permission for a specific installer (browser, file manager).
  3. 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.

๐Ÿ“Š What firmware MIUI 12 do you use?
Global (Global)
Chinese (China)
European (EEA)
Indian (India)
other

โ•โ•โ•

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:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Click on the three dots in the top right corner and select Special Access.
  3. 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:

  1. You have a Chinese firmware without a tied Mi Account.
  2. The system hides the option because of regional policies (e.g., on devices for India).
  3. 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:

  1. Activate Developer Mode (7 taps according to the MIUI version in Settings โ†’ About Phone).
  2. Enable USB debugging in Settings โ†’ Additional โ†’ For developers.
  3. 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?
If the ADB command returns a device unauthorized error, check: 1. Connect via USB in File Transfer (not just charging) mode. 2. Always allow a tick from that computer when you first connect. 3. Relevance of drivers ADB on a PC (download the latest version of Platform Tools from Google's site). If the problem persists, try another USB- cable or port.

โ•โ•โ•

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 deviceMIUI versionOfficial wayADB-teamMi AccountNotes
Redmi Note 9 Pro12.0.3 (Global)โœ… It's working.โœ… It's working.โŒ Don't.Option in Passwords & Security
Mi 10T / 10T Pro12.5.2 (EEA)โœ… It's working.โœ… It's working.โŒ Don't.Reboot is required after switching on
Poco X3 NFC12.0.8 (Global)โš ๏ธ Hiddenโœ… It's working.โŒ Don't.The option appears after the first failure of the installation
Mi 11 Ultra12.5.15 (China)โŒ No.โœ… It's working.โœ… Required.Without a Mi Account tied, the option is inactive.
Redmi 9A12.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:

  1. Open the Google Play Store โ†’ Menu โ†’ Play Protect
  2. Turn off the option to scan the device for threats.
  3. 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:

  1. Download APK only from trusted sources: APKMirror, official developer sites.
  2. Before installing, check the hash of the file (for example, via VirusTotal).
  3. Use Mi Security to scan the file before installing (enable Scan installed applications in security settings).
  4. 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.

  1. Use a VPN (like ProtonVPN) to connect to the country where the app is available.
  2. 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).
  3. 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:

  1. Open the site in Chrome.
  2. Press โ‹ฎ โ†’ Install the application.
  3. 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.

โ•โ•โ•

FAQ: Answers to Frequent Questions

โ“ Why After Updating to Update MIUI 12 stopped being installed APKEven though it used to work?
MIUI 12 resets all previously issued installation permissions from unknown sources, and it adds APK signature verification, which blocks some files (especially modified ones) even when the permission is enabled. Solution: Reconfigure permissions and verify APK integrity.
โ“ Can I include unknown sources on Xiaomi without Mi Account?
On global and European firmware, yes, Mi Account is not required. On Chinese versions of MIUI 12 (for example, on Mi 11 for the Chinese market), the option can be hidden or blocked without authorization in the account, in which case only the ADB- command or firmware of the global version will help.
โ“ Why does the installation APK fail to produce the error "MiuiSecurityCenter blocks the installation"?
This means that Mi Security Center (MIUI) blocks the file because of a suspicious signature. Solutions: Disable Installation Check in Settings โ†’ Passwords and Security โ†’ Mi Protect. Rename APK by removing characters like (mod), [cracked]. Set the file via ADB with the command: adb install path/to/file.apk
โ“ How do you check if unknown sources are included for a particular application?
Go to Settings โ†’ Applications โ†’ Application Management โ†’ Special Access โ†’ Install unknown applications. This will be a list of all programs that are allowed to install APK. If the desired application is not available or the switch is turned off, grant permission.
โ“ Can I permanently disable the verification of unknown sources in MIUI 12?
No, it's a system limitation of Android. However, you can automate the process by giving permission to all APK installers (browsers, file manager) in advance, and disabling Mi Protect and Google Play Protect will also help, but it will reduce the overall security of the device.