Why Xiaomi is blocking installations from unknown sources and when to turn it off
Xiaomi smartphones based on firmware MIUI The default is to prevent the installation of applications from sources other than Google Play Market or Mi App Store, a security measure designed to protect users from malware, viruses and phishing, but sometimes it is necessary to temporarily or permanently disable this restriction, for example, to install the device. APK-files from trusted sources, beta versions of applications or specialized software not available in official stores.
It is important to understand that disabling protection does not mean that the device is automatically vulnerable. Modern versions of MIUI 12/13/14 implement a flexible permission system: you can allow installation from unknown sources selectively - only for specific applications (for example, a browser or a file manager), without opening access to all programs. This reduces risks, but requires careful monitoring of the sources of downloaded files.
In this article, we will discuss:
- π How to completely disable installation from unknown sources on Xiaomi (all models)
- βοΈ How to configure exceptions for individual applications (browser, file manager, etc.)
- β οΈ Risks and precautions when disabling protection
- π± Features for different versions MIUI (11-14)
- π How to return security settings to their original state
Step-by-step: how to disable installation from unknown sources on Xiaomi
The procedure differs depending on the version of MIUI, but the overall algorithm is maintained. Below is a universal instruction, relevant to most models of Xiaomi, Redmi and POCO (including Redmi Note 12, Xiaomi 13, POCO X5, etc.).
If you use MIUI 14 or later, the path to settings may be slightly different. For older versions (such as MIUI 10), some menu items may be called differently, as we will explain in a separate section.
βοΈ Preparation for disabling protection
- Open the Settings (βοΈ) on your smartphone.
- Go to the Appendix section β Application management.
- At the top of the screen, select the Special Access tab.
- Find Installation from unknown sources (in some versions β Install Unknown Applications).
- Select the application you plan to install APKs through (such as Chrome, Files, or Mi Browser).
- Activate the switch Allow installation from this source. Confirm action in the dialog box.
If you want to completely disable source verification for all applications, this method is not going to work, it only works for selective resolution. To deactivate protection globally, you need to use developer mode or ADB-Teams (about this in the next section).
How to disable Source Checking Globally (for all applications)
By default, Xiaomi does not provide the option of completely disabling protection from unknown sources through the standard menu.
- Developer mode (requires activation)
- With help. ADB-Teams (for experienced users)
Let us examine both methods in detail.
Method 1: Using the Developer Mode
- Activate Developer Mode: Go to Settings β About Phone. Click 7 times in a row on MIUI Version. Enter password/pattern lock if required.
Back to Settings β Additionally. β For developers.
Find the USB debugging option and activate it.
Connect the smartphone to the PC, confirm the debugging permission.
Open the command line (Windows) or terminal (macOS/Linux) and execute the command:
adb shell settings put global install_non_market_apps 1Method 2: ADB-crew
If the first method didnβt work, try the alternative command:
adb shell settings put secure install_non_market_apps 1Note: After you execute the commands, restart the device. To return the settings to the original state, replace the commands with 1 by 0.
What if the ADB does not recognize the device?
Features for different versions of MIUI: from 11 to 14
MIUI is updated regularly, and the path to security settings may change, and the table below shows the current paths for popular firmware versions.
| MIUI version | The path to settings | Features |
|---|---|---|
| MIUI 14 | Settings β Applications β Application Management β Special Accesses β Installation from Unknown Sources | APK certificate verification is added. SMS confirmation is required when first enabled (on some models). |
| MIUI 12/13 | Settings β Applications β Permissions β Installation of unknown applications | Version 12.5+ blocks the installation of the APK with the damaged signature. |
| MIUI 11 | Settings β Privacy β Special Permits β Installation of Unknown Applications | There is no division by application β the resolution is global. Supports Xiaomi Redmi Note 8/9, Mi 9/10. |
| MIUI 10 | Settings β Additional β Privacy β Installation from unknown sources | Older models (Redmi 5/6, Mi A1/A2) may require manually enabling the Unknown Sources option in the security settings. |
If your version of MIUI is not listed in the table, search by settings (the magnifier icon in the upper right corner) and enter the "Install unknowns" query.
π‘
On Android One models (e.g. Xiaomi Mi A3), the path to settings is consistent with standard Android: Settings β Apps and notifications β Special Access β Install unknown apps.
The risks of disabling protection and how to minimize them
Disabling the source check opens access to the installation of any APK-According to Kaspersky, in 2023, more than 30% of Android malware was spread through third-party sources:
- π¦ Viruses and Trojans: Files may contain spyware, mining scripts, or ransomware.
- π΅οΈ Data theft: Some APK collect logins, passwords, bank card data.
- π± Unstable operation: Unoptimized applications can cause system failures.
- π« Blocking Mi Account: Installation of pirated software can lead to a ban in the ecosystem Xiaomi.
To reduce the risks, follow the rules:
- π Download. APK only from verified sources: APKMirror, official developer sites.
- π‘οΈ Use an antivirus (such as Dr.Web or Malwarebytes) to scan files before installing.
- π Check the permissions of the application: if the messenger requests access to the SMS Geolocation or geolocation is suspicious.
- π Update regularly MIUI β New versions of the vulnerability are closed.
β οΈ Attention! On bootloader devices, the risk of infection is higher. If you've installed custom firmware, use Magisk to control application permissions.
How to return security settings to their original state
If you temporarily disabled the protection to install the application, it is recommended to return the settings after the procedure is completed.
- Go to Settings β Applications β Application Management β Special Accesses β Installation from Unknown Sources.
- Select an app that you have previously allowed to install (e.g. Chrome).
- Deactivate the switch Allow installation from this source.
For full reset of protection (if used) ADB-team):
adb shell settings put global install_non_market_apps 0
adb shell settings put secure install_non_market_apps 0Once you've done the commands, restart the device. To make sure that the protection is on, try installing any one of them. APK-File β the system must block the process with a notification βInstallation is blockedΒ».
π‘
Even after disabling permissions for individual applications, MIUI keeps a log of the APKs installed. To completely remove traces, use the Clear Data function in the application settings.
Frequent mistakes and their solutions
When you turn off security, you often have problems, and let's look at typical situations and how to fix them.
Error: βInstallation blocked by device administratorβ
Reason: Enterprise policy is activated on the device (for example, through Microsoft Intune or Mi Enterprise).
Decision:
- Go to Settings β Passwords and Security β Device Administrators.
- Disable all enterprise applications (unless they are critical to the job).
- Reboot your smartphone.
Error: βDevice memory is protectedβ when installing APK
Reason: The file is downloaded to a secure folder (Safe Folder in MIUI) or to a removable restricted card.
Decision:
- Move it. APK-file to internal memory (for example, in the Download folder).
- Turn off Safe Folder in Settings β Privacy β Safe Folder.
- If you use a memory card, format it as an internal storage.
Error: "Application not installed" after disabling protection
Causes and solutions:
| Reason. | Decision |
|---|---|
| Damaged. APK-file | Check the checksum (MD5) of the file or download it again. |
| Incompatibility with the Android version | Make sure that APK supports your version of Android (see Settings β About Phone β Android Version). |
| Conflict with existing application | Remove the previous version of the program through Settings β Apps. |
β οΈ Attention, if after installation APK The device starts to slow down or overheat, immediately remove the application and scan the system with antivirus. Some malware masquerades as legitimate (for example, fake Google Play Services).