Why you need an installation from unknown sources and when to turn it on
Xiaomi Mi 9 defaults to block installation of apps not downloaded from Google Play or Mi App Store, a security measure designed to protect the device from malware. APK-manual file โ for example, to test beta versions of programs, use modified applications or install software not available in official stores.
The inclusion of the Unknown Sources option on MIUI (Xiaomi firmware) has its nuances. Unlike pure Android, the settings are hidden deeper, and after system updates, its location may change. In addition, the Xiaomi Mi 9 with MIUI 12 and later requires separate installation permission for each browser or file manager, which adds complexity.
Before you activate this feature, assess the risks: unofficial APKs may contain viruses, spyware or vulnerabilities. Always check the source of the file and use antivirus scanners like Malwarebytes or the built-in MIUI Security Scan.
Device Preparation: Verification of MIUI Version and Access Rights
Before you change your security settings, make sure your Xiaomi Mi 9 runs on the current firmware version. Open Settings โ About Phone โ MIUI Version. If the version is older than MIUI 12.5, we recommend updating through Settings โ System Update โ this minimizes bugs when installing APK.
Also check if Safe Mode is activated, and it has a system-level lockdown on the installation from unknown sources, so just restart your phone to exit Safe Mode.
- ๐ฑ Minimum version MIUI for stable operation: 12.0.3.0 (Android 10) and higher
- ๐ Superuser rights: Not required (root not required to enable option)
- ๐ก๏ธ Recommended Antivirus: Built-in Security Scan or Bitdefender
โ ๏ธ Note: Some firmware for Xiaomi Mi 9 (especially global versions) may display a โpotential threatโ notification after activating the โUnknown Sourcesโ option. MIUI โ You can ignore it if you are sure of the source. APK.
Step-by-step: how to enable APK installation on Xiaomi Mi 9
The activation process depends on the version of MIUI. Below is the general instruction that works on most firmware for the Mi 9 (including MIUI 12/13/14). If the menu items do not match, see the section "Alternative methods" below.
- Open Settings (the gear icon on the home screen or in the application menu).
- Go to the Appendix section โ Application management.
- In the upper right corner, press three dots (โฎ) and select Special Access.
- Slip on the item Install unknown applications (in some versions โ Installation from unknown sources).
- Select the application you will install APK through (such as Files, Chrome, or Mi Browser).
- Activate the switch Allow installation from this source.
- Confirm the action in the window with the warning.
โ๏ธ Preparation for installation APK
After completing these steps, you can install APK-Note that the permission is only valid for a specific source, for example, if you have allowed installation for Chrome, but try to open it. APK Through Files, an error will appear.
โ ๏ธ Note: Xiaomi Mi 9 with firmware for the Chinese market (CN ROM) The path to settings may be different, in which case use the adb method (see section "For advanced users").
Alternative ways of inclusion (if the standard does not work)
If the above method didn't work, try one of the alternatives, which will be useful for non-standard firmware or after resetting.
Method 1: Security settings (for MIUI 11 and older)
- Open the Settings. โ PapaSSWORD & SECURITY (security).
- Select Authorization and Blocking.
- Activate Unknown Sources (may be called Installation from External Sources).
Method 2: ADB (for experienced users)
If settings are blocked by device policies, use the command:
adb shell settings put global install_non_market_apps 1After completing the command, restart the phone.
| Method | Suitable for MIUI versions | Is root required? | Difficulty |
|---|---|---|---|
| Standard (through "Special Access") | 12โ14 | No. | โญ |
| Through "Security." | 10โ11 | No. | โญโญ |
| ADB-team | Anybody. | No (but you need a PC) | โญโญโญ |
| Editing by build.prop | Anybody. | Yes. | โญโญโญโญ |
๐ก
If you still block APK installation after you turn on the option, try temporarily disabling Mi Protect in your security settings. Remember to turn it back on after you install it!
Frequent mistakes and how to fix them
Even after the option is turned on correctly, Xiaomi Mi 9 users may encounter errors.
Error: "Installation locked"
Reason: MIUI blocks installation due to APK signature mismatch (e.g. if the file is corrupted or signed with an unknown certificate).
- ๐ Decision 1: Download APK from official source.
- ๐ก๏ธ Solution 2: Turn off Signature Check in Developer Settings (if Developer Mode is enabled).
- ๐ฑ Solution 3: Try installing it through another file manager (e.g. Solid Explorer).
Error: "Application not installed"
Reasons:
- ๐ APK It is designed for a different processor architecture (e.g, arm64 vs x86).
- ๐ There is not enough space in the section /data.
- ๐ Conflict with an already installed version of the application.
Fix: Check APK compatibility with Xiaomi Mi 9 (Snapdragon 855 processor, arm64-v8a architecture) and clear the cache in Settings โ Storage.
How to check the APK architecture?
How to minimize risks when installing an APK
Enabling the Unknown Sources option opens up potential vulnerabilities. Follow these rules to protect the Xiaomi Mi 9:
- ๐ Check the source: Download APK Only from trusted sites (APKMirror, APKPure) or official developer resources.
- ๐ก๏ธ Use antivirus: Before installing scan the file via VirusTotal or built-in MIUI scanner.
- ๐ Update your firmware: Install security patches regularly in Settings โ Updating the system.
- ๐ฑ Limit permissions: After installation, check the application permissions in Settings โ Annexes โ Permit management.
After installation APK Your phone is braking or warming, immediately remove the app and run a virus check. On Xiaomi Mi 9, you can use the built-in Security Scan (Settings) โ PapaSSWORD & SECURITY โ Security Scan).
โ ๏ธ Note: Some banking applications (e.g. SberBank or Tinkoff) may block work on devices with the Unknown Sources option enabled, in which case temporarily turn it off after installing the desired option. APK.
๐ก
Even if you trust the APK source, never disable Google Play Protect (located in Settings โ Google โ Security).
For advanced: additional settings through ADB
If you want more flexible control over the APK installation, you can use Android Debug Bridge (ADB), which is suitable for power users and allows you to:
- ๐ง Allow installation for all sources at the same time.
- ๐ง Bypassing restrictions MIUI certain APK.
- ๐ง Automate the process for multiple devices.
To start, turn on the Developer Mode:
- Go to Settings. โ The phone.
- Tap 7 times on the MIUI version until the notification โYou became a developerโ appears.
- Return to Settings โ Additional โ For developers and activate Debugging over USB.
Now connect the Xiaomi Mi 9 to your PC and execute the commands:
adb devices
adb shell settings put global install_non_market_apps 1
adb shell settings put secure install_non_market_apps 1Once the device is restarted, the APK installation restrictions will be removed globally. To return the standard settings, replace the 1-by-0 commands.