Installing apps from unknown sources is one of the most common causes of malware infection in Xiaomi smartphones. APK-Intentional (or intentional) installation of a dangerous application bypassing the protection of Google Play Protect. MIUI 12 security is different than standard Android, so standard locking methods donβt always work here.
In this article, youβll find a complete guide to disabling installations from unknown sources at all levels, from global security settings to limitations for individual browsers and file manager. We will also discuss how to avoid common errors (for example, when settings are reset after an update) and what to do if the virus has already entered the system. MIUI 12 β The version of the shell that is still used on millions of devices, including the Redmi Note. 9/10, Poco X3 mi 10/11.
Why canβt MIUI 12 just turn off Unknown Sources?
Unlike pure Android, where you just need to transfer one switch to the security menu, MIUI 12 will split the APK installation permissions into individual applications.
- πΉ Mi Browser browser may have its own installation permission APK.
- πΉ File Manager β File Manager β your own.
- πΉ Telegram or WhatsApp could theoretically request such rights.
This makes it difficult to control, but it allows you to configure access flexibly, but for most users, this becomes a loophole for viruses, especially if the device is used by several people, for example, a child may accidentally allow the installation from an advertising banner in the browser, and the parent will not even know about it.
Another feature of MIUI 12 is that it automatically resets some resolutions after you upgrade, which means that even if you once banned installation from unknown sources, you can still reset to factory settings after upgrading to a new firmware version.
Step-by-step: How to disable APK installation at all levels
To completely block the ability to install applications from unknown sources, you need to go through four key sections of the MIUI 12 settings. Skipping at least one item will leave a loophole for malware.
1. Global security settings
Start with the basic security menu:
- Open Settings β Applications β Application Management β Settings (cog icon).
- Select the Special Access item β Installation of unknown applications.
- You will see a list of all applications that are allowed to install APK. Disable the switches opposite each point (browsers, file managers, instant messengers).
Note that in MIUI 12, some system applications (such as Mi Browser) may not appear on this list.
2. Blocking in the Mi Browser browser
Mi Browser is the standard browser on Xiaomi devices, and it is often used to download APK. To prevent installation through it:
- Open Mi Browser.
- Go to the menu (three dots) β Settings β More
- Find Install applications from unknown sources and disable it.
If you don't have a point, you're already locked at the system level (see previous step), but some versions of MIUI 12 (like the Redmi Note 9 Pro) duplicate this setting.
βοΈ Checking the locking of the installation APK
3. File Manager and Download folder
Even if the installation is blocked, APK-files can stay in the memory of the device:
- Open File Manager (or any other file manager)
- Go to the Download (or Download) folder.
- Find all files with the.apk extension and delete them.
- Go back to File Manager and check if there is an Install Unknown Applications option (similar to the browser).
If the Download folder is crowded, use sorting by file type to quickly find the APK. In MIUI 12, click on the three dots in the top right corner and select Sort β Type.
4. Additional protection: password for the installation of applications
If your smartphone is used by other people (children, colleagues), one disablement of permissions may not be enough. MIUI 12 has a function to block the installation of applications with a password:
- Go to Settings β Password and Security β Block applications.
- Turn on the function and install it. PIN-code.
- In the list, select Package Installer (or Package Installer in English).
Now, every time you try to install an APK (even if permission is enabled), the system will require a password, which adds an additional layer of protection, but does not replace the basic security settings.
π‘
If you frequently install APKs to work (e.g., beta applications), create a separate user profile in Settings β System β Multiplayer. In the main profile, leave all locks on, and in the second, allow installation only for the desired applications.
What to do if settings are reset after the MIUI update?
One of the most frustrating things about MIUI 12 is that it automatically resets some resolutions after a firmware update, which is because it restores factory security settings for individual components to avoid this:
- π Before updating, take screenshots of all security settings (Special Access section).
- π After the update, first check the installation permits APK.
- π If your smartphone is automatically updated (at night), turn off this feature in Settings. β The phone. β Updating the system β Settings (cogs) β Auto-update.
On some devices (like the Poco F2 Pro with MIUI 12.5), a rollback to an older firmware version via Fastboot helps, but this is an extreme measure.
- Go to Settings β Notifications β Notifications Management.
- Find Security and turn on all the tumblers.
The system will now send alerts if any permissions have been changed (including after the update).
How to check if the settings have reset after the update?
Errors and Solutions: Why is the lockdown not working?
Sometimes users find that, despite all the prohibitions, APK installation is still possible, and let's look at the typical reasons and ways to eliminate them:
| Problem. | Possible cause | Decision |
|---|---|---|
| APK is installed via Telegram or WhatsApp | Messengers have a separate installation permit | Turn off permission for messengers in Special Access |
| After resetting, the settings are reset. | System cache error or virus | Clear the cache to Settings β Applications β Application Management β Three Points β Show System β Package Installer β Clear the cache |
| You can not turn off the switchboard in Installation of unknown applications | Superuser rights or root access | Check for root rights in Settings β About Phone β MIUI version (5 times tap). If you have, delete the root. |
| APK is installed via ADB | USB debugging enabled | Turn off Settings β About Phone β MIUI Version (7 times tap) β Additional β For developers β Debugging over USB |
If none of these methods worked, there may be malware already installed on the device that blocks the settings change.
- Run the check through Google Play Protect (Play Store β Menu β Play Protect).
- Install an antivirus (such as Dr.Web or Kaspersky) and scan the system.
- If the virus is detected but not removed, reset to factory settings (Settings β About Phone β Reset settings).
π‘
If your smartphone is infected with a virus that blocks access to settings, try logging into Safe Mode (hold the off button β long tap on "Stop" β "Reboot in Safe Mode"). In Safe Mode, the malware does not work and you can change your settings.
How to prevent the installation of APKs for individual users (parental controls)
If your Xiaomi is used by children or other family members, one permissions turn off is not enough. MIUI 12 has built-in parental controls, but it works only limitedly.
- Create a separate user profile: Settings β System β Multiplayer Mode β Add User Set a password to your main profile.
- In the new profile, disable the installation from unknown sources (as described above).
- Install Google Family Link for additional control: π± Download the application to your smartphone and to the childβs device. π± Set limits on the installation of applications. π± Enable the option to block unknown sources.
Important: MIUI 12 doesnβt have multiplayer on all devices, such as Redmi 9A, which may not be available, leaving only Google Family Link or third-party parental control apps like Kaspersky Safe Kids.
β οΈ Note: If you use Google Family Link, please note that your child can bypass the lock by simply logging out of their Google account. To avoid this, turn on the deletion ban in the security settings.
What to do if the virus is already installed?
If you find a suspicious application on your device that is not removed by standard methods, follow the algorithm:
- Check Application Rights: Settings β Applications β Application Management β Find a suspicious application β Rights If it has administrator rights β untie them in Settings β Password and Security β Device Administrators.
- Remove via ADB (if standard removal does not work): adb uninstall com.example.virus (replace com.example.virus with the real name of the package, which can be found through App Inspector).
- Perform factory reset: Settings β About Phone β Settings Reset β Delete all data Before reset, save important data (photos, contacts) to the cloud or computer.
β οΈ Attention: Some viruses disguise themselves as system applications (e.g. com.android.system) and manually remove them is dangerous, which can cause the smartphone to fail.