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.
Method 1: Applicable permission (recommended)
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:
- Download. APK-file and save it in the device memory (for example, in the Downloads folder).
- Open any file manager (e.g., Mi File Manager or Solid Explorer).
- Find the downloaded.apk and tap it, and the system will say, "Installation locked."
- Click "Settings" in the pop-up window - the Special Access menu will open โ Install unknown applications.
- Select the application you tried to install APKs through (e.g. Chrome or Files by Google).
- 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
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:
- Go to Settings โ Applications โ Special Access.
- Select Install Unknown Applications.
- Switch to "MIUI Settings" (or "Security Settings" on older versions).
- 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?
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:
- Download ADB Tools on PC.
- 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.
- 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.apk1. 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
| Method | MIUI 12/13 | MIUI 14 | MIUI 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.