How to allow installation from unknown sources on Xiaomi

Owners of Xiaomi, Redmi and Poco smartphones often face the need to install applications that are not in the official Google Play store – this can be specialized software, modified versions of programs or utilities to work with the system. However, MIUI and the new HyperOS shell block the launch of the installer for any files not received from the Play Store, providing a basic level of digital security.

The process of unlocking this feature on Xiaomi devices is significantly different from standard Android. It has a multi-level check system, including waiting timers and mandatory confirmation through the use of the device. SMS. Understanding exactly where the switches are hiding will allow you to quickly install the switches you need. APK-nerveless.

In this guide, we will take a look at the algorithm for current firmware versions, how to circumvent built-in security constraints, why the system requires an Internet connection, and what nuances different models have, and the instructions are relevant for both global and Chinese versions of the operating system.

Why the system should block third-party applications

The Android security policy that Xiaomi hard-line broadcasts is designed to protect the user from malicious code. When you try to run an installer from a file manager or browser, the system forcibly stops the process. It's not a bug, but a security mechanism to prevent viruses or spyware from quietly installing in the background.

Xiaomi has implemented additional verification through MIUI Optimizer (or similar module in HyperOS). Even if you find the Unknown Sources switch, the system will require you to confirm the action with code from SMS. This is done so that the user consciously approached the installation of software from unverified sources.

⚠️ Note: By allowing applications to be installed from unknown sources, you take responsibility for data security. APK-The file is taken from the official website of the developer or a verified resource.

It is important to distinguish between the concepts of "Unknown sources" in the classical sense of Android and the specific resolution for each installer application in MIUI. In modern versions of the shell, you give the right to install not all applications at once, but a specific tool, for example, Explorer or Chrome, through which the file is launched.

πŸ“Š How often do you put apps not from the Play Market?
Every day.
Once a week.
Rarely.
Never.

Search for settings in the MIUI and HyperOS security menu

Finding the right switch in the bowels of the system is difficult because of the deep nesting of the menu. Unlike pure Android, where the setting is in the "Applications" section, in MIUI, the path lies through the privacy settings. Open Settings and go to the "Privacy Protection" section.

Then the algorithm may vary slightly depending on the version of the shell, and in most cases, you have to click on the Special Permissions button, and that's where the item you're looking for is the one that controls the rights to install the packages, and the system will show you a list of applications that can request the installation of other programs.

If you're using HyperOS, the logic remains the same, but the visual design can be changed. The key element is finding Install Unknown Apps. Without activating this flag for a specific file manager to run. APK-The file will be blocked by a system dialog.

πŸ’‘

Use Settings Search: Enter β€œunknown” in the Settings menu search bar to instantly go to the desired item, bypassing long searches in the menu.

Step-by-step instructions for activating permission

Consider a detailed algorithm that will bypass the lock, and follow the steps sequentially, because skipping any step will result in a return to the beginning or a requirement to re-enter the code.

  • πŸ“± Open your smartphone settings and select Privacy Protection).
  • πŸ”’ Click on the Special Permissions tab at the top of the screen.
  • πŸ“‚ Select Install Unknown Applications (Install Unknown Applications).
  • πŸ“² In the list, find the application through which you will run the file (for example, Explorer, Chrome or Telegram).
  • βœ… Activate the switch Allow installation from this source.

Once the tumbler is turned on, the system will issue a risk warning. You need to press OK or Understand. At this stage, in older versions of MIUI, the setting would be completed, but in current builds, a countdown timer (usually 10 seconds) will appear.

Wait until the countdown is over, and then the Continue button will appear, and you click on it, and you'll get a confirmation request through the SMS. Make sure there is one on the phone. SIM-card with an active balance or tariff allowing you to receive incoming messages.

β˜‘οΈ Unlocking algorithm

Done: 0 / 1

Confirmation via SMS and waiting times

The SMS confirmation mechanism is a unique feature of Xiaomi’s ecosystem: it sends a hidden request to the company’s servers to verify the action. The user does not need to write anything manually, but the phone must have access to the mobile network.

Often users are faced with a situation where the confirmation button is inactive or the timer does not start, this can be due to the lack of an Internet connection or the blocking of Xiaomi services by the provider. 4G/LTE vice versa.

⚠️ Attention: If SMS-Confirmation does not come during 2-3 So, for a minute, don't try to send requests indefinitely. The system can temporarily block the function. 15-20 minutes or reboot the device.

In some regions (e.g. Indonesia or India) additional restrictions may apply, and SMS confirmation may not work at all, in which case the only solution is to use a global firmware version or change the region in settings (Settings β†’ Additional β†’ Region).

What to do if you don't SIM-map?
If not on the smartphone SIM-cards, confirmation through SMS In this case, you can try using third-party launchers or ADB-commands to activate debugging mode, but the standard path will be closed.

Comparison of tracks in different versions of MIUI

The interface between the MIUI and HyperOS shells is constantly changing. The layout of menu items can vary depending on the Android version and regional firmware. Below is a table to help you navigate the differences.

Shell versionThe way is on the menuFeatures
MIUI 12 / 13Settings β†’ Privacy Protection β†’ Special PermitsStandard timer 10 seconds, requires SMS
MIUI 14Settings β†’ Privacy Protection β†’ Special PermitsEnhanced security checks, possible delays
HyperOS 1.0Settings β†’ Privacy Protection β†’ Special PermitsIntegration with Xiaomi account, strict control
Chinese version (CN)Settings β†’ Additional β†’ PrivacyYou may need to sign in to your Mi Account.

Owners of Chinese firmware (CN ROM) devices may notice that they lack some Google services by default, which also affects the installer’s performance, and they often have to manually configure frameworks before trying to install third-party apps.

If you upgrade from MIUI 13 to HyperOS, remember that permission settings may have reset. You will have to re-activate for each conductor application you use to install the APK.

πŸ’‘

The path to settings remains the same for all modern versions: Privacy Protection β†’ Special permissions. Only the rigour of the activation check changes.

Solving problems with APK installation

Even after all permissions are enabled, the installation process can be interrupted, often due to the operation of the MIUI Security antivirus, which scans the file before installation and can block it, labeling it as potentially dangerous, even if the file is secure.

To get around this lock, you also need to configure the Security app itself, go to it, open the settings (cogs), and find the point responsible for checking the installed applications, where you can turn off automatic locking or add a file to exceptions.

  • πŸ›‘οΈ Check if the installation ban is in the Guest profile or Second Space.
  • πŸ“¦ Make sure there is enough free space on the disk to decompress the app cache.
  • πŸ”„ Try using another file manager, such as Total Commander or FX File Explorer if the standard conductor fails.

Another common problem is the β€œbroken” signature of the application, which, if you downloaded a modified version of the program, may conflict with the original version already installed, in which case you must first completely remove the old application through Settings β†’ Applications.

⚠️ Warning: Do not ignore the system's "High Risk" warning if you are not sure about the source of the file.

Using ADB for Advanced Users

For those who find standard methods too cumbersome or not working, there is an alternative way to use USB debugging and the ADB command line, which allows you to install applications directly from your computer without using some graphical interfaces.

To do this, you need to activate the developer mode. Press 7 times in a row on Version. MIUI In the section About the phone, then in the additional β†’ For developers, turn on the debugging by USB and Installation through USB. The latter will require confirmation through SIM-map.

adb install -r package_name.apk

This command will force the app to be installed, replacing the existing one (flag -r). However, even here, the system can request confirmation on the phone screen. Completely circumventing user control without Root rights in modern versions of Android is almost impossible and insecure.

Can I turn off the check permanently?
You can't completely disable APK verification in MIUI without Root permissions, you can only minimize the number of confirmations by using one trusted file manager for all installations.
Why is the Continue button inactive after the timer?
Most often, it's a network connection problem. The phone can't communicate with Xiaomi's authorization server. Try turning off Wi-Fi and using mobile internet, or vice versa. Also check if the date and time are not automatic.
Is it safe to turn off MIUI Optimization?
In the hidden developer menu, there's a clause called "Enable MIUI Optimization." Disabling it can make it easier to install APKs, but it will lead to unstable system operation, interface failures, and application permission problems. Do this only in extreme cases.
What to do if SMS-code doesn't come?
Make sure you have funds (even minimal) on your account, as some operators block service SMS with zero balance. Try changing your phone settings to Russia or Ukraine/Kazakhstan, reboot and try again.