How to Remove App Installation Permissions from Unknown Sources on Xiaomi: The Complete Guide

Installing apps from unknown sources on Xiaomi smartphones is a feature that can be useful for power users, but also poses a serious security threat. Viruses, spyware and fraudulent programs are often spread through the very same network. APK-If you want to protect your device from the accidental installation of malicious content or restrict access to this feature for other users of the phone (for example, children), it is important to know how to properly disable this permission.

In this article, we will go into detail about all the ways to block installations from unknown sources on different versions of MIUI, from the old to the newest. You will learn how to completely disable APK installation, how to configure exceptions for individual applications, and what to do if the option is not displayed in the menu.

Why you should disable the installation from unknown sources

The main danger of allowing APK installation from third-party sources is the risk of infection of the device. Even if you are confident in the security of the file being downloaded, there are several hidden threats:

  • 🦠 Malware: Many APK contain Trojans, cryptocurrency miners or ransomware that are activated after installation.
  • πŸ•΅οΈ Spyware modules: Some applications collect data about your activity, contacts, or location without your knowledge.
  • πŸ’Έ Fraudulent schemes: Fake applications of banks or payment systems can steal logins and passwords.
  • πŸ”„ Automatic installation: Some viruses download and install additional software on their own, which leads to clogging of the system.

In addition, installation from unknown sources may violate the warranty of Xiaomi if the device was damaged due to malware.In some countries (for example, in the EU), the manufacturer can refuse service if it is proved that the problem arose due to unauthorized manipulation of the system.

⚠️ Attention: On devices with MIUI for the Chinese market (China) ROM) Installation from unknown sources is blocked by default at the system level, and attempts to circumvent this restriction can lead to the blocking of Mi Account or loss of access to branded services.

Method 1: Disconnection through basic security settings

The easiest method is to use a standard settings menu, which works on most Xiaomi devices with MIUI 12 and later, including the Redmi Note 10/11/12, POCO X3/X4/X5, Mi 11/12/13 and others.

  1. Open the Settings app (cog icon).
  2. Go to the Appendix section β†’ Application management.
  3. Click on the three dots in the top right corner and select Special Access.
  4. Slip on the item Install unknown applications.
  5. Select an application (such as the Browser, File Manager, or Google Chrome) for which you want to disallow the installation.
  6. Switch the slider Allow installation from this source to the off position.

Repeat the steps for all applications that are authorized to install APK. Please note that some system utilities (such as Package Installer) may not appear in this list - their settings change in other ways (see the next section).

β˜‘οΈ Verification of the deactivation of the installation APK

Done: 0 / 4

Method 2: Blocking through developer settings (for power users)

If the standard method didn't work, or if you want to block APK installation at the system level, you can use the developer menu, which requires you to pre-enable the developer mode:

  1. Go to Settings. β†’ The phone.
  2. Find the MIUI version line and tap it 7 times in a row until you become a developer!
  3. Return to the main settings menu and open a new section β†’ For developers.
  4. Scroll down and find the USB Debugging option (no need to turn it on, just find it for a guide).
  5. Below is the Installation via USB - disable it.
  6. Also find the option to Check the installation via ADB and set the value to Disable.

These settings will block APK installation not only through file managers, but also through ADB (Android Debug Bridge), which adds an additional layer of protection.

⚠️ Attention: On some firmware MIUI For the Chinese market, check installation through ADB In this case, try to upgrade to the latest version or use alternative methods (see the section on Mi Security).

πŸ“Š What version? MIUI You're using it?
MIUI 12
MIUI 13
MIUI 14
MIUI 15 (HyperOS)
I don't know.

Method 3: Use of the Mi Security App

The proprietary Mi Security app (or Security in Russian firmware) offers additional tools to control application installation, a method that is especially useful if you want to not just ban installation, but completely block access to the app. APK-Instructions:

  1. Open the Security app (shield icon).
  2. Go to the Scanner or Protection tab (depending on version).
  3. Slip the gear icon in the upper right corner to open the settings.
  4. Find the Virus Protection or Application Security section.
  5. Activate the option to block installation from unknown sources.
  6. Also enable APK scanning before installation if this option is available.

Mi Security will automatically block attempts to install APKs from any source other than Google Play, and you will receive a one-time permission notification (if you need to install a trusted app).

Locking methodLevel of protectionRoot rights requiredIt works for China ROM.
Standard settingsMedium.No.Partially.
Developer settingsHigh-pitchedNo.No.
Mi SecurityHigh-pitchedNo.Yes.
ADB-teamMaximumNo.Partially.

Method 4: Blocking through ADB (for advanced users)

If previous methods have failed or you want to guarantee that you will disable the APK installation at the system level, you can use ADB commands. This method does not require root rights, but requires connecting the phone to the computer.

  1. Download and install Platform Tools on your computer.
  2. Enable USB debugging in the developer settings (see previous section).
  3. Connect your phone to your PC and open the command prompt (cmd) in the adb folder.
  4. Enter the command to check the connection: Adb devices should appear the name of your device.
  5. Execute the command to block the installation from unknown sources: adb shell settings put global install_non_market_apps 0
  6. Reset the device.

This command completely disables the ability to install APKs from any source other than Google Play at the system level. To return the installation option, use the same command by replacing 0 with 1.

⚠️ Note: On some devices with MIUI For the Chinese market, this command may not work due to manufacturer restrictions, in which case, try an alternative method using pm: adb shell pm disable-user. --user 0 However, this will disable all app installations, including updates from Google Play.

What if the ADB does not recognize the device?
If the adb device command doesn’t show your phone, try the following steps: 1. Install drivers for Xiaomi from the official website. 2. Check if debugging is enabled by USB In the developer settings. 3. Try another. USB-Connection (preferably original cable). 4. Restart your phone and computer. 5. In some cases, changing the connection mode from Charging to File Transfer helpsΒ».

Frequent problems and their solutions

When you turn off the installation from unknown sources, users often face difficulties, and consider the most common situations and ways to solve them:

  • πŸ” Option not available in settings: On some firmware MIUI The item may be hidden. Try to update the system or use it. ADB. Also check if there is a custom firmware installed (such as LineageOS) where the settings may differ.
  • πŸ”„ Settings reset after rebooting: This is typical for devices with China ROM. The solution is to use Mi Security or ADB-team.
  • πŸ”’ You can’t turn off system applications: Some applications (for example, Package Installer) do not allow you to change the settings. ADB root.
  • πŸ“± The device requests a password when trying to change settings: This means that the phone has Mi Account protection enabled. Enter the password from your Xiaomi account.

If none of these methods worked, check if you have a rights management application (such as App Ops or Shizuku) installed on your device, which can override system settings.

πŸ’‘

If you frequently install APKs but want to minimize risks, use a virtual machine (like VMOS or Shelter) to test unknown applications in an isolated environment without compromising the host system.

Additional security measures

Disabling the installation from unknown sources is only part of the comprehensive protection of the device. To maximize the security of your Xiaomi, we recommend you to follow the following steps:

  • πŸ›‘οΈ Install a reliable antivirus: Apps like Malwarebytes or Bitdefender can help you detect threats, even if they have penetrated the device in another way.
  • πŸ” Enable two-factor authentication for your Mi and Google account, which will prevent unauthorized access to your data.
  • πŸ“¦ Regularly check the installed applications in Settings β†’ Remove suspicious programs and clear the cache.
  • πŸ”„ Update. MIUI Google Play Services, which regularly releases security patches that close vulnerabilities.
  • πŸ“΅ Disable installation from unknown browser sources, even if you don't use them. APK.

Also, check out the settings of Google Play Protect, Android's built-in security system, to activate it:

  1. Open the Google Play Store.
  2. Slip the profile icon in the upper right corner.
  3. Choose Play Protect β†’ Settings.
  4. Enable the device scan for threats.

πŸ’‘

Even if you have completely disabled the installation from unknown sources, regularly check the device for viruses.

FAQ: Answers to Frequent Questions

Can I selectively allow APK installation only for certain applications?
Yes, you can set the permissions for each application separately in MIUI, for example, you can disable the installation through the browser, but leave the option for the file manager. To do this, go to Settings β†’ Applications β†’ Special Access β†’ Install unknown applications. Select the desired application and turn on / disable the slider. However, remember that even trusted file managers (for example, Total Commander) can be vulnerable to attacks.
Why did the MIUI update change the settings?
Major system updates (e.g., with MIUI 13 on MIUI 14) some security settings are reset to default values. This is due to a change in the configuration structure. After updating: Check the Install Unknown Apps section again. Update Mi Security via Google Play. ADB-team.
How to block APK installation, including system application updates?
This will require root or custom recovery rights (e.g., root or custom recovery, TWRP). Instructions: Get root access (e.g., through Magisk) Install Root Explorer or something similar. Go to the folder /system/app/PackageInstaller. Rename the file PackageInstaller.apk in PackageInstaller.bak.Reboot the device. ⚠️ Warning: This will disable all installations, including updates from Google Play. use only if you understand the risks!
Does this work on POCO and Black Shark?
Yes, devices. POCO Black Shark is working on the base. MIUI (or HyperOS in newer models), so all of the methods described are applicable, except for models with custom firmware (for example, POCO Launcher on global versions, where the path to settings may be slightly different. POCO F5 You need to go to Settings. β†’ Annexes β†’ Application management β†’ Menu (three points) β†’ Special access.
What if your child has re-enabled the installation from unknown sources?
If you want to restrict access to security settings, use Parental Controls: Open Settings β†’ Accounts and Sync β†’ Family (or Parental Controls in Mi Security). Create a child profile and link it to your child's account. In profile settings, prevent changes to security settings. Set a password to your phone settings (Settings β†’ System β†’ Settings Lock). You can also use third-party apps such as Google Family Link or Kids Place.