How to prohibit Android from installing apps from unknown sources on Xiaomi: the complete guide

Installing apps from unknown sources on Xiaomi smartphones opens the door to potential threats, from malware to phishing to data theft. APK-Bypassing Google Play, a feature that is often used by attackers to spread viruses, and in this article we will discuss how to completely block this ability on devices with a computer. MIUI โ€” From Old Versions to the Latest 2026 Updates.

It's important to understand that the security setting on Xiaomi is different from standard Android because of the proprietary shell. There's no universal switch here, you'll have to dig deeper into the settings menu. We'll show you all the possible ways, from global shutdown to locking for individual browsers, and also tell you what hidden MIUI settings can reset your settings after the system update.

Why it is important to disable the installation from unknown sources

Even if you are confident in the sources APK-Files, risks remain:

  • ๐Ÿฆ  Malware: 63% of mobile viruses spread through third-party APK (Kaspersky data for 2023).
  • ๐Ÿ•ต๏ธ Spyware: Some โ€œpirateโ€ versions of apps contain keyloggers to steal passwords.
  • ๐Ÿ’ธ Financial losses: Trojans can replace payment details in banking applications.
  • ๐Ÿ“ฑ Unstable work: unoptimized APK Often cause overheating and rapid discharge of the battery.

MIUI devices are particularly vulnerable because of the brandโ€™s popularity among users who prefer alternative app stores, and malicious users deliberately create fake APKs for popular services (such as Mi Fit or Xiaomi Community) by masking them as official updates.

โš ๏ธ Warning: On bootloader devices, malware can gain superuser rights even without your knowledge, allowing viruses to enter system partitions where they cannot be removed by standard methods.

Global disable APK installation on all MIUI versions

The standard path for most Xiaomi models (including Redmi, POCO, Black Shark) is:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Slip on the three dots in the upper right corner and select Special Access.
  3. Find Install Unknown Applications (Older versions โ€“ Unknown Sources).
  4. Open each application from the list (browsers, file managers) and move the slider to the position Prohibit.

On MIUI 14 and newer, the interface has changed a bit:

Settings โ†’ Applications โ†’ Application permissions โ†’ Package Installation

Critical detail: Once the system is updated, Xiaomi sometimes resets these settings for standard applications (like Browser or Files).

Browser permissions (Chrome, Mi Browser) are disabled

File Managers (Files, Mi File Explorer)

Settings checked after last MIUI update

Removed saved APK-files from the Download folder-->

Hidden MIUI settings: what prevents a full lock

Even after disabling all visible resolutions, some applications can bypass the restrictions by:

Source of threatHow to block it.Examples of applications
System APKs with Developer RightsRequires the withdrawal of certificates through ADBMi Drop, GetApps
Pre-installed shopsRemove via Settings โ†’ Applications โ†’ RemoveApp Store (for Chinese firmware)
Updates through OTADisconnection in Settings โ†’ About the phone โ†’ System updateUpdater, System Update
ADB-teamBlocking debugging in Settings โ†’ For developersAny applications with rights android.permission.INSTALL_PACKAGES

On devices with Chinese firmware (China ROM), the built-in GetApps store is often found, which ignores standard restrictions.

adb shell pm uninstall --user 0 com.xiaomi.mipicks

โš ๏ธ Attention: Removing system applications can cause the phone to function unstable before executing commands via ADB Backup your data via Mi Cloud or Google Drive.

MIUI Global

MIUI China

MIUI Europe (Xiaomi.eu)

Custom firmware (LineageOS, Pixel Experience, etc.)

I don't know/don't remember/-->

Cases: POCO, Black Shark and old models

The devices of Xiaomi sub-brands have their own nuances:

  • ๐Ÿ“ฑ POCO F1/F2/F3: Use "clean" Android with minimal improvements. Path to settings: Settings โ†’ Annexes and notifications โ†’ Additionally. โ†’ Special access โ†’ Installation of unknown applications.
  • ๐ŸŽฎ Black Shark: Gaming smartphones have a separate Shark Space menu that can ignore system limitations. โ†’ Special facilities โ†’ Shark Space.
  • ๐Ÿ“… Old models (Redmi) 4X, Mi A1): Android. 7-8 The path looks like this: Settings โ†’ Additionally. โ†’ Confidentiality โ†’ Unknown sources (one global switch).

For the POCO X3 Pro and later with MIUI for POCO, the rule is: if you see the words "This application is trying to install an unknown application," then there is a resolution somewhere. Use a search by settings (the magnifier icon at the top) with the request "Install unknowns."

How to Check Hidden Permits Through ADB
Connect your phone to your PC and execute the command: adb shell dumpsys package In the output, look for lines with INSTALL_PACKAGES โ€” This is a list of applications that can be installed. APK. To revoke permission for a specific package (e.g. com.android.browser): adb shell pm revoke com.android.browser android.permission.INSTALL_PACKAGES

What to do if settings are reset after the update

Xiaomi is known for resetting some security options after major updates (MIUI 12 โ†’ MIUI 13) to avoid this:

  1. Before updating, take screenshots of the current permission settings (Install Unknown Applications section).
  2. Use the MacroDroid app to automatically disable permissions after rebooting (root or ADB required).
  3. Turn off automatic updates of system applications in Settings โ†’ The phone. โ†’ Updating the system โ†’ Settings (โš™) โ†’ Auto-update of applications.

If you find that permissions have been reset after the update, check:

  • ๐Ÿ”„ Version MIUI: certain assemblies (e.g, MIUI 14.0.4) contain bugs with access rights.
  • ๐Ÿ“ฆ New system applications: after the update, new items may appear in the list Install packages.
  • ๐Ÿ”’ Developer Mode: If it was enabled, some restrictions can be zeroed out.

1. Hold an empty space on the home screen

2. Select "Widgets" โ†’ "Settings"

3. Drag the label "Install unknown applications" on the desktop-->

Additional security measures for Xiaomi

Full locking of APK installation is only part of the protection.

Mera.How to set upEfficiency
Blocking through Google Play ProtectPlay Store โ†’ Menu โ†’ Play Protect โ†’ Security scannerIdentify 92% of known threats
Limitation of rights for file managersSettings โ†’ Applications โ†’ Files โ†’ PermissionsPrevents access to system folders
Use of alternative browsersInstall Firefox Focus with Download BlockingEliminates Accidental APK Download
Encryption of the deviceSettings โ†’ About the phone โ†’ Encrypt the phoneProtects data when stolen

For corporate users or parents who want to completely block the ability to install third-party applications, Xiaomiโ€™s solution is suitable:

Settings โ†’ Special Opportunities โ†’ Mode for Children

In this mode, all installations are locked at the system level, and only pre-approved applications are available.

๐Ÿ’ก

Even with the APK installation disabled, attackers can exploit vulnerabilities in the browser to download malicious scripts. Update Chrome and WebView regularly through the Play Store.

Frequent Mistakes and How to Avoid Them

Users often face the following problems:

  • ๐Ÿ”„ "Settings reset after rebooting: The culprit is optimization MIUI. Turn it off in Settings. โ†’ Battery โ†’ Optimizing the battery โ†’ Menus (โ‹ฎ) โ†’ Optimization of the system.
  • ๐Ÿ“ฑ "I can't find 'Install Unknown Apps': On some models (Redmi Note 8 Pro) it's hidden.
  • ๐Ÿ”“ "APK Installation despite blocking: Check the rights ADB Adb shell pm list packages -i.
  • ๐Ÿ›  "After removing system applications, the phone is lagging: Restore them via Settings โ†’ Annexes โ†’ Show all applications โ†’ Menus (โ‹ฎ) โ†’ Reset the settings.

If you use custom firmware (Xiaomi.eu, LineageOS), the process may be different. For example, in LineageOS, the path will be:

Settings โ†’ Applications and notifications โ†’ Additional โ†’ Special Access โ†’ Installation of Unknown Applications

โš ๏ธ Warning: On devices with an unlocked bootloader, even a complete installation lock is available. APK does not protect against the firmware of malicious recovery or boot.img Use official unlock methods and avoid suspicious tools like Mi Flash Unlock from third parties.

Can I block APK installation only for certain applications?
Yes, MIUI has customized installation permissions for each application (browsers, file managers), for example, you can disable installations via Chrome, but leave the option for Files (if you only trust local APKs).
Why do APKs reappear after resetting to factory installation permits?
This is a feature of MIUI: when reset, standard permissions for system applications are restored. To avoid this, immediately check the Install Unknown Applications section after reset and disable all unnecessary permissions.
How to check if there is malware on the phone?
Use a combination of tools: Google Play Protect (in the Play Store) Malwarebytes App (scans system folders) ADB: adb shell pm list packages -f | find "suspicious_keyword" Pay attention to applications with rights android.permission.BIND_ACCESSIBILITY_SERVICE โ€” They're often used by Trojans.
Can you permanently remove the ability to install APK on Xiaomi?
Technically yes, but it requires root rights and system file editing: Get root through Magisk. /system/etc/permissions/platform.xml, post- INSTALL_PACKAGES. Warning: This may disrupt system updates and some features MIUI.
What if your child bypasses the lock through the developer mode?
Turn on Child Mode (instruction above) and additionally: Block Settings access via password (Settings โ†’ System โ†’ Settings Lock). Turn off Developer Mode (7 times tap the Build Number, then deactivate the switch). Install Kids Place app for full parental control.