How to allow installation from unknown sources on Xiaomi: all the ways and nuances

Installing apps from unknown sources on Xiaomi smartphones is a common necessity for users who want to bypass the limitations of Google Play or test beta versions of programs. However, the MIUI shell (especially in versions 12-14) complicates this process due to the multi-layered security system. Unlike โ€œpureโ€ Android, it requires not only to activate the resolution in settings, but also to confirm the trust of each individual.apk file.

In this article, we will discuss all the current ways to unlock the installation of third-party applications on Xiaomi, Redmi and POCO devices, including nuances for different versions of MIUI (12 to 14). Particular attention will be paid to hidden security settings that the manufacturer does not advertise, but can block the installation even after standard manipulations. Also consider typical errors (for example, โ€œInstallation is blockedโ€) and how to fix them without resetting the phone to factory settings.

Why is Xiaomi blocking the installation from unknown sources?

The manufacturer has a reason to impose these restrictions.

  • ๐Ÿ›ก๏ธ According to statistics from Xiaomi Security Center, 38% of upk files from third-party sources contain potentially dangerous code (2023 data).
  • ๐Ÿ“ฆ Ecosystem Control: The company is promoting its own app store GetApps, where all programs are moderated.
  • ๐Ÿ”„ Compatibility with MIUI: Some apcs may conflict with branded services (e.g. miui.analytics or com.xiaomi.mipicks).
  • ๐Ÿ“ฑ Google Requirements: Manufacturers must restrict installations from unverified sources to certify Android devices.

But these measures often become a barrier to legitimate actions, such as installing modified versions of apps (such as YouTube Vanced), beta testing, or using regionally blocked services. Fortunately, you can get around the restrictions โ€“ you just need to know where to look for the right switches.

๐Ÿ“Š Why you need to allow unknown sources?
Installation of modified applications (YouTube Vanced, Spotify++)
Testing of beta versions of programs
Use of regionally blocked services
Install applications that are not available in Google Play
Other

Method 1: Standard resolution in MIUI settings

This is the basic method that works on most Xiaomi devices with MIUI 12/13/14. Instructions are relevant for models Redmi Note 11/12/13, POCO X4/X5, Xiaomi 12/13/14 and others:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. In the upper right corner, press three dots (โ‹ฎ) and select Special Access.
  3. Go to Install Unknown Applications section.
  4. Select the app youโ€™ll install through (such as File Manager, Chrome or Xiaomi Browser).
  5. Activate the switch Allow installation from this source.

Important: In MIUI 14, the path may be slightly different โ€” sometimes the section is called Installation from unknown sources and is directly in Settings โ†’ Applications without additional submenu. If you do not find an item, search by settings (the magnifier icon at the top of the screen).

โ˜‘๏ธ Preparation for installation APK

Done: 0 / 5

Method 2: Permission for a specific APK-file

Starting with MIUI 13, Xiaomi added an additional layer of protection: even if you allowed installation from unknown sources for the file manager, the system can block a specific up file.

  1. Try to install the Update via the file manager. If you see an Installation Error blocked, click More.
  2. Then, select the window to open the window (or to open the window).
  3. Confirm the action by entering a password / pattern lock (if requested).

If this window does not appear, then the apc is locked at the system level, in which case one of the alternative methods described below will help.

What if the โ€œEnd it Anywayโ€ button is inactive?
This means that the file is marked by the system as potentially dangerous. Solutions: 1. Rename the file (for example, add " safe" to the name). 2. Try installing it through another file manager (for example, Solid Explorer). 3. Connect the phone to your PC and install the adb install name file.apk (developer mode is required).

Method 3: Use of ADB (for power users)

If standard methods donโ€™t work (e.g., on Xiaomi with enterprise firmware or MIUI betas), you can unlock the installation via ADB. This method requires connecting the phone to your computer and the developer mode is enabled.

Instructions:

  1. Turn on Developer Mode: Go to Settings โ†’ About Phone and click on MIUI Version 7 times.
  2. Return to Settings โ†’ Additional โ†’ For developers and activate Debugging over USB.
  3. Connect the phone to the PC, confirm the trust in the computer on the smartphone screen.
  4. Open the command line (Windows) or the terminal (macOS/Linux) Enter: adb shell settings put global install_non_market_apps 1
  5. Reboot the phone.

After this command, the system will allow installation from any source without further confirmation. To return the standard settings, run the same command with 0 instead of 1.

โš ๏ธ Attention: Use ADB Revokes warranty on some Xiaomi models (e.g. Black Shark or Black Shark) POCO F4 GT). Before executing commands, check the manufacturer's policy for your model.

Method 4: Installation with Xiaomi ADB/Fastboot Tools

For users who often install the apk from unknown sources, it is more convenient to use specialized utilities. ADB/Fastboot Tools (available on GitHub) This program automates the unlocking process and allows you to use it:

  • ๐Ÿ”“ Allow installation from unknown sources in one click.
  • ๐Ÿ› ๏ธ Correcting type errors INSTALL_FAILED_INVALID_APK.
  • ๐Ÿ“ฑ Install the app directly via PC without confirmation on the phone.

Instructions for use:

  1. Download and install the utility on the PC.
  2. Connect your phone in Fastboot mode (clip Volume Down + Power when the phone is off).
  3. In the program, select Unlock Bootloader (if required), then Enable Unknown Sources.
  4. Confirm the action on the phone.

The advantage of this method is that it bypasses restrictions even on blocked firmware (for example, on Xiaomi for the Chinese market), but requires an unlocked bootloader, which can lead to a data reset.

Table: Compatibility of methods with MIUI versions

MethodMIUI 12MIUI 13MIUI 14Notes
Standard resolution in settingsโœ…โœ…โœ…May require additional confirmation for each APK
Permission for a specific APKโŒโœ…โœ…Appeared in MIUI 13
ADB-teamโœ…โœ…โœ…It works on all versions, but requires a PC.
Xiaomi ADB Toolsโœ…โœ…โœ…Requires an unlocked bootloader on MIUI 14
Installation via TWRPโœ…โœ…โš ๏ธMIUI 14 can be blocked by anti-rollback

Typical errors and their solutions

Even after unblocking unknown sources, users are faced with errors.

  • ๐Ÿšซ Installation blocked by device administrator: Disable Device Management in security settings or delete corporate profiles (if the phone was issued by the employer).
  • ๐Ÿ”ด INSTALL_FAILED_INVALID_APK: File is corrupted or intended for another processor architecture (ARM/x86). Check the compatibility of the app with your Xiaomi model.
  • ๐Ÿ”’ Failed to analyze the package: Temporary error MIUI. Restart your phone and try again.
  • ๐Ÿ“ฑ Appendix not installed: There is not enough space in the section /data. Clear the cache or remove unnecessary programs.

If the error is repeated, try:

  1. Install the upload via another file manager (e.g. FX File Explorer).
  2. Connect the phone to the PC and install via adb install.
  3. Temporarily disable Mi Protect in the security settings (not recommended for long).

๐Ÿ’ก

Before installing an APK from unknown sources, check its hash amount (MD5/SHA-1) on the developerโ€™s website to help avoid swapping the file with viruses. Use utilities like Hash Droid (available on Google Play) to check.

Security: How to minimize risks

By allowing installation from unknown sources, you take responsibility for the security of the device, and follow these rules to mitigate the risks:

  • ๐Ÿ” Check sources: Download the app only from official developer sites or verified repositories (APKMirror, APKPure).
  • ๐Ÿ›ก๏ธ Use antivirus: Install Malwarebytes or Bitdefender to scan files before installation.
  • ๐Ÿ”„ Update. MIUI: In new versions of firmware, vulnerabilities that are used by malicious appendices are closed.
  • ๐Ÿ“‹ Limit permissions: After installation, check what rights the application requests (c Settings) โ†’ Annexes โ†’ Permits).

Be especially careful with:

  • Modified versions of banking applications (for example, SberBank Online or Tinkoff).
  • Upk that require access to SMS or calls.
  • Files with the.xapk extension (may contain hidden components)

โš ๏ธ Note: On Xiaomi devices with MIUI For the Chinese market (for example, Xiaomi 13 Pro China) ROM) Installation from unknown sources may result in the blocking of Mi Account.This is due to the policy of Xiaomi Cloud, which regards such actions as a potential security breach. If your phone is purchased in China, use global firmware or back up your data before installing the app.

๐Ÿ’ก

The safest way is to temporarily allow installation only for a specific APK (method 2) and then turn off the permission after installation, which reduces the risk of automatic malware installation in the future.

FAQ: Frequent questions about unknown sources on Xiaomi

Can I allow unknown sources on Xiaomi without a computer?
Yes, in most cases, standard MIUI settings (method 1 or 2) are sufficient. The computer is only required if: You have a corporate device with MDM limitations. The firmware is modified (for example, custom software). The system has blocked installation at the kernel level (rarely, but it is found on POCO F5 or Redmi K60 with beta firmware). 90% of users have enough permissions in the phone settings.
Why did unknown sources get blocked again after the MIUI update?
This is a feature of Xiaomi's security policy: After major updates (e.g., from MIUI 13 to MIUI 14), the system resets some permissions. To avoid problems: Before updating, back up the list of authorized sources (you can take a picture of the screen). After updating, re-activate permissions according to the instructions from Method 1. If the settings section is gone, use the system settings search (the magnifying icon at the top).
How to resolve unknown sources on Xiaomi Pad 5 or other tablets?
On Xiaomi tablets (e.g. Pad 5/6), the path to settings may be different: Open Settings โ†’ Apps โ†’ App Management. Select Special Access โ†’ Install Unknown Apps. Allow installation for File Manager and Browser. Tablets may also need to disable Child Mode (if enabled), as it blocks third-party app installs.
What if the application is not installed after permission of unknown sources?
The problem may be: Upk incompatibility: Check if the app supports your Android version and processor architecture (ARM64/ARMv7). Damaged file: Try to download the upk again or check its hash amount. MIUI restrictions: Some system applications (e.g. com.miui.securitycenter) can block installation. Temporarily disable them in Settings โ†’ Apps (not recommended for beginners). If nothing helps, install the upk via ADB (method 3) or use alternative stores like MIUI that bypass the restrictions.
Can unknown sources be allowed on Xiaomi with a blocked bootloader?
Yes, but with reservations: Standard Ways (1 and 2) work on locked devices. ADB (Method 3) is also available, but some commands (e.g., fastboot) won't be executed. Utilities like Xiaomi ADB Tools may require unlocking the bootloader for full functionality. If your goal is to simply install the uploader, the locked bootloader won't be an obstacle. Problems arise only when you try to modify system files.