How to disable installation from unknown sources: the complete guide

Protecting your smartphone from malware is a key challenge for todayโ€™s mobile operating systems. Xiaomiโ€™s MIUI-enabled version offers users flexible security settings, including โ€œInstall from Unknown Sourcesโ€ feature, which allows you to download apps not only from the official Google Play store, but also from third-party.apk files. However, open access to such installations can expose your device to the risk of virus infection or data leakage.

Many Redmi, Poco or Mi users are faced with the need to disable this feature โ€” whether to protect personal data, comply with corporate security policies or simply to prevent unnecessary programs from being accidentally installed. In this article, we will discuss how to properly deactivate installations from unknown sources on different versions of MIUI, what nuances to consider, and what to do if the option does not turn off.

It is important to understand that disabling the installation from unknown sources is not just a switching of one switch. In MIUI, this feature can be tied to specific applications (for example, a browser or a file manager), and its availability depends on the firmware version and smartphone model. If you use a device based on Android 8.0 Oreo and later, the algorithm of actions will differ from the older versions of the system.

Before you start settings, make sure your Xiaomi has the latest version of MIUI installed. This will help avoid bugs and ensure all security features work correctly. If you are not sure about the firmware version, check it in the Settings menu โ†’ About Phone โ†’ MIUI version.

Why you should disable the installation from unknown sources

The main reason for deactivating this feature is malware protection. Applications downloaded from unverified sources can contain viruses, spyware modules or advertising Trojans. Even if you are confident in the security of the.apk file, the risk remains: attackers often disguise malicious code as legitimate programs.

The second important reason is compliance with security policies: Many companies and organizations prohibit the installation of third-party applications on corporate devices, which involves the risk of leakage of confidential data or violation of license agreements, for example, banking applications or remote work systems can block access if the device is allowed to install from unknown sources.

It is also worth considering:

  • ๐Ÿ”„ Automatic updates: Some apps (such as modified versions of instant messengers) can independently download updates from the Internet, bypassing Google Play.
  • ๐Ÿ“ฑ Performance: Background installation of unnecessary programs can slow down the smartphone and consume battery power.
  • ๐Ÿ›ก๏ธ Warranty obligations: some Xiaomi service centers may refuse warranty repairs if the device detects traces of unofficial software installation.

But thereโ€™s a downside: disabling this feature makes it impossible for you to install apps that arenโ€™t available on Google Play (like beta programs or custom software for developers). If you still need to temporarily enable installations from unknown sources, do so knowingly and only for verified files.

๐Ÿ“Š Have you ever installed APK-files on your Xiaomi?
Yeah, regularly.
Yeah, but rarely.
No, never.
I don't know what it is.

Where is the configuration on different versions of MIUI

The location of the Installation from Unknown Sources option depends on the MIUI version and the smartphone model. In older versions (before MIUI 12), this setting was global and was in one place. In new firmware (beginning with MIUI 12.5 and Android 11+), it became tied to specific applications, making it difficult to find.

Below is a table with ways to set up for different versions:

MIUI versionThe path to adjustmentFeatures
MIUI 9โ€“11 (Android 7โ€“9)Settings โ†’ Additional โ†’ Privacy โ†’ Installation from unknown sourcesGlobal switch for all applications
MIUI 12โ€“12.5 (Android 10โ€“11)Settings โ†’ Applications โ†’ Application Management โ†’ [Select App] โ†’ Allow installation from unknown sourcesThe setting is individual for each application (browser, file manager, etc.)
MIUI 13โ€“14 (Android 12โ€“13)Settings โ†’ Applications โ†’ Special access โ†’ Installation of unknown applicationsAdditional safety check at first activation
HyperOS (Android 14)Settings โ†’ Applications โ†’ Application permissions โ†’ Installation of unknown applicationsThe interface is similar to MIUI 14, but with updated resolution descriptions.

If your version of MIUI is not listed in the table, try searching by settings (the magnifier icon in the upper right corner of the Settings menu). Enter the "Install unknowns" request and the system will tell you the current path.

On some models (such as Xiaomi 13 Pro or Redmi Note 12), the path may differ due to customization of the firmware for specific regions. If you do not find the right option, check if it is hidden in the "Developers" section (activated by repeatedly clicking on the MIUI version in the About Phone menu).

Step-by-step instruction for disconnection

Consider a universal algorithm for disabling installations from unknown sources on modern versions of MIUI (relevant to MIUI 12.5+ and HyperOS). If you have old firmware, skip the steps associated with selecting applications - it uses a global switch.

Step 1. Open the security settings

Go to Settings โ†’ Applications โ†’ Special Access (or HyperOS Application Permissions) and it contains all permissions that may affect the security of the device.

Step 2. Find the section "Install Unknown Applications"

In the special permissions list, tap on "Install Unknown Applications" (or similar in name). PIN-code, pattern lock or fingerprint.

Step 3: Select applications to limit

You will see a list of applications that are allowed to install.apk files (e.g. Chrome, Files, Downloads). Tap on each of them and switch the slider to "Off." Note that some system applications (e.g. MIUI Package Installer) may not appear in this list - their settings change separately.

Step 4. Confirm the changes

Once permissions are disabled for all applications, the system can display a warning about possible restrictions. Confirm the action by clicking "OK" or "Confirm".

Special access settings are open | Found section "Install unknown applications" |Disabled permissions for all applications in the list |Versified no warnings about unsafe sources-->

If you can still install.apk files after these steps, check:

  • ๐Ÿ” Availability of updates MIUI (Sometimes bugs are fixed in new versions).
  • ๐Ÿ“Œ Permissions for system applications (e.g. com.android.packageinstaller).
  • ๐Ÿ”ง Google Play Protect settings (can block installation, but does not replace system restrictions).

๐Ÿ’ก

If you often install APK-files, but want to keep security, create a separate user account on your smartphone (c Settings) โ†’ System system โ†’ Users) and allow installation only for it.

What to do if the setting is not turned off

Sometimes users are faced with a situation where the "Installation from unknown sources" switch does not respond to changes or automatically returns to the "On" position.

โš ๏ธ Note: If your device has custom firmware installed (such as LineageOS or Pixel Experience), the system security settings may not work properly. MIUI via Fastboot or MI Flash Tool.

Possible causes and solutions:

  • ๐Ÿ”’ Device administrator: Some applications (e.g., antiviruses or antiviruses) MDM-Enterprise solutions) can block changes to security settings. Check the list of administrators in Settings โ†’ Passwords and security โ†’ Device administrators.
  • ๐Ÿ“ฑ Damaged firmware: If system files are damaged, settings may be reset. Try resetting to factory settings (Settings) โ†’ The phone. โ†’ Resetting settings, pre-saving data.
  • ๐Ÿ› ๏ธ Root access: On root-enabled devices, some system restrictions may be bypassed. Make sure that superuser rights are disabled (e.g. via Magisk).

If the problem persists, try disabling the installation via ADB (for power users):

adb shell settings put global install_non_market_apps 0

This command forcibly prohibits installation from unknown sources at the system level. USB-Debugging (included in Settings) โ†’ The phone. โ†’ Version. MIUI โ†’ 7 times to tap โ†’ Settings for developers โ†’ Debugging by USB).

How to check if the lock is working?
To make sure that the installation from unknown sources is indeed disabled, try downloading any APK-A file (e.g., from APKMirror) and try to install it, the system should show an error: "Installation is blocked. To protect your device, installing applications from unknown sources is prohibited." If the installation passes, the settings are not applied correctly.

Interaction with other security settings

Disabling the installation from unknown sources is only one of the elements of Xiaomiโ€™s protection. For comprehensive security, it is recommended to configure other parameters:

1. Google Play Protect

This is a built-in malware scanner from Google that checks the installed apps to turn it on:

  1. Open the Google Play Store.
  2. Slip on the profile avatar โ†’ Play Protect.
  3. Activate the options โ€œScan your device for threatsโ€ and โ€œImproved malware searchโ€.

2.Block installation via MIUI Optimized Setup

Some Xiaomi devices have a feature "MIUI Optimized Setup (in Settings) โ†’ Special features), which can automatically allow installation from unknown sources to "optimize" the work.

3. Restriction of background activity

Some applications (such as file managers) can download.apk files in the background to avoid this:

  • Go to Settings โ†’ Applications โ†’ Application Management.
  • Select the application (e.g. Files) โ†’ Battery โ†’ Background activity.
  • Set a limit to "Limit background activity."

It is also helpful to regularly check the list of installed applications for suspicious programs, using the built-in โ€œApplication Managerโ€ (Settings โ†’ Apps) or third-party utilities like Malwarebytes.

๐Ÿ’ก

Disabling the installation from unknown sources does not guarantee 100% protection. Always download files only from trusted sources and regularly update your MIUI firmware.

Features for different Xiaomi models

Despite the general logic of MIUI, some Xiaomi models have unique nuances in the security settings.

Redmi Note (e.g. Note 10, Note 11, Note 12)

These devices often have duplication of settings: the option can be in both Special Access and Privacy. If you don't find the switch in one place, check another. Redmi can also have Safe Mode, which temporarily blocks all applications from being installed.

Poco (Poco X3, Poco F4, Poco F5)

Poco series smartphones run on a "lightweight" version MIUI โ€” MIUI for POCO. Here, the path to setup may be called "Installation from external sources." In addition, Poco has the default option "Security Check" enabled. POCO", It's a duplicate of Google Play Protect. You can turn it off in Settings. โ†’ POCO Launcher โ†’ Security.

Mi (Mi 11, Mi 12, Mi 13)

Xiaomiโ€™s flagship models often get updates before others, so the settings interface may differ. For example, in MIUI 14 for the Mi 13 Ultra, the โ€œInstall Unknown Applicationsโ€ option is moved to the โ€œPrivacy โ†’ Additionalโ€ section.

For HyperOS devices (such as Xiaomi 14 or Redmi K70), the algorithm remains similar, but the interface becomes more minimalist, where security settings are combined in one section "Privacy and Security", and the options descriptions are shortened.

If your model is not mentioned in this list, use the universal instructions from the previous sections or check the official Xiaomi documentation for your device.

Frequent Mistakes and How to Avoid Them

When you turn off the installation from unknown sources, users often make errors that cause the function to malfunction, and here are the most common ones:

1. Disconnection for part of applications only

Many people forget that MIUI 12+ has a program-specific setting, for example, you can turn off Chrome permission but leave it for Files, and that.apk will remain possible through the file manager. Solution: check all apps in the Install Unknown Apps list.

2. Ignoring updates

After major MIUI updates, system settings may be reset. If you notice that the option is active again after the update, repeat the shutdown procedure. To avoid this, back up your settings through Settings โ†’ About Phone โ†’ Backup before updating.

3. Use of third-party launchers

Some alternative shells (like Nova Launcher or Lawnchair) may conflict with system security settings. If the option stops working after the launcher change, go back to the standard MIUI Launcher and reset.

โš ๏ธ Note: On devices with an unlocked bootloader, the system security settings may not work stable. If you unlocked the bootloader to install custom firmware, consider re-blocking through the Mi Unlock Tool (this will return factory security settings).

Another common mistake is the confusion between Unknown Sources and Developer Permits. The USB Debugging option (in Developer Settings) does not affect the installation of.apk, but activating it can weaken the device's security, and if you're not using ADB or other developer tools, it's best to keep this option off.

FAQ: Answers to Frequent Questions

Can I disable installations from unknown sources only for individual applications?
Yes, starting with MIUI 12 and Android 10, you can flexibly manage these permissions. For example, allow installation only for Chrome, but block for Files or Telegram. To do this, go to Settings โ†’ Apps โ†’ Special Access โ†’ Install unknown apps and configure each application separately.
Why can I still install APK after I shut down?
This can happen for several reasons: You missed settings for a system application (for example, Package Installer); the device is active root rights or custom restore (TWRP); the installation goes through ADB (for example, the adb install command); Check all points from the instructions and reset if necessary.
How do you temporarily allow the installation of one APK and then block it again?
Do this: Open Settings โ†’ Applications โ†’ Special Access โ†’ Install unknown applications. Enable permission for the application you are going to install.apk (like Files). Install the application you want. Immediately after installation, return the slider to Off. So you minimize the risks by allowing installation only for a short time.
Will this method work on Xiaomi tablets (like Pad 6)?
Yes, the algorithm is similar, but the path to settings may be slightly different. On the Xiaomi Pad 6 with MIUI 14, the option is in Settings โ†’ Apps โ†’ App permissions โ†’ Install unknown applications. The interface is adapted for the big screen, but the functionality is the same.
Can I disable the installation from unknown sources via a computer?
Yeah, but it'll take a lot. ADB (Android Debug Bridge. Connect your smartphone to your PC, activate Debugging by USB Adb shell settings put global settings install_non_market_apps 0 This will force the installation to lock down. 0 on 1. Please note that this requires minimal knowledge of the ADB.