Users of Xiaomi smartphones based on the shell MIUI 11 often face a problem: the system blocks the installation APK-It's a standard security measure, but it prevents you from installing applications from alternative sources, like beta versions of programs that have been modified. APK In this article, we will discuss how to correctly allow installation from unknown sources on devices with a test. MIUI 11, without violating system security.
It is important to understand that MIUI 11 differs from newer shell versions (e.g. MIUI 12/13/14). There is no universal "Allow Installation from Unknown Sources" switch - instead, you have to configure the rights for each browser or file manager separately. We will show all working methods, including bypassing typical errors like "Installation locked" or "Can't open file."
If you're using the Redmi Note 8 Pro, Mi 9T, Poco X3 or any other model on MIUI 11, this will be the right instruction for your device, and if something goes wrong after the changes, there's a section at the end of the article that addresses common problems.
Why is Xiaomi blocking APK installations from unknown sources?
The ban on installing apps outside of Google Play is not a whim of Xiaomi, but a security requirement inherent in Android at the system level.
๐น Malware protection: Kaspersky says more than 30% APK-Third-party files contain potentially dangerous code, from ad viruses to spyware modules. MIUI 11 blocks such default settings to prevent infection of the device.
๐น Compliance with Google's policy.As of 2018, Android 8.0+ Manufacturers are required to limit installation APK Xiaomi has met this requirement, but left a loophole for power users โ the ability to selectively resolve individual applications.
๐น Ecosystem control: The company is interested in users installing software from official sources, such as Google Play or Mi App Store, which reduces the number of support requests due to failures in pirated or modified applications.
However, the blockage creates inconvenience for:
- ๐ฑ Developers testing their applications on real devices;
- ๐ฎ Gamers installing modified versions of games (e.g., with Lucky Patcher);
- ๐ง Advanced users using alternative stores like APKMirror or F-Droid.
โ ๏ธ Warning: By allowing installation from unknown sources, you assume security risks. APK downloaded from a trusted site, it may contain vulnerabilities. Always check the hash file (MD5/SHA-1) Use the antivirus before installation.
Preparation: What to do before changing your settings
Before you start installing the APK, follow a few mandatory steps to avoid errors and failures:
1๏ธโฃ Check the version. MIUI. Make sure that your device is truly MIUI 11, Not a newer version. Go to Settings for that. โ The phone. โ Version. MIUI. If it's written MIUI 12/13/14, Use the instructions for these versions โ they are different.
2๏ธโฃ Download. APK-Before you change the settings, download the installer to the phone's memory. SD-This will reduce the risk of errors in installation.
3๏ธโฃ Update the file manager. If you plan to install APK Through Explorer or Files by Google, update to the latest version on Google Play. Older versions may not support new resolutions.
4๏ธโฃ Check the antivirus. If you have Mi Security or a third-party antivirus installed on your device (like Avast), temporarily disable it. It can block installation even after you have permission in the settings.
Make sure the version MIUI โ 11.x.x|Download APK phone memory (not on the phone) SD-map)|Update the file manager or browser|Disable the antivirus during installation|Check the vacant space (needs to be checked) โฅ200 MB)-->
Method 1: Resolution through security settings (main method)
This is the most reliable and versatile way for MIUI 11. Unlike older versions of Android, there is no global switch here - rights are issued separately for each application that the APK will install.
The instructions are suitable for:
- ๐ Browser (Chrome, Mi Browser, Firefox);
- ๐ File Managers (Files by Google, Solid Explorer);
- ๐ฅ Downloaders (for example, Download Manager).
Steps:
- Open the settings on your Xiaomi.
- Go to the Privacy section โ Special permits.
- Select the Installation item from unknown sources.
- In the list, find the application you will install the APK through (such as Chrome or Explorer) and turn on the switch for it.
- Confirm the action in the window with the warning.
Now we can open it. APK-For example, if you have allowed installation for Chrome, after downloading the files, APK The browser will offer to install it without additional confirmations.
โ ๏ธ Note: If you don't have the right app in the Installation from unknown sources list, it doesn't support this feature. Try using another file manager or browser (e.g. Firefox instead of Mi Browser).
๐ก
If the installation is blocked after permission, try to move it. APK-Download file (sometimes downloaded) MIUI 11 works better with files from standard directories.
Method 2: Use of ADB (for power users)
If the standard method does not work (e.g. due to corporate policy restrictions or modified firmware), you can allow APK installation via ADB (Android Debug Bridge), which requires a connection to a computer but gives you more control.
You'll need:
- ๐ฅ๏ธ A computer with installed Xiaomi drivers and ADB;
- ๐ USB-cable (preferably original);
- ๐ฑ Included debugging by USB phone-on.
Instructions:
- Activate Developer Mode on Xiaomi: Go to Settings โ About Phone and click on MIUI Version 7 times.
- Return to Settings โ Additional โ For developers and enable USB debugging.
- Connect your phone to your PC and confirm your trust in your computer.
- Open the command line (Windows) or the terminal (macOS/Linux) Enter: adb shell settings put global install_non_market_apps 1
- Reset the device.
After that, the system will allow APK installation from any source, but this method may not work on all devices with MIUI 11 due to differences in firmware. If the team did not help, try an alternative option:
adb shell pm install -r -t /path/to/your/app.apk(Replace /path/to/your/app.apk with the actual file path).
| Method | Difficulty | PC required | It works on all devices. |
|---|---|---|---|
| Through security settings | โญ (simple) | โ No. | โ Yes. |
| Through ADB | โญโญโญ (middle-of-the-road) | โ Yes. | โ ๏ธ Partially. |
| TWRP (Castom Recovery) | โญโญโญโญ (difficult) | โ Yes. | โ Yes (but requires unlocking the bootloader) |
Typical errors and their solutions
Even after the installation is authorized, MIUI 11 users often encounter problems, and here are the most common errors and ways to fix them:
๐ซ "The installation is locked":
- ๐น Make sure you have approved the installation for the application you are opening through. APK. For example, if you downloaded a file in Chrome, but you are trying to install it through Explorer, you need to allow permissions for both.
- ๐น Check if it's damaged. APK. Try to download it again or compare the hash (MD5) original.
๐ซ "Can't open the file":
- ๐น Move it. APK Downloads to the root directory of internal memory (for example, /storage/emulated/0/).
- ๐น Try opening a file through another manager (e.g. Solid Explorer instead of a standard Explorer).
๐ซ "Application not installed":
- ๐น Remove the previous version of this application (if it was installed earlier).
- ๐น Enable in Settings โ Annexes โ Application Management Option Install Unknown Applications for the Right Manager.
๐ซ "Packet analysis error":
- ๐น This error often occurs due to incompatibility. APK with the Android version. Check if your device supports the desired version API (See Settings โ The phone. โ Android version).
- ๐น If APK modified (e.g. via Lucky Patcher), try the original version.
What to do if none of the methods work?
How to minimize risks when installing an APK
Allowing installations from unknown sources opens up potential vulnerabilities, and to protect your device, follow these rules:
๐ก๏ธ Check the source. APK:
- ๐น Download files only from trusted sites: APKMirror, APKPure, official sites of developers.
- ๐น Avoid torrent trackers and file sharing sites, as there is a high probability of encountering modified or infected files.
๐ก๏ธ Use an antivirus:
- ๐น Scan before installation APK VirusTotal or MetaDefender.
- ๐น Install a light antivirus like Malwarebytes on your phone (it doesnโt overload the system, unlike Mi Security).
๐ก๏ธ Set up application rights:
- ๐น After installation APK Limit your rights to the Settings โ Annexes โ Application management. Disable access to contacts, SMS geolocation if not necessary for the program.
- ๐น Regularly check the list of installed applications for suspicious (Settings) โ Annexes โ All applications).
๐ก๏ธ Create a backup copy:
- ๐น Before installing a stranger APK Backup your important data via Mi Cloud or Google Drive.
- ๐น Use it. TWRP (If installed, to create a full system snapshot (nandroid backup).
โ ๏ธ Attention: If after installation APK Your phone starts to slow down, overheat or show unusual ads, immediately delete the app and check the system for viruses. APK (For example, modified versions of WhatsApp or Instagram).
Once a week or more |1-2 times a month |Only as a last resort | Never set |I find it difficult to answer-->
Alternative ways to install applications without permission from unknown sources
If you don't want to change your security settings, but you need to install an APK, there are workarounds. They're less versatile, but sometimes they work:
๐ App Bundles (Android App Bundle):
๐ Installation through Mi App Store:
๐ Using Sideloading through PC:
๐ Web versions of applications:
- ๐น Many services (e.g. Instagram, Twitter, Photoshop Express) have full-fledged web versions. Try using them in a browser with a "Psych-only" mode".
๐ Cloud services:
- ๐น Some applications (e.g, KDE Connect or Termux) can be installed via F-Droid, an alternative open source store, and does not require permission for unknown sources if installed through its official application.
๐ก
If you only need to install 1-2 applications, it is easier to use ADB or temporarily allow installation for a single file manager.