How to unlock the installer on Xiaomi: all the ways for MIUI 12-14

Installing apps from unknown sources on Xiaomi smartphones is often blocked by security MIUI. This is done to protect against malware, but creates problems if you need to install it. APK-A file outside of Google Play, such as a beta, modified app, or testing program, will be discussed in this article on all the current ways to unlock the installer on Redmi devices, POCO, Black Shark and other Xiaomi lineups, including bypassing new restrictions MIUI 14.

The problem is complicated by the fact that Xiaomi regularly tightens security policy: in the latest versions of the firmware, the standard resolution of “Unknown Sources” may not work, and the system blocks the installation even after it is turned on. We tested all the methods on current models (2022-2026) and identified those that work. ADB — We will also tell you in detail about this.

If you encounter errors like, "Installation blocked by security policy," "Can't analyze the package," or "Application not installed," this guide will help you bypass them. Let's start with the simplest method and gradually move on to advanced solutions for power users.

1. Standard method: permission for unknown sources

The most obvious and safe method is to enable APK installation from external sources via MIUI settings. However, in the latest firmware versions (MIUI 13-14), this method may not work due to additional limitations. Try it first - it may not require further action.

Instructions:

  • 📱 Open the Settings. → Annexes → Application management.
  • 🔍 In the upper right corner, click on three dots and select "Special Access».
  • 🔓 Go to “Install Unknown Applications».
  • 📌 Select the application through which you will install APK (For example, file manager, Chrome or Telegram).
  • 🔄 Activate the switch "Allow installation from this source».

If you block the installation after this, you have additional MIUI restrictions activated on your device, so move on to the following methods. Please note that on some models (for example, Xiaomi 13 Pro or Redmi Note 12 Pro+), this method only works for applications downloaded from Google Play.

📊 What Xiaomi model do you use?
Redmi (Note/K/Number series)
POCO (F/X/M)
Mi (11/12/13)
Black Shark
other

2.Blocking bypass through Developer Mode and MIUI Optimization

MIUI 12-14 has a hidden MIUI Optimization option that blocks APK installation even when the resolution for unknown sources is turned on, and to turn it off, you need to activate the developer mode and make changes to the system settings.

Step-by-step:

  1. Activate the Developer Mode: 🔧 Go to Settings. → The phone. → Version. MIUI. 🔄 Click on the line with the version 7-10 times until the notification “You became a developer” appears!».
  • 📱 Back to Settings → Additionally. → For developers.
  • 🔍 Find a point «MIUI Optimization (can be called Optimization) MIUI» Russian).
  • 🔄 Turn off this setting and restart the device.

Once you restart, try to re-install APK. If it doesn't work, check to see if the MIUI antivirus is blocking the installation (see the next section). Some devices (e.g., POCO F5) may not have this option, so go to the ADB method.

💡

If the option “MIUI Optimization” is not in the developer menu, try manually entering the word “optimization” in the settings search (without quotes).

3. Disable the protection of MIUI Security (antivirus)

The built-in MIUI Security antivirus (or "Protection" in Russian firmware) often blocks APK installation even if all permissions are enabled, it can be temporarily disabled or an exception for the desired file can be added.

How to do this:

  • 🛡️ Open the Security app (shield icon).
  • 🔍 Go to the tab “Scanning” or “Protection».
  • 📁 Click on the three dots in the top right corner and select Settings».
  • 🔄 Disable the options: “Scan installed applications”; “Check out” APK before installation; “Block installation from unknown sources».

If the antivirus still blocks the installation, try adding it. APK-file-in-exclusion:

  1. In the Security app, go to Settings → Exceptions.
  2. Add a path to the folder where the APK is stored (e.g. /storage/emulated/0/Download).
  3. Repeat the installation attempt.

⚠️ Attention: Complete shutdown of antivirus MIUI Security reduces the protection of the device. APK We recommend that you return the settings back.

4. Unlock through ADB (for power users)

If standard methods didn’t work, you can use Android Debug Bridge (ADB), a tool for debugging Android devices, which requires connecting a smartphone to a computer, but works on even the most secure firmware Xiaomi.

What you need:

  • 🖥️ Computer with installed ADB-driver;
  • 📱 USB-cable (preferably original);
  • 🔧 The enabled mode of the developer on the smartphone.

Instructions:

  1. Connect your smartphone to your PC and select the File Transfer mode.
  2. Open the command prompt (cmd on Windows or Terminal on macOS/Linux) in the folder with ADB.
  3. Enter the command to check the connection: Adb devices should appear the name of your device.
  4. Apply permission for installation from unknown sources: adb shell settings put global install_non_market_apps 1
  5. Reboot your smartphone: adb reboot

If the installation is blocked after that, try an alternative command:

adb shell settings put secure install_non_market_apps 1

⚠️ Note: On some devices (e.g. Xiaomi) 12T or Redmi K50) after-use ADB You may need to reset the Security app settings. Go to Settings for this. → Annexes → Application management → Security → Warehouse → Clear the data.

☑️ Preparation for ADB-team

Done: 0 / 4

5. Unlocking the loader and installing a custom recaveri (advanced method)

If none of the previous methods worked, the last resort is to unlock the bootloader and install an alternative recavator (TWRP), which will circumvent all the limitations of MIUI, but has risks:

  • ⚠️ Loss of guarantee;
  • ⚠️ Possible “brick” (inoperability) of the device;
  • ⚠️ The need for manual firmware updates.

Step-by-step process:

  1. Get permission to unlock: 🌐 Go to Mi Unlock and log in to the same Mi Account as you do on your smartphone. 📝 Fill out the application and wait. SMS-Consent (may take up to 72 hours).
  2. Unlock the loader: 📱 Transfer the phone to Fastboot mode (turn off, then press Volume down). + Nutrition). 🖥️ Connect to your PC and start the Mi Unlock Tool. 🔓 Follow the instructions of the program (usually 3-5 attempts are required).

TWRP

  • 📥 Download the current version TWRP For your model from twrp.me.
  • 🖥️ In the command line, run: fastboot flash recovery twrp.img fastboot boot twrp.img

After installing TWRP, you can:

  • 📦 Install any APK limitlessly;
  • 🔄 Switch custom firmware (for example, LineageOS);
  • 🔧 Modifying system files.
Xiaomi modelSupport for unlocking the loaderTWRP AvailabilityRisks.
Redmi Note 11/12Yes (officially)Yes (unofficial builds)Data reset, camera bugs possible
POCO F4/F5Yes.Yes (stable versions)Loss of Widevine L1 (No HD on Netflix)
Xiaomi 13/13 ProYes (since 2023)Limited (requires patches)High risk of a breeze in an error
Black Shark 5Yes.Yes (full support)Minimum risks

⚠️ Note: On devices with a MediaTek processor (e.g., Redmi Note 10 or POCO M4 Pro) unlocking the loader may result in loss IMEI. Before the procedure, save a backup copy of the section NVRAM!

What if the phone does not turn on after unlocking the bootloader?
If the device is stuck on the MI logo or left in the bootloop, try: 1. Go to TWRP (Loud up + Power) and wipe the data. 2. Swipe the original firmware through the Mi Flash Tool in the "clean all" mode. 3. If it does not help, contact the service center indicating that "the problem after the official unlock of the bootloader."

6. Alternative methods: bypass without unlocking

If unlocking the bootloader seems too risky, there are a few workarounds:

Method 1: Installation via Google Play (obfuscated APK)

Some APKs can be converted into an obfuscated format that MIUI perceives as legitimate.

  • 📥 Use the APKCombo service to download APK format XAPK or APKM.
  • 🔄 Set it through SAI (Split APK Installer from Google Play.

Method 2: Using Virtual Space

Applications like Island or Shelter create an isolated environment where you can install APKs without restrictions.

  1. Install Island from Google Play.
  2. Create a new profile and transfer the file manager to it.
  3. Install APKs inside the virtual space.

Method 3: Convert APK to APP Bundle

Some users successfully bypass the lock by converting APK to AAB (Android App Bundle) format using the bundletool tool:

java -jar bundletool.jar build-apks --bundle=app.aab --output=app.apks


java -jar bundletool.jar install-apks --apks=app.apks

Importantly, this method only works for dynamic delivery APKs, and it is not suitable for most applications.

FAQ: Frequent questions about unlocking the installer on Xiaomi

❓ Why is the installation blocked after the Unknown Sources are turned on?
Additional checks are added to MIUI 13-14: MIUI Security antivirus, system optimization (MIUI Optimization), and APK signature server validation. To bypass the lock, you need to disable all these layers of protection (see sections 2 and 3).
❓ Can I unlock the installer without a computer?
Yes, but only on devices with unlocked bootloader. Otherwise, you will need ADB (section 4) or install alternative firmware. Without a PC, you can try: Disable MIUI Optimization (section 2); Use virtual space (section 6.2); Install APK via Google Play in XAPK format.
❓ What to do if the camera stops working after unlocking the bootloader or NFC?
This is a typical problem when installing unofficial firmware or TWRP on new Xiaomi models (such as Xiaomi 12/13 or Redmi Note 12).Solutions: Install a patch for the camera (such as the ANX Camera); Sweep the NFC module through TWRP; Return to stock firmware via the Mi Flash Tool.
❓ How to check if the bootloader is unlocked on my Xiaomi?
Turn off the phone, then press Volume Down + Power to enter Fastboot mode. If the bottom of the screen says "Unlocked" or the open lock icon, the bootloader is unlocked. If not, the lock is closed, and you need to use the Mi Unlock Tool to unlock it.
❓ Whether legal methods with ADB and unlock the loader?
Yes, Xiaomi officially allows the bootloader to be unlocked via Mi Unlock, but warns of loss of warranty. ADB is also legal, as it is a standard Android tool. However, installing pirated software or modified firmware may violate the terms of use.

💡

On devices with MIUI 14, first try disabling MIUI Optimization and antivirus, which solves the problem 70% of the time. Use ADB or unlock the bootloader only if standard methods do not help.