How to lift the ban on installing applications from unknown sources on Xiaomi: the complete guide

Installation of applications from third-party sources (APK-Files on Xiaomi smartphones are often blocked by security MIUI. This is a standard anti-malware measure, but it also creates problems when you need to install an app that is not available on Google Play, whether it’s a beta, a modified client, or specialized software. Unlike “pure” Android, where unlocking takes 2 clicks, on Xiaomi the process is complicated by additional security settings and shell features.

In this article, you will find current ways to unlock for different versions of MIUI (12 to 14), including solutions for cases where the standard switch in the settings does not work or disappears after the update. We will also discuss Xiaomi’s hidden restrictions on installing APKs for specific applications (for example, banking or system) that are not documented in the official help. If you have previously encountered errors like “Installation blocked for security reasons” or “Unknown source: installation is prohibited by the device administrator”, here you will find workarounds.

Why is Xiaomi blocking APK installations from unknown sources?

The ban on installing apps outside of Google Play is a combination of two layers of protection:

  • 🔒 Android restrictions: Google introduced this rule in Android 8.0 Oreo, obliging manufacturers to hide the unlock option behind additional confirmations.
  • 🛡️ Additional protection MIUI: Xiaomi shell adds its own security layer – Virus protection and battery optimization, which can automatically block installation even after unlocking the source.
  • 📱 Policy for Chinese firmware: On devices with global firmware (Global) ROM) The restrictions are milder than those on China. ROM), place APK You may need to have a Mi Account.

It is important to understand that the lock is selective: the system can allow the installation of one. APK-file, but disable another if it:

  • 🔍 Signed with an unverified certificate (e.g. modified versions of applications).
  • 📦 Requires Extended Permits (Access to the Service) SMS, Calls, system settings).
  • 🚫 It is blacklisted by Xiaomi (for example, some emulators or tools for unlocking the bootloader).

⚠️ Attention: On devices with MIUI 14 and later, after unlocking the source, a notification may appear "Install applications from unknown sources increases the risk of virus infection." → Memory. → Cleanup → Settings → Security notifications.

Standard method: unlock through MIUI settings

This is the basic method that works on most Xiaomi devices (including Redmi, POCO, Black Shark) with MIUI 12/13/14. The instructions are relevant for global and European firmware. If you have a Chinese version (China ROM), go to the special section.

Steps to unlock:

  1. Open Settings (the gear icon on the main screen).
  2. Go to the Appendix section → Application management.
  3. Click on the three dots in the top right corner and select Special Access.
  4. Slip on the item Install unknown applications.
  5. In the list, select the application through which you will install APK (For example, file manager, Chrome or Mi Browser).
  6. Activate the switch Allow installation from this source.
  7. Confirm the action with a password/pattern lock or fingerprint.

After that, you can install it. APK-Note that permission is given separately for each source, for example, if you have allowed installation through the File Manager, but you are trying to open it. APK Telegram, the system will block the process again.

Download. APK-a file from a verified source (e.g., APKMirror)

Check the integrity of the file (size, hash amount)

Allow installation for the desired source (see instructions above)

Turn off VPN/proxy (they may interfere with security checks)

Charge your phone at least 30% (to avoid crashes)

-->

Solving problems: if the Unknown Sources switch is inactive or gone

Sometimes users find that the option to unlock gray, is missing from the menu or automatically turns off after a reboot.

  • 📱 Devices with corporate policies (e.g. issued by an employer).
  • 🔧 Smartphones after resetting to factory settings (requires re-authorization in Mi Account).
  • 🛡️ Devices with activated function Protection against accidental touch or Mode for children.

Here's what to do in each case:

Problem.Reason.Decision
The switch is grey and does not press.Device policy is active (for example, through Android Enterprise)Delete your work profile in Settings → Accounts → Delete your profile
The option disappears after the MIUI updateResetting security settings when updatingFollow the steps from the standard method again
Password is required, but it's not there.The device is tied to the previous owner's Mi AccountReset your phone via Fastboot (see section on unlocking the bootloader)
Error: "Installation blocked by administrator"Active function Safe mode or guest modeRestart the device and turn off the mode in the notification curtain

If none of these options worked, check if your device has Mi Cloud Sync activated for security settings. It can automatically restore the APK ban once synced. Disable it in Settings → Xiaomi Account → Mi Cloud → Sync → Security settings.

MIUI 12

MIUI 13

MIUI 14

Another version

I don't know.

-->

Features of unlocking on Chinese firmware (China ROM)

China ROM devices (bought in China or hand-stitched) have additional restrictions, and it is not enough to simply allow installation from unknown sources, the system requires:

  1. Mi Account Links (without it, some APKs are not installed).
  2. Confirmations via SMS or email when you first turn on the option.
  3. Disable the Optimization for China function (if available).

Instructions for China ROM:

  1. Sign in to Mi Account in Settings → Xiaomi Account.
  2. Go to Settings → Additional → Privacy → Special Permissions → Install Unknown Applications.
  3. Select a source (e.g., Browser) and activate the switch.
  4. Confirm the action via SMS or email (the code will come to the linked number / mail).
  5. If the error “Installation is prohibited due to regional restrictions” appears, disable China Optimization in Settings → Region (if the option is available).

⚠️ Note: On some models (Redmi Note 10 Pro, Xiaomi) 11T and newer) with China ROM You may need to unlock the bootloader to install certain APK (This will cause a device to reset, bypass the lock through the ADB (for power users) If standard methods do not work, you can unlock the installation APK Android Debug Bridge via Android (ADB). This method is suitable for: 🔧 Devices with damaged security settings. 📦 Firmware where the option is hidden (for example, on some POCO custom-assembled). 🔒 Corporate phones with policy restrictions. Instructions: Install ADB-Drivers to the computer. Activate Debugging by USB on the phone: Settings → The phone. → Version. MIUI (Tap 7 times to unlock Developer Settings, then Settings → Additionally. → For developers → Debugging by USB. Connect your phone to your PC and execute the command: adb shell settings put global install_non_market_apps 1 To unlock a specific source (e.g. Chrome), use: adb shell cmd appops set com.android.chrome INSTALL_UNKNOWN_SOURCES allow (replace com.android.chrome with the desired application package) After completing the commands, restart the device. ADB Issues a “device unauthorized” error, check the debugging permission on the phone screen (a request will appear when you first connect). 💡If ADB does not recognize the device, try to switch the connection mode USB In the notification curtain from "Charging" to "Transfer of files" (MTP). What to do if APK Sometimes unlocking the source doesn't solve the problem. Here are the typical scenarios and their solutions: 🔴 Parse Error Error: File APK damaged or designed for another processor architecture (ARM/x86). Download the file again from a trusted source (e.g. APKMirror). 🔴 "App not installed" error: Delete the previous version of the application. disable Mi Optimized Battery for this application in Settings → Battery → Battery optimization: Try installing it from another source (e.g, ADB): adb install path/to/file.apk 🔴 Blocked by Play Protect: Turn off Play Protect in the Play Market → Settings → Play Protect. Or install it. APK If the installation is interrupted during the "Application Check" stage, this may be due to the: 🛡️ Active function Safety Check MIUI (switch off in Settings → Memory. → Cleanup → Settings → Security check). 📡 VPN Proxies that block access to Xiaomi’s verification servers. ⏳ Lack of memory in the section /data (Clear the cache in Settings → Memory. → Cleaning. How to check integrity APK before installation? Download the APKShare utility or use the command ADB: adb shell dumpsys package | grep "package applications" Compare hash sum (MD5/SHA-1) downloaded from the official file on the developer's website. For this, use the Hash Droid application or the command on the PC: certutil -hashfile file MD5 Extreme measures: unlocking the bootloader and custom recovery If all of the above methods did not work, there remains a radical solution - unlocking the bootloader (bootloader) and installing custom recovery (TWRP). This will give you full control of the system, but it has risks: ⚠️ Resetting all data (including internal memory). ⚠️ Loss of warranty on some models). ⚠️ Risk of "bricking" device in case of errors. Step-by-step instruction: Get permission to unlock the bootloader through the official Xiaomi website (you will need a tied Mi Account older than the one you need). 7 days). Install Mi Unlock Tool on PC and connect your phone in Fastboot mode (press Power). + Vol Down when the device is off. Unlock the bootloader (the process will take place) 5-10 Set it up. TWRP For your model, through the command: fastboot flash recovery twrp.img fastboot boot twrp.img V TWRP Turn off signature verification APK, Install Disable Force Encryption or edit the file /system/build.prop (adding the line ro.secure=0). After that, you can install any APK, But remember, an unlocked bootloader makes your device vulnerable to attack if you install untested software. 💡Unlocking the bootloader is a last resort, and before using it, try all the other methods and make sure that the problem is not solved by standard methods. FAQ: Frequent questions about unlocking APK installation on Xiaomi Can APK be installed without unlocking Unknown Sources? No, it's technically impossible without hacking the system. However, some older versions of MIUI (up to 11) have a bypass by renaming APK to.zip and unpacking through the archiver, but now this method doesn't work. Why is the option blocked again after updating MIUI? This is a feature of Xiaomi: major system updates (for example, from MIUI 13 to MIUI 14) reset some security settings. The solution is to re-allow APK installation from unknown sources, but now it does not work on the Android Android apps, and pre-instalk for the Android apps, for example, using Xiaomi. Allow installation for these applications in Settings → Special access → Install unknown applications. Download. APK They only go through these stores, they check files for viruses. APK An unlocked bootloader does not reduce security by itself, but opens up the possibility of installing uncertified software. To minimize risks: Install an antivirus (for example, Malwarebytes). Disable installation from unknown sources after use. Regularly check application permissions in Settings → Confidentiality → Permissions Manager. Can I get my warranty back after unlocking the bootloader? On most Xiaomi models (except for the one that is not available) POCO F1/F2 And some flagships, the warranty is saved if you block the bootloader again. Follow the command: fastboot oem lock Make reset to factory settings, however, some service centers may refuse warranty repairs if they find traces of unlocking in the logs.