Xiaomi Mi 9 is the flagship of 2019, which is still relevant thanks to powerful hardware and support for updates. MIUI, When you try to install apps outside of Google Play, the system blocks the installation APK-Files from unknown sources are default, citing security, but sometimes it is necessary: to test beta versions, install modified firmware or use regionally blocked applications.
In this article, we will discuss all possible ways to unlock on the Mi 9, from standard settings to bypassing restrictions through ADB and third-party launchers. We will focus on the nuances of different versions of MIUI (10 to 14), typical errors (for example, βInstallation is lockedβ) and precautions. If you have already tried to enable the option through the settings, but nothing has worked, here you will find alternative solutions.
Why is Xiaomi blocking the installation from unknown sources?
The restriction is not imposed for nothing: MIUI follows Google's security policy, which requires users to be protected from malware. On the Mi 9, the lock works on two levels:
- π System layer: Android by default prohibits installation APK Outside official sources (starting with version 8.0 Oreo).
- π‘οΈ Additional layer MIUI: Xiaomi adds its own checks, especially in Chinese firmware (China) ROM) and global builds with reference to the Mi Account.
The lock is not absolute: it can be bypassed, but the methods depend on the version of MIUI and the type of firmware. For example, in Mi 9 on MIUI 12.5 and later, there was a separate switch for each browser or file manager, and in older versions, one global resolution was enough.
β οΈ Warning: Allowing installation from unknown sources increases the risk of virus infection. APK Always check the hash of the file (for example, through the SHA-256) Download only from official developer sites.
Method 1: Standard resolution via MIUI settings
The easiest method is to use the built-in system options. The instructions are relevant for the Mi 9 on MIUI 10β14 (including Global ROM and China ROM):
- Open Settings β Applications β Application Management.
- Click on the three dots in the top right corner and select Special Access.
- Go to the Installation from unknown sources.
- Select the application you will install the APK through (e.g., Browser, Files, or Mi File Explorer).
- Activate the switch Allow installation from this source.
If you donβt have Install from unknown sources, you have Chinese firmware without Google services, and youβll need to adjust it (see China ROM).
βοΈ Preparation for installation APK
Once activated, try to install APK. If you see an error "Installation locked" - move to the next method.
Method 2: Bypassing a lock through ADB (for power users)
If the standard method didnβt work (for example, due to China ROM restrictions or corporate policies), you can use USB debugging and ADB command.
Step-by-step:
- Turn on Developer Mode on Mi 9: Go to Settings β About Phone. Click 7 times on MIUI until the notification βYouβve become a developerβ appears.
USB debugging
Settings β Additional β For Developers
Connect the phone to the PC, confirm access to debugging on the smartphone screen.
Open the command line (Windows) or terminal (macOS/Linux) and type:
adb shell settings put global install_non_market_apps 1This command will unlock the installation from unknown sources at the system level, and if nothing changes after execution, try an alternative command:
adb shell pm install -r -t /path/to/your/app.apkWhere /path/to/your/app.apk is the path to the file on the device (e.g. /sdcard/Download/app.apk).
π‘
If ADB does not recognize the device, install Xiaomi USB Driver drivers and check the connection in File Transfer (MTP) mode.
Method 3: Use of third-party launchers (for China ROM)
On China ROM, Xiaomi completely removes the installation option from unknown sources, bypassing this with an alternative launcher, such as Nova Launcher or Hyperion Launcher, which have their own permission mechanisms.
Algorithm of action:
- Install the launcher through an official store (for example, Mi App Store or APKMirror).
- Make it the default launcher in the system settings.
- Open the launcher, find in its settings the Security or Permissions section.
- Activate the option to Install Unknown Applications (the name may vary).