How to completely ban the installation of applications from unknown sources on Xiaomi Redmi

Installing apps from unknown sources on Xiaomi Redmi smartphones is one of the most common causes of virus infection, data leakage and system instability. Even if you are confident in the security of the downloaded.apk file, accidentally clicking on a fake notification or phishing link can lead to automatic installation of malware. Unlike Google Play Protection, which scans applications after the fact, blocking unknown sources at the system level completely eliminates the risk.

In this article, we will look at all the ways to disable APK installation on Xiaomi Redmi, from standard MIUI settings to hidden settings for advanced users, focusing on the nuances of different versions of the firmware (from MIUI 12 to HyperOS), and explain why even after blocking some applications (for example, Xiaomi GetApps) can bypass restrictions, if you give the phone to a child, employee or just want to protect yourself from random installations, these instructions will help to configure reinforced concrete protection.

Why it is important to ban installations from unknown sources

According to Kaspersky 2023, 68 percent of mobile viruses spread through manual installation of.apk files, not through official stores.

  • 🦠 Trojans and spies: Malware can disguise itself as legitimate software (such as modified versions of WhatsApp or TikTok), steal passwords and bank card details.
  • πŸ“± Incompatibility with MIUI: Apps not optimized for Xiaomi can cause overheating, fast battery drain or sensor failures.
  • πŸ”„ Bypassing security updates: Manually installed APK They don’t get automatic patches from Google Play, making them vulnerable to new exploits.
  • 🚫 Warranty breach: In some regions (e.g. the EU), uncertified software installation may cause warranty repairs to be denied.

Even if you download APKs from trusted sources (like APKMirror), in 2026, more than 30% of "clean" builds contained hidden trackers or advertising SDKs, according to a study by the University of Sydney.

πŸ“Š Have you ever installed APK From unknown sources to your Xiaomi?
Yeah, regularly.
Only 1-2 times.
No, never.
I don't know what it is.

Method 1: Standard lock through MIUI settings

The easiest method is to disable APK permission from the security menu, which works on all Redmi models (from Redmi 9A to Redmi Note 13 Pro+) and MIUI/HyperOS versions.

  1. Open the Settings app (cog icon).
  2. Go to the Appendix section β†’ Application management.
  3. Click on the three dots in the top right corner and select Special Access.
  4. Slip on the item Installation from unknown sources.
  5. In the list of applications (for example, Files, Browser, Telegram) disable the sliders opposite each.

After that, any attempt to install APKs through these applications will be blocked by the system with the notification β€œInstallation prohibited by the device administrator”.

Is the "Special Access" setting open?

Are all applications in the β€œInstallation from Unknown Sources” list disabled?

Is the smartphone rebooted after the changes?

Is the APK test installation checked (should be blocked)?

-->

⚠️ Note: Some system applications (such as Xiaomi GetApps or Mi App Store) may automatically enable this resolution after an update. 1-2 month.

Method 2: Blocking through "Parent Control"

If you give a phone to a child or employee, a standard lock may not be enough β€” an experienced user can easily turn the permission back on, and in this case, the built-in Parent Control will help, which:

  • πŸ”’ Blocks the installation of any applications without a password.
  • πŸ•’ Limits the time of use of the device.
  • πŸ“± Hiding system settings (including Special Access).

You can activate the mode as follows:

  1. Open the Settings. β†’ Regime for children.
  2. Set your password (don’t use simple combinations like 1234!).
  3. Turn on the switch Mode for children.
  4. In the Restrictions section, select Prohibit Application Installation.

Now, any APK (even from Google Play) requires a password, a method that is required if the phone is used by children under 14 years old β€” according to a study by Common Sense Media, 45% of teenagers install pirated games or hacked apps, risking infecting the device.

How to get around the Mode for children, if you forgot the password?
If you forget your password, the only way to reset the restrictions is to perform a hard reset via Recovery Mode. 1. Turn off your phone. 2. Press the Power button. + Volume up before the Mi. 3 logo appears. From the Recovery menu, select Wipe Data. β†’ Wipe All Data. ⚠️ Warning: This will delete all data on the device, including photos and contacts!

Method 3: Use ADB to block completely (for advanced)

If standard methods do not help (for example, on custom firmware or after root access), you can turn off the installation. APK Android level through the team ADB. This method works on all versions. MIUI/HyperOS, But it requires a computer connection.

Instructions:

  1. Download Google’s Platform Tools and unpack the archive.
  2. Turn on the phone Debugging over USB (Settings β†’ About Phone β†’ MIUI version – tap 7 times, then go back to Additional β†’ For developers).
  3. Connect Redmi to your PC and type in the command line:
adb shell settings put global install_non_market_apps 0

This command globally prohibits installation of all APKs except those downloaded from Google Play. To return the installation option, use:

adb shell settings put global install_non_market_apps 1

⚠️ Attention: After completion ADB-commands some system updates (e.g., via Mi Community) may stop installing. Before using this method, back up to Settings β†’ Additionally. β†’ Backup and reset.

Comparison of blocking methods: which one to choose?

Each method has its pros and cons. Below the table will help you determine the best option for your situation:

MethodLevel of protectionDifficultyReversibilitySuitable for
Standard lock in MIUIMedium.Low.Easy to cancel.Personal Use, Temporary Protection
Regime for childrenHigh-pitchedMediumRequires a passwordChildren, staff, rented devices
ADB-teamMaximumTall.Demands a PC.Advanced users, corporate phones
Reset to factory settingsHigh-pitchedTall.Deletes all data.Extreme case (for viruses)

For most users, Xiaomi Redmi is enough combination of standard lock + Regime for children. ADB-You should only use commands if you are confident in your actions or need a 100% lock guarantee (for example, for corporate devices).

1. Check the list of installed programs in Settings β†’ Applications.

2. remove suspicious APKs.

3. perform antivirus scanning (e.g. Malwarebytes or Dr.Web).-->

What to do if the lock is not working?

Sometimes even after all permissions are turned off, APK installation still goes through.

  • πŸ”„ Cash Systems: Clear the cache in Settings β†’ Annexes β†’ Application management β†’ Three points. β†’ Clear the cache.
  • πŸ“¦ Damaged firmware: If the phone has previously been rooted or flashed, some settings may be reset. MIUI last-minute.
  • πŸ€– ADB-Permits: Some applications (such as App Cloner) may request installation rights through ADB. Check the list of allowed devices in Settings β†’ Additionally. β†’ For developers β†’ Withdraw permits USB-debugging.
  • πŸ›‘οΈ Antivirus blocks changes: Turn off Google Play Protection or third-party antiviruses (like Avast) temporarily, then reset the lock setting.

If the problem persists, check the phone for root rights (via the Root Checker app). On rooted devices, blocking unknown sources may not work due to modified system files.

Additional security measures for Xiaomi Redmi

Locking the APK installation is only part of the protection, so as to maximize the security of the device:

  • πŸ” Enable encryption: Settings β†’ Additionally. β†’ Encryption and accounts β†’ Encrypt the phone, make it harder to access data when you steal it.
  • 🌐 Use it. DNS From Google or Cloudflare: Go to Settings β†’ Wi-Fi β†’ Additionally. β†’ Settings DNS and specify 8.8.8.8 or 1.1.1.1. This blocks phishing sites.
  • πŸ“² Disable the installation through SMS/MMS: B Settings β†’ SIM-maps and mobile networks β†’ Additionally. β†’ Settings SMS Prohibit automatic downloading of multimedia.
  • πŸ”„ Set up automatic security updates: Settings β†’ The phone. β†’ Updating the system β†’ Settings β†’ Automatic booting via Wi-Fi.

πŸ’‘

If you frequently transfer APK files between devices (e.g. via Bluetooth), create a separate user profile in Settings β†’ System β†’ Multiplayer. In the guest profile, the blocking of unknown sources will operate independently of the main account.

FAQ: Frequent questions about APK blocking on Xiaomi

Can I block APK installation only for certain applications (e.g. Telegram)?
Yes, in the Settings menu β†’ Applications β†’ Special Access β†’ Installation from unknown sources, you can turn off permission selectively, for example, leave it for Files, but remove it for Telegram or Browser.
Will the lock work after the phone is reset to factory settings?
No, reset removes all user settings, including restrictions on the installation of APK. Once reset, you will have to configure the lock again. To avoid this, back up the settings in Settings β†’ Additional β†’ Backup and Reset.
Can I block APK installation through Google Play?
No, blocking unknown sources does not affect Google Play, but you can restrict the installation of apps from the store through the Children’s Mode or corporate policies (such as Android Enterprise).
Why is the MIUI update the lock resetting?
It's a known problem. MIUI β€” Some system applications (e.g. Xiaomi GetApps) automatically get permission to install APK After major updates, check the settings after each update or use ADB-lock-in.
How to check if there are malicious APKs on your phone?
Open Settings β†’ Applications β†’ Application Management and sort the list by installation date. Pay attention to programs with unknown names (e.g. com.system.update) or those that consume a lot of traffic in the background. Use Malwarebytes or VirusTotal for a deep check (upload a suspicious APK to a site for analysis).