How to Enable Unknown Sources on Xiaomi: Instructions for MIUI 12, 13 and 14

Installing apps from unknown sources on Xiaomi smartphones is a necessary feature for users who want to download APK-files outside of Google Play or the official Mi App Store. MIUI This measure protects against malware, but also limits freedom of action: you can not install beta versions of programs, modified applications or software from independent developers.

In this article, you will find the most current ways to unlock the APK installation on Xiaomi in 2026, including nuances for different versions of MIUI (12 to 14), as well as solutions to typical problems – from the absence of an item on the menu to installation errors.

Why do you need β€œUnknown Sources” on Xiaomi?

By default, MIUI only allows you to install apps from trusted sources: Google Play Market, Mi App Store or pre-approved stores (such as APKMirror via browser).

  • πŸ“± Beta testing: many applications (including system ones from Xiaomi) are distributed in the form of APK tester.
  • πŸ”§ Modified versions: for example, YouTube Vanced, Spotify Premium or patch games.
  • 🌍 Regional restrictions: some programs are not available in your country through official stores.
  • πŸ› οΈ Backup: Restore applications from backup (e.g., via Titanium Backup).

It is important to understand that unlocking unknown sources disables some of the protection of MIUI. Malware can get into the system if you install files from unreliable resources. For example, in 2023, researchers at Kaspersky discovered more than 200 infected APKs masquerading as popular games and utilities for Xiaomi.

⚠️ Attention: If you download APK From torrent trackers or little-known sites, be sure to check files through VirusTotal or Malwarebytes. Even legitimate applications may contain advertising modules or spyware.

Official method: enable via MIUI settings

The easiest and safest method is to activate the option in the settings menu. The instructions are suitable for MIUI 12, 13 and 14, but may vary slightly depending on the model (Redmi Note 12, POCO X5, Xiaomi 13T, etc.).

  1. Open Settings (the gear icon on the main screen).
  2. Go to the Appendix section β†’ Application management.
  3. Select Special Permissions (in some firmwares – Application Permissions).
  4. Slip on Install Unknown Applications.
  5. In the list, select the application you will install APK through (for example, File Manager, Chrome or Xiaomi Browser).
  6. Activate the switch Allow installation from this source.

After that, you can open it. APK-For example, if you have allowed installation for Chrome, the files downloaded through it will be installed without additional confirmation.

β˜‘οΈ Preparation for installation APK

Done: 0 / 4

Note: Some devices (e.g. Redmi 10C with MIUI 13.0.6) may not have Install Unknown Applications. In this case, try the alternative methods described below.

Alternative Incorporation Methods (if the Standard Method Fails to Work)

If your version of MIUI does not have the Unknown Sources option or is blocked (for example, on corporate devices), use one of these methods:

1. via ADB (for advanced users)

The method requires connecting the smartphone to a PC and using Android Debug Bridge (ADB). Suitable for MIUI 14 and later, where some settings are hidden.

adb shell settings put global install_non_market_apps 1

Once you have completed the command, restart the device, which unlocks the APK installation globally, but may not work on all firmware.

2. Through the Developer Mode

Activate Developer Mode (7 times tap the MIUI version in Settings β†’ About Phone), then:

  1. Go to Additional Settings β†’ For developers.
  2. Find the Debugging by USB and turn it on.
  3. Connect your phone to your PC and use it ADB-top-down.

Installation via TWRP (for unlocked bootloader)

If your Xiaomi has custom recovery installed (TWRP), You can sew it up. ZIP-file-unlocking:

  • πŸ“ Download the Magisk module to disable signature verification APK.
  • πŸ”„ Reboot to TWRP and sew ZIP.
  • πŸ”„ Reset the device.

⚠️ Attention: Use TWRP Unlocking the bootloader resets all data and may disqualify warranties. 12S Ultra, Redmi K50 Pro) it also blocks data encryption.

πŸ“Š What method do you use to install? APK?
Official (through settings)
ADB-team
TWRP/Castom firmware
Another way.

Table: Compatibility of methods with MIUI versions

MethodMIUI 12MIUI 13MIUI 14Notes
Standard settingsβœ…βœ…βœ…May not be available on corporate devices
ADB-teamβœ…βœ…βš οΈMIUI 14 requires PIN confirmation
TWRP/Magiskβœ…βœ…βœ…Requires an unlocked bootloader
Reset to factory❌❌❌It does not help if the firmware level restriction

Typical errors and their solutions

Even after you turn on Unknown sources, users are facing problems, and here are the most common ways to fix them:

1. "Installation locked" error

Reason: MIUI blocks installation due to:

  • πŸ”’ Untrusted certificate APK (For example, modified applications).
  • πŸ“± Manufacturer restrictions (on some models for China).
  • πŸ›‘οΈ Antivirus (built-in Mi Security or third-party).

Decision:

  • Turn off Mi Security in the settings.
  • Try installing APKs through another application (e.g. SAF instead of File Manager).
  • Use adb install path/to/file.apk via PC.

2.The "Install" button is inactive

The reason: APK is designed for a different processor architecture (e.g. arm64 instead of arm) or a newer version of Android.

Decision:

  • Check the compatibility of APK on the developer’s website.
  • Download the version for armeabi-v7a (if you have an old Redmi).

3.After the MIUI update, the settings reset

Reason: Updating your firmware can reset permissions for unknown sources.

Decision:

  • Re-enable the option in the settings.
  • Use Magisk to unlock permanently (requires root).
What if the APK is not installed even after all the manipulations?
In rare cases, the problem lies in the damaged cache of the system. Try: 1. Clear the cache in Settings β†’ Warehouse β†’ Clear cache. 2. Delete Package Installer data via Settings β†’ Annexes β†’ All applications β†’ Package installer. 3. Reboot your phone in Safe Mode (hold the switch off button). β†’ "Restart in safe mode”) and repeat installation.

Security: How to minimize risks

Installing apps from unknown sources increases the likelihood of malware infection. Follow these rules to protect your Xiaomi:

  • πŸ” Check the sources: Download APK Only from trusted sites (APKMirror, APKPure, official developer sites).
  • πŸ›‘οΈ Use antivirus: Install Malwarebytes or Bitdefender to scan files before installation.
  • πŸ”„ Update. MIUI: In new versions of the firmware, protection against vulnerabilities is improved (for example, in the case of the MIUI 14 added scanner APK real-time).
  • πŸ“‹ Read permissions: Before installing, check what rights the application requests (e.g. access to the app). SMS geolocation without cause - a sign of a virus).

Additional measure: Back up your data before installing unknown APKs. Use Mi Cloud or Google Drive to save contacts, photos and settings. If infected, you can quickly restore the system.

πŸ’‘

If you install APKs frequently, create a separate user on Android (via Settings β†’ System β†’ Multiplayer) and test the software there.

Frequently asked questions

Can I turn on Unknown Sources on Xiaomi without ADB?
Yes, in most cases, standard MIUI settings are sufficient. Go to Settings β†’ Applications β†’ Special Permissions β†’ Install unknown applications and select the desired application (for example, a browser or file manager). ADB will only be required if the item is missing or blocked.
Why is the APK option not installed after you turn on?
Possible reasons: APK is designed for a different version of Android (check Settings β†’ About Phone). File corrupted (try to download again), Mi Security or third-party antivirus enabled (turn them off temporarily).
How to turn off the β€œInstallation Locked” warning on Xiaomi?
If you are confident in APK security, but MIUI blocks installation, try: Install APK via adb install (requires PC); temporarily disable Mi Security in settings; use an alternative installer, such as SAI (Split APK Installer).
Is it safe to install modified APKs (like YouTube Vanced)?
Modified APKs (YouTube Vanced, Spotify Premium) are virus-free if downloaded from official sources (e.g. vancedapp.com). However: Using such apps may violate service rules (e.g. YouTube may block an account); Updates will have to be installed manually; alternatives are official versions with a subscription or YouTube Premium via promotional codes.
How to return standard security settings after APK installation?
To disable installation from unknown sources: Go to Settings β†’ Applications β†’ Special Permissions β†’ Install unknown applications. Select an application that is allowed to be installed (e.g. Chrome). Turn off the Allow installation switch from that source. This will restore standard MIUI protection.

πŸ’‘

The inclusion of Unknown Sources on Xiaomi is a trade-off between convenience and security: Always assess the risks and use reliable APK sources to avoid infecting the device.