How to Allow Downloads from Unknown Sources on Xiaomi: The Complete Guide

Why Xiaomi is blocking APK installation from unknown sources

Xiaomi, Redmi and POCO MIUI-based smartphones by default prohibit the installation of applications (.apk) from third-party sources โ€” not from Google Play or Mi App Store. This is not a whim of the manufacturer, but part of a multi-level security system that protects the device from:

๐Ÿ”น Malware โ€“ Trojans, spies, and viruses are often spread through fake APK-files (such as hacked versions of popular games).

๐Ÿ”น Phishing โ€“ scammers can mask malicious files as legitimate applications (for example, WhatsApp_Pro.apk).

๐Ÿ”น License Violations โ€“ Pirated versions of programs often contain hidden mining scripts or advertising modules.

However, the lock creates inconvenience for experienced users who want to:

  • ๐Ÿ“ฑ Install beta versions of apps (such as Telegram X or WhatsApp Business before the official release).
  • ๐ŸŽฎ Download mods for games (e.g. Genshin Impact with improved graphics).
  • ๐Ÿ”ง Use of specialized software (for example, ADB, Magisk or Custom ROM).
  • ๐ŸŒ Install regionally blocked services (e.g. Google Pay in non-supported countries).

In this article, we have 3 proven ways to unlock, taking into account the features of MIUI 14/15 and Android 13/14, as well as instructions for restoring security after installing the APK.

๐Ÿ“Š Why you need to allow installation APK?
Installation of mods for games
Beta versions of applications
Custom ROM or Magisk
Regionally Blocked Services
Other

The safest method is to selectively unlock only those programs through which you plan to install APK, such as a browser, file manager or Telegram.

๐Ÿ“Œ Step-by-step instruction:

  1. Download. APK-file and save it in the device memory (for example, in the Downloads folder).
  2. Open any file manager (e.g., Mi File Manager or Solid Explorer).
  3. Find the downloaded.apk and tap it, and the system will say, "Installation locked."
  4. Click "Settings" in the pop-up window - the Special Access menu will open โ†’ Install unknown applications.
  5. Select the application you tried to install APKs through (e.g. Chrome or Files by Google).
  6. Activate the "Allow installation from this source" switch.

โš ๏ธ Attention: After installation of the required APK Return the switch to off to close the potential vulnerability. MIUI 15 System automatically resets permission after 24 hours.

โ˜‘๏ธ Preparation for safe installation APK

Done: 0 / 4

Method 2: Global Unlocking through MIUI Settings

If you need to install APKs from multiple sources frequently, you can disable the lock completely, which works on all Xiaomi, Redmi and POCO devices with MIUI 12-15.

๐Ÿ”ง How to turn it on:

  1. Go to Settings โ†’ Applications โ†’ Special Access.
  2. Select Install Unknown Applications.
  3. Switch to "MIUI Settings" (or "Security Settings" on older versions).
  4. Activate the "Allow installation from unknown sources" switch.

โš ๏ธ Note: This method opens the device to attack through:

  • ๐Ÿ“ง Included in letters (e.g, Order_Confirmation.apk scammer").
  • ๐Ÿ’ฌ Files in messengers (in Telegram or WhatsApp can come malicious) APK under-renewal").
  • ๐ŸŒ Browser autoloads (some sites automatically download malicious files).

๐Ÿ”น Recommendation: After installing the desired applications, return the settings to the original state.

What to do if the item "Install unknown applications" is not available?
On some firmware (for example, MIUI Global POCO F5) This item may be hidden: 1. Install. ADB on a PC and plug in the phone. 2. Adb shell settings put global settings install_non_market_apps 1 3. Reset the device.

Method 3: Use ADB (for advanced users)

If standard methods donโ€™t work (e.g., on Xiaomi 13 Ultra with Android 14), you can unlock the installation via Android Debug Bridge (ADB).

  • ๐Ÿ“ฑ Devices with a locked boot loader (for example, Redmi Note 12 Pro)+).
  • ๐Ÿ”’ Security-enhanced firmware (e.g, MIUI EU).
  • ๐Ÿ› ๏ธ Situations when settings MIUI dropped off after the update.

๐Ÿ› ๏ธ Instructions:

  1. Download ADB Tools on PC.
  2. Turn on USB Debugging on your phone: Settings โ†’ About Phone โ†’ MIUI version (tap 7 times to activate developer mode), then Settings โ†’ Additional โ†’ Developers โ†’ Debugging over USB.
  3. Connect your phone to your PC and do in cmd:
adb devices


adb shell settings put global install_non_market_apps 1




adb shell settings put secure install_non_market_apps 1

โš ๏ธ Attention: After completing the commands, restart the device:

adb shell pm install -r /path/to/your/app.apk

1. Install Mi USB Driver drivers.

2. switch the connection mode from "Charging" to "Transfer of files".

3. Enable Debugging by USB (security parameters in the developer settings.-->

Table: Method compatibility with MIUI and Android versions

MethodMIUI 12/13MIUI 14MIUI 15 (Android 14)Need an ADB?
Permission for a specific applicationโœ… Yes.โœ… Yes.โœ… Yeah (reset in 24 hours)โŒ No.
Global Unlocking in Settingsโœ… Yes.โœ… Yes.โš ๏ธ Partially (hidden in Security Settings)โŒ No.
ADB-teamโœ… Yes.โœ… Yes.โœ… Yes (recommended)โœ… Yes.
Editing by build.propโš ๏ธ The risk of brickโš ๏ธ The risk of brickโŒ No (core-level locking)โœ… Yes.

How to check APK pre-installing viruses

Even after the installation is unlocked, each APK-You need to check the file before opening it. Here are 4 reliable ways to do this:

๐Ÿ” 1. Online scanners:

  • ๐ŸŒ VirusTotal โ€“ download the file and wait for the analysis of 70+ antivirus.
  • ๐Ÿ›ก๏ธ APKCombo Analyzer โ€“ checks permits and certificates.

๐Ÿ” 2. Local antiviruses:

  • ๐Ÿ“ฑ Malwarebytes (free version scans) APK before installation).
  • ๐Ÿ“ฑ Bitdefender Mobile Security (Detects New Threats).

๐Ÿ” Manual inspection:

  • ๐Ÿ“„ Open up. APK through an archiver (such as ZArchiver) and check the file AndroidManifest.xml for suspicious permits (e.g, READ_SMS play).
  • ๐Ÿ”— Compare. SHA-1 hash file with official on the developer's website.

โš ๏ธ Attention: If APK request permissions that are not in line with its functionality (for example, ACCESSIBILITY_SERVICE For the calculator, do not install it.

๐Ÿ’ก

Even if APK is virus-free, it can contain adver makers (hidden ads) or trackers (data collection).Use AppBrain or Exodus Privacy for analysis.

What to do if the APK is not installed after unlocking

If you have allowed installation from unknown sources, but the file is still not installed, check:

๐Ÿ”ง 1. Android Version and Processor Architecture:

  • ๐Ÿ“ฑ Make sure that APK compatible with your version of Android (for example, the Android 12 app wonโ€™t install on Android 10).
  • ๐Ÿ–ฅ๏ธ Check the processor architecture: arm64-v8a, armeabi-v7a or x86 (find out AIDA64).

๐Ÿ”ง 2 File integrity:

  • ๐Ÿ“ฅ Download again. APK โ€” The file may not have been fully downloaded.
  • ๐Ÿ”„ Check it out. MD5/SHA-1 hash (for example, via Hash Droid).

๐Ÿ”ง 3. Settings MIUI:

  • ๐Ÿ”„ Restart the device โ€“ sometimes MIUI caching.
  • ๐Ÿ› ๏ธ Turn off "Application Check" MIUI" In Settings โ†’ Annexes โ†’ Special access โ†’ Checking applications.

๐Ÿ”ง Installer errors:

  • ๐Ÿ“› If there is a mistake "INSTALL_FAILED_INSUFFICIENT_STORAGE" โ€” Clear the cache in Settings โ†’ Warehouse.
  • ๐Ÿ”‘ If there's a mistake "INSTALL_FAILED_UPDATE_INCOMPATIBLE" โ€” Remove the old version of the application.
How to avoid the "App Not Installed" error
This error often occurs because of: 1. Signature conflict (e.g., trying to install modified signatures) APK top-up). 2. Packet mismatches (e.g. com.whatsapp vs. com.whatsapp.w4b). ๐Ÿ”น Solution: Use the team ADB: adb install -r -t -d /path/to/app.apk Flags: - -r โ€” reinstallation, - -t โ€” allow test packages, - -d โ€” downgrade.

FAQ: Frequent questions about unlocking APK installation

โ“ Can installation be allowed? APK safe?
๐Ÿ”น Yes, if: ๐Ÿ”’ Download files only from trusted sources (APKMirror, official developer sites). ๐Ÿ›ก๏ธ Use real-time antivirus (e.g. Kaspersky Mobile). ๐Ÿ”„ Enable permission only for installation time, then turn off. โš ๏ธ The risk remains if you install modified or pirated versions of your apps.
โ“ Why After Updating MIUI re-blocking APK?
๐Ÿ”น It's a security feature. MIUI โ€” after major updates (e.g., with the MIUI 14 on MIUI (15) the system resets permissions for unknown sources. ๐Ÿ”ง Solution: Repeat the steps from Method 1 or Method 2.
โ“ How to install APK Xiaomi with a blocked bootloader?
๐Ÿ”น On devices with a locked bootloader (for example, Xiaomi) 13T Pro) standard methods work, but: โŒ It is not possible to install Custom Recovery (TWRP) unlockless. โœ… We can use it. ADB Sideload for installation APK Unlocked: Adb install /path/to/app.apk ๐Ÿ”ง System applications (such as Google Camera) may require Magisk or root.
โ“ What applications can be installed from unknown sources?
๐Ÿ”น Safe: ๐Ÿ“ฑ Beta versions of official apps (e.g. YouTube Vanced, Spotify Mod). ๐ŸŽฎ Mods for games (for example, Minecraft) PE textured). ๐Ÿ”ง Utilities for developers (ADB AppControl, Termux). โš ๏ธ Dangerous: ๐Ÿ’ฐ Apps with promises of โ€œearningsโ€ or โ€œfree money". ๐Ÿ“Š Programs for โ€œhackingโ€ social networks or messengers. ๐Ÿ”“ "Patches to circumvent licenses (e.g. Lucky Patcher).
โ“ How to roll back changes if after installation APK phone stopped?
๐Ÿ”น Recovery Steps: Remove the installed application through Settings โ†’ Apps. Clear the system cache: Settings โ†’ Warehouse โ†’ Clear the cache. Check the device for viruses (Malwarebytes or Dr.Web). If the problem persists, reset to factory settings (pre-backup!). ๐Ÿ”ง To remove systemic APK (if it is installed through Magisk or ADB) Use adb shell pm uninstall --user 0 name-pack