How to disable installation from unknown sources: the complete guide

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

Done: 0 / 4
  1. Open the Settings (βš™οΈ) on your smartphone.
  2. Go to the Appendix section β†’ Application management.
  3. At the top of the screen, select the Special Access tab.
  4. Find Installation from unknown sources (in some versions – Install Unknown Applications).
  5. Select the application you plan to install APKs through (such as Chrome, Files, or Mi Browser).
  6. 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).

πŸ“Š What version? MIUI You're using it?
MIUI 14
MIUI 13
MIUI 12
MIUI 11 or older
I don't know.

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.

  1. Developer mode (requires activation)
  2. With help. ADB-Teams (for experienced users)

Let us examine both methods in detail.

Method 1: Using the Developer Mode

  1. 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 1

Method 2: ADB-crew

If the first method didn’t work, try the alternative command:

adb shell settings put secure install_non_market_apps 1

Note: 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?
Make sure you have Xiaomi drivers installed (download from the official website). USB-Cable (original) Enable the "Allow debugging (charging only)" option in the developer settings and reconnect 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 versionThe path to settingsFeatures
MIUI 14Settings β†’ Applications β†’ Application Management β†’ Special Accesses β†’ Installation from Unknown SourcesAPK certificate verification is added. SMS confirmation is required when first enabled (on some models).
MIUI 12/13Settings β†’ Applications β†’ Permissions β†’ Installation of unknown applicationsVersion 12.5+ blocks the installation of the APK with the damaged signature.
MIUI 11Settings β†’ Privacy β†’ Special Permits β†’ Installation of Unknown ApplicationsThere is no division by application – the resolution is global. Supports Xiaomi Redmi Note 8/9, Mi 9/10.
MIUI 10Settings β†’ Additional β†’ Privacy β†’ Installation from unknown sourcesOlder 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.

  1. Go to Settings β†’ Applications β†’ Application Management β†’ Special Accesses β†’ Installation from Unknown Sources.
  2. Select an app that you have previously allowed to install (e.g. Chrome).
  3. 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 0

Once 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-fileCheck the checksum (MD5) of the file or download it again.
Incompatibility with the Android versionMake sure that APK supports your version of Android (see Settings β†’ About Phone β†’ Android Version).
Conflict with existing applicationRemove 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).

Can I disable the installation from unknown sources without developer mode?
Yes, but only selectively for specific applications (browser, file manager) and completely disabling protection requires ADB or developer rights.
Why did the security settings reset after the MIUI update?
This is standard behavior. After major upgrades (like MIUI 13 to MIUI 14), all permissions are reset to factory permissions, and you have to reconfigure access for the right applications.
How do I know where the application was installed?
Go to Settings β†’ Applications β†’ Application Management, select the desired application and see Source. If it says Unknown, it means it is installed from APK.
Will Google Play Protect work if I turn off source verification?
Google Play Protect continues to scan the device regardless of settings MIUI. However, its effectiveness is reduced if you install it. APK It is recommended to manually run the check in Settings. β†’ Security β†’ Google Play Protect.
Can I turn off the β€œInstallation Locked” warning forever?
No, it's a system limitation of Android. However, you can reduce the number of alerts by adding the app to the exceptions (as described in the first section). Complete removal of notifications is possible only through modification of system files (requires root).