Installing apps from unknown sources on Xiaomi Redmi smartphones is a necessary feature for users who want to install APK-But the manufacturer deliberately limits this capability for security reasons, which often causes confusion. MIUI requires a separate setup for each browser or file manager through which you plan to install applications.
In this article, we will analyze not only the standard way to enable the option, but also the hidden nuances. MIUI 14+, You will learn how to circumvent the limitations of the system, why some of the system is not documented in the official Xiaomi reference. APK-Files are blocked even after unlocking, and how to safely test applications from third-party sources without risking data. 12/13, Redmi 10/11 and flagships of the K series, where the logic of the function may differ.
Why is Xiaomi blocking the installation from unknown sources?
According to Xiaomi Security Report 2023, more than 40% of infections on Android smartphones occur through the installation. APK from unverified sources. MIUI It uses a multi-level security system:
- π Verification of signature APK β blocking files with corrupted or fake digital signatures.
- π‘οΈ Real-time scanner β analysis of application behavior during the first installation.
- π± Application permission binding β permission is only valid for a specific file manager or browser.
Interestingly, on devices with MIUI for the global market (such as the Redmi Note 12 Pro+ 5G), the verification is stricter than on Chinese versions of firmware, due to the requirements of Google Mobile Services (GMS), which obliges manufacturers to tighten control over third-party installations.
β οΈ Note: If you see a warning βInstallation blocked by the device administrator policyβ, this means that the phone is active corporate profile (for example, from the employer) or antivirus application with extended rights. In this case, unlocking unknown sources may require resetting the device.
Standard Enablement Method: Step-by-step instructions for MIUI 12β14
The algorithm of actions depends on the version of MIUI and the model of the smartphone. Below is a universal instruction, relevant for Redmi based on Android 11-14:
- Download. APK-file in the memory of the phone (for example, through the Chrome browser or Xiaomi Browser).
- Open the file manager (Files or Explorer) and find the downloaded file.
- When you try to install, a warning window will appear. Click "Settings" (or "Allow from this source").
- Turn on the switch for the current application (for example, "Allow installation from Files").
- Return to the installation and confirm the action.
Important: the permission is only valid for the specific application through which you install the APK. For example, if you have allowed installation through Chrome, you will have to repeat the procedure when downloading the file via Telegram.
Download the file only from verified sources (APKMirror, APKPure)
Check the hash amount of the file (optional)
Disable VPN (may block signature verification)
Close antivirus applications (Avast, 360 Security)
-->
Hidden Settings: How to Enable Unknown Sources for All Apps
MIUI 13/14 has a global unlock capability, but it's hidden in developer mode, and it works on most Redmi models, including the Redmi K50, Redmi Note 12 Pro and later:
- Activate Developer Mode: Go to Settings β About Phone β MIUI Version and press 7 times in a row.
- Return to the main settings menu and open Additional β for developers.
- Find the option βInstall via USBβ and βDebug over USBβ β turn on both.
- Connect the phone to the PC and execute the command to ADB: adb shell settings put global install_non_market_apps 1
After that, APK installation will be allowed for all applications without additional confirmation, but please note that this method:
- π Resets after resetting settings.
- π‘οΈ This may trigger warnings from Google Play Protect.
- β οΈ Does not work on devices with a locked bootloader (Redmi for the Chinese market).
What if the ADB does not recognize the device?
Features for different Redmi models
The logic of the function may vary depending on the model and regional firmware, and the table below shows the key differences:
| Model | MIUI version | Features of unlocking | Additional action |
|---|---|---|---|
| Redmi Note 12/13 | 14 (Android 13) | Requires confirmation via Mi Account at first installation | Link Xiaomi account to Settings β Account |
| Redmi 10/11 | 12.5β13 | The option is hidden in Settings β Applications β Special access | Enable βInstall Unknown Applicationsβ for each file manager |
| Redmi K50/K60 | 14 (Android 14) | Blocks APK with modified signatures (including patched games) | Use Magisk to bypass the check (requires root) |
| Redmi 9A/9C | 12 (Android 10) | There is no limit on the number of sources | One permit is enough for all managers. |
On devices with MIUI for China (such as the Redmi K40 Pro), it may be necessary to link a phone number to a Mi Account to unlock it, which is due to local cybersecurity laws.
Redmi Note 12/13|Redmi 10/11|Redmi K50/K60|Redmi 9A/9C|Another model-->
Solving Common Errors When Installing APK
Even after the option is turned on, users often encounter errors, and here are the most common problems and solutions:
1. "Can't analyze the package" error
Reasons:
- π Damaged. APK-file (incomplete download).
- π§ Incompatible with the Android version (for example, APK Android 12 on Redmi 9 with Android 10).
- π‘οΈ Block Google Play Protect (disabled in Google Play settings).
Solution: Re-download the file, check compatibility in the APK description, or use APK Extractor to analyze the manifest.
2. Warning: "This application may harm your device"
This error occurs if:
- π΅οΈ APK Contains uncertified signatures (often in modified games).
- π± The device is bound to corporate policy (for example, through Microsoft Intune).
- π The firmware has been updated without resetting settings.
Bypass: Install APK via ADB with the command:
adb install -r -t path/to/file.apkThe -t flag allows you to install an application with a test certificate.
β οΈ Note: If you see an error "INSTALL_FAILED_VERIFICATION_FAILURE" installing ADB, This means that the device has activated system integrity check (for example, on Redmi with a locked bootloader), in which case only unlocking the bootloader or using official sources will help.
How to minimize risks when installing an APK
Installing applications from unknown sources always carries risks.
- π Check the source: download APK only from verified sites (APKMirror, APKPure, official sites of developers).
- π Analyze permissions: Before installing, check what rights the application requests (e.g. access to the app). SMS geolocation without cause - red flag).
- π‘οΈ Use the Sandbox: Apps like Shelter or Island let you run untrusted apps APK isolated.
- π Regularly scan the system: built-in antivirus MIUI (Settings β Security) or Malwarebytes.
For advanced users, you can use XPrivacyLua on root-enabled devices to restrict applications from accessing sensitive data, but this requires unlocking the bootloader, which will void the warranty on most Redmi models.
π‘
Before installing an APK, check its hash amount (SHA-1) with the Hash Droid utility (available on Google Play) to make sure the file has not been modified by malicious hackers.
Alternative ways to install applications without unlocking
If the inclusion of unknown sources is not possible for some reason, consider these methods:
- Through Google Play (if the app is in store): sometimes APK is blocked due to regional restrictions. Use a VPN to change region on Google Play.
- With Aurora Store: This is an alternative client for Google Play that allows you to install apps without a Google account (requires the inclusion of unknown sources for the Aurora Store itself).
- Through PC-Application version: some messengers (e.g. Telegram) allow you to send APK-file-to-device.
- Using the Web Version (PWA): If the application has a web interface (such as Twitter Lite), add it to the home screen via the browser.
For corporate users: if the installation is blocked by company policy, request access to the IT-department or use Work Profile to isolate work and personal data.
π‘
On devices with MIUI 14+, you can temporarily disable APK signature verification via Developer Mode (Disable MIUI Verification), but this reduces overall system security.