How to enable installation from unknown sources on Xiaomi: all ways

Install applications from unknown sources on Xiaomi, Redmi and smartphones POCO β€” necessary function for users who want to install APK-This may be necessary to test beta versions of programs, use alternative stores like the Aurora Store or install applications that are not available in your region. MIUI 14 and later, the unlock algorithm has changed – now you need to confirm the permission for each individual APK-file, not to switch on the global switch as it used to be.

The procedure seems simple, but many users experience errors like β€œInstallation locked” or β€œUnknown sources disabled.” The reasons may lie in the wrong security settings, MIUI limitations, or even in the features of a particular model (for example, on Xiaomi 13 Pro and Redmi Note 12 the path to the menu is different).

It is important to understand that allowing installation from unknown sources is not just a technical setup, but a security issue. MIUI By default, it blocks such installations to protect users from malware. So before activating the function, make sure that the source is not affected. APK-The file is reliable (for example, the official developer site or a trusted repository like APKMirror).

Why is Xiaomi blocking APK installations from unknown sources?

According to Xiaomi Security Report 2023, more than 30% of infections on Android smartphones occur through the installation of fake or modified APK-file. MIUI Uses several levels of protection:

  • πŸ”’ Application Signature Verification – The system analyzes the digital signature APK before installation.
  • πŸ›‘οΈ Real-time scanner – built-in antivirus Mi Security checks files for threats.
  • πŸ“± Firmware restrictions - on Chinese versions MIUI (For example, for Xiaomi 12S Ultra may require a Mi Account link.

Google also requires manufacturers to restrict installations from unknown sources for Google Mobile Services (GMS) certification. Without this restriction, Xiaomi smartphones could not pre-installe Google Play, YouTube and other services. However, these restrictions do not apply to devices with MIUI firmware for China (without GMS), where the rules may differ.

⚠️ Note: On some models (e.g, POCO F5 If you unlock unknown sources, you may see a notification that says "Device not protected." This is normal behavior, and you can hide it in the notification settings.

Method 1: Standard method through MIUI settings (for global firmware)

This method works for most devices with a global version. MIUI (For example, the Redmi Note 11 Pro+ 5G, Xiaomi 12T) It's good for Android 11-14. MIUI 12–15:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Click on the three dots in the top right corner and select Special Access.
  3. Go to the Installation from unknown sources.
  4. Select the application you will install APK through (such as File Manager or Chrome).
  5. Activate the switch Allow installation from this source.

After that, you can install it. APK-files through the selected application. Please note: MIUI 14+ The permission is valid for only one application. APK via the browser, and try to install through the file manager - the system will again block the installation.

β˜‘οΈ Preparation for installation APK

Done: 0 / 4

On some devices (such as the Xiaomi Pad 6), the path may be slightly different:

Settings β†’ Applications β†’ Permissions β†’ Installation of unknown applications

Method 2: Permission for Chinese firmware (without GMS)

If your smartphone is running the Chinese version of MIUI (e.g. Xiaomi 13 for the domestic market), the standard method may not work.

  1. Link Mi Account to the device (required!).
  2. Go to Settings β†’ My device β†’ All the parameters.
  3. Find the Load Lock (or Installation Limits) item and disable it.
  4. Confirm the action via SMS or password from Mi Account.

Some firmware (e.g., MIUI 13 for Xiaomi 12 Pro) may require an additional step – unlocking the bootloader via fastboot – a risky procedure, as it resets the device to factory settings and can result in a loss of warranty.

What to do if there is no β€œBlocking the download” item?
Some Chinese firmware has this item hidden: 1. Install regional firmware through Mi Flash Tool. 2. Use it. ADB-Adb shell settings put global install_non_market_apps 1 3. Manually edit the file /system/build.prop (requires root rights).

⚠️ Note: On Chinese firmware devices without a Mi Account tied, unlocking unknown sources may not be possible.This restriction is imposed by Xiaomi to combat pirated software.

Method 3: Using ADB to Force Unlock

If standard methods don’t work (e.g., on the POCO X5 Pro with custom firmware), you can use Android Debug Bridge (ADB), which requires a computer and enabled USB debugging.

Instructions:

  1. Connect your smartphone to your PC and enable USB Debugging in Settings β†’ About Phone β†’ MIUI version (click 7 times on the line with the version to unlock the developer menu).
  2. Download ADB Tools and unpack the archive.
  3. Open the command line in the ADB folder and do:
adb devices


adb shell settings put global install_non_market_apps 1




adb shell settings put secure install_non_market_apps 1

Once you have completed the commands, restart the device, which bypasses the system-level limitations of MIUI, but may not work on devices with a locked bootloader (e.g., Redmi K60 with Chinese firmware).

1. Install Mi USB Driver drivers.

2. switch the connection mode from "Charging" to "Transfer of files".

3. Use the original USB-cable (not all cables support data transmission).-->

Errors in APK installation and their solutions

Even after unlocking unknown sources, you may encounter errors, and here are the most common ways to fix them:

Mistake.Reason.Decision
The installation is locked.Installation source not allowedCheck the settings for the file manager/browser
APK damaged.File downloaded incompletely or modifiedPump APK, check the hash amount (MD5)
Application not installedConflict with the existing versionRemove the old app before installation
Lack of memoryPlace taken in /data sectionClear the cache or transfer the files to SD-map

If you see the error "The package conflicts with the existing application", it means that the device already has a version of the program with the same signature.

  • πŸ”„ Remove the current version through Settings β†’ Annexes.
  • πŸ“¦ Use it. APK with a different signature (e.g. split) APK Apps like Google Camera).
  • πŸ”§ Set it through ADB flag-headed -r (Replacement: adb install -r path/to/file.apk

How to install an APK without risk

Allowing installations from unknown sources opens up potential vulnerabilities, and follow these rules to minimize the risks:

  • πŸ›‘οΈ Check the sources - download APK only from official websites (for example, APKMirror, GitHub developer).
  • πŸ” Scan files – use VirusTotal or the built-in Mi Security Scan.
  • πŸ“‹ Read permissions – check before installing what rights the application requests (e.g. access to the app). SMS geolocation without cause - red flag).
  • πŸ”„ Update – Install updates MIUI, Because they often close vulnerabilities.

Be especially careful with modified APKs (such as hacked games or pro versions of paid software) that often contain:

  • πŸ•΅οΈ Spyware – Collecting Data about Your Activities.
  • πŸ’° Advertising viruses – show intrusive advertising.
  • πŸ”“ Backdoors – Remote access to your device.
πŸ“Š Where do you usually download from? APK?
Official website of the developer
APKMirror
Telegram channels
Forums (4PDA, XDA)
Other

⚠️ Note: Root-enabled devices are at higher risk of infection because malware can access system files.If you use Magisk or SuperSU, check your system regularly for suspicious processes through Termux or Root Explorer.

Frequent questions and answers

❓ Why After Updating MIUI re-blocking APK?
Security settings can be reset by a system update or cache reset. Check: Have you changed the path to the Installation menu from unknown sources (in newer versions) MIUI Is the permissions for the file manager/browser reset, is the Guest Profile mode activated (there are additional restrictions on it) If the problem repeats, try resetting the application settings to Settings β†’ System system β†’ Resetting settings β†’ Reset application settings.
❓ Can we determine APK Unlocking Unknown Sources?
Yeah, there are workarounds: πŸ“² Use it. ADB To install: adb install path/to/file.apk 🌐 Install via Google Play (if the app is in store but not available in your area – use it) VPN). πŸ”„ Transform APK Android App Bundle (AAB) But these techniques require technical skills and do not guarantee success on all devices.
❓ Why Xiaomi 13 Ultra doesn’t work in the standard way?
On flagship models (e.g. Xiaomi 13 Ultra, Mix Fold 3), you can activate the "Unauthorized Installation Protection" function to turn it off: Go to Settings β†’ Password and Security β†’ Protection against unauthorized installation. Disable the switch or add the current application in exceptions. Confirm the action through fingerprint / password. If the item is not on the menu, try to update MIUI to the latest version - in new builds this feature has moved to Settings β†’ Privacy.
❓ How to check APK pre-installing viruses?
Use these tools: πŸ” VirusTotal – upload the file to the site and check 70 reports+ antivirus. πŸ›‘οΈ Mi Security Scan – built-in scanner MIUI (Open the file through the File Manager and select Scan"). πŸ“Š APKAnalyser – application for the analysis of the manifesto APK (It shows permits, certificates, activity: πŸ“Œ Permissions – for example, the messenger does not have to request access to the SMS. πŸ“Œ Certificates – signature must match the official (checked through APKSigner). πŸ“Œ File size - if APK Weighs suspiciously low (for example, WhatsApp is 50 MB, and the downloaded file is 5 MB), this is a sign of modification.
❓ What to do if after installation APK application not running?
Possible causes and solutions: Problem Solutions Incompatible with Android Version Check Requirements APK (For example, if you're on Redmi. 9A Android 10 to install APK Android 12, it won't run. Google Services is not available. Install Google Play Services via APKMirror (current for Chinese firmware). MIUI Optimization Disable Optimization in Settings β†’ Special facilities β†’ MIUI Optimization and restart the device. Damaged application data Clear cache and data through Settings β†’ If nothing helps, try installing apps. APK via Safe Mode (press the power button) β†’ "Restarting in Safe Mode").

πŸ’‘

On devices with MIUI 14+, only one application is allowed, and if you download an APK through your browser and try to install it through a file manager, the system will block the installation. Always check which application you have given permission for!