How to completely ban the installation of applications on Xiaomi: from children to viruses

Banning apps from installing on Xiaomi smartphones is a pressing task for parents who want to protect their children from unwanted content, or for users who want to protect their device from malware. Unlike the iPhone, where restrictions are imposed through Screen time, the MIUI shell offers several alternative methods, from built-in features to third-party solutions. The problem is that standard settings are often hidden in the depths of the menu, and some methods (for example, through ADB) require technical skills.

In this article, we will discuss 5 working ways to block the installation of applications on Xiaomi – from simple (via Security Settings) to advanced (using Google Play Console for corporate devices). MIUI (12-14 and models (Redmi Note 12, POCO X5, Xiaomi 13T You will also learn how to circumvent restrictions if you forget your password and what to do if system applications stop updating after blocking.

Method: Parental Control in MIUI (for children)

The most obvious and safe method is to use built-in parental controls, which not only prevents new apps from being installed, but also limits the time of use, blocks purchases on Google Play, and filters content by age. The feature is available on all Xiaomi smartphones with MIUI 10 and newer.

To activate it:

  • πŸ“± Open the Settings. β†’ Special facilities β†’ Parental control.
  • πŸ”’ Create. PIN-code (remember it! If you lose it, you'll have to reset your settings).
  • πŸ‘Ά Select a child profile (or create a new one).
  • 🚫 In the Application Restrictions section, enable the option to Disable the Installation of New Applications.

Important: This method only works for affiliate accounts, so if you want to limit yourself or another adult user, go to the following ways.

πŸ“Š For whom you set up a ban on installing applications?
For a child.
For yourself (viral protection)
For employees (corporate device)
For older relatives

2. Method: Blocking through MIUI security settings

V MIUI There is a hidden feature that allows you to prevent the installation of applications from unknown sources (including: APK-Files) and even restrict access to Google Play, a method that is suitable for protecting your device from accidental malware installation.

Instructions:

  1. Go to Settings β†’ Applications β†’ Application Management β†’ Application settings.
  2. Select Special Access β†’ Install Unknown Applications.
  3. For each browser (Chrome, Mi Browser) and file manager, disable APK installation permission.
  4. Return to Settings β†’ Google β†’ Security and enable Scanning of the device for malware.

β˜‘οΈ Checking the locking of the installation

Done: 0 / 4

Restriction: This method does not block installation via Google Play. For a complete ban, read the following section.

3. Method: Google Play Restrictions (for all users)

If you want to prevent the installation of any applications (including from Google Play), you can use Profile Limitations (for Android 5.0-9.0) or Google Play Console (for corporate devices).

Steps for a family account:

  • 🌐 Open families.google.com on PC.
  • πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Create a family group and add a member (like a child).
  • πŸ“± On Xiaomi smartphone, log in to your child’s account.
  • πŸ”§ In Google Play, go to Settings β†’ Family control β†’ Set limits and select Disable Application Installation.

For enterprise devices:

1. Register with Google Play Console as administrator.


2. Create a policy for devices that do not install applications.




3. Link the device via the EMM- solution (e.g., Mi Workplace).

What if Google Play ignores the restrictions?
If the restrictions do not work after setting up, check: - The device is not tied to another Google account. - MIUI version is at least 12 (older versions may have bugs). - The "For All" mode is not enabled in the Google account settings (should be "Limited Profile").

Method 4: Use of ADB (for advanced users)

If standard methods don’t work, you can block the installation of applications via ADB (Android Debug Bridge), which requires connecting your smartphone to your PC and knowing the command line, but gives you a 100% guarantee of blocking, including system updates.

Step-by-step:

  1. Enable Developer Mode on Xiaomi: Settings β†’ About Phone β†’ MIUI version (click 7 times).
  2. Activate USB Debugging in Settings β†’ Additional β†’ For developers.
  3. Connect the phone to your PC and execute the command: adb shell pm disable-user --user 0 com.android.packageinstaller This will disable the standard APK installer.
  4. To block Google Play, use: adb shell pm hide com.android.vending (root rights required).

πŸ’‘

Before using ADB, back up your data via Settings β†’ Additional β†’ Backup. Incorrect commands can cause the system to crash.

Warning: Once you disable packageinstaller, you will not be able to install any applications, including system updates.

adb shell pm enable com.android.packageinstaller

5. Method: Third-party applications (AppLock, Norton Family)

If the built-in MIUI tools don't suit you, you can use third-party software, for example:

  • πŸ” AppLock (from DoMobile Lab) – blocks access to Google Play and installer APK password-wise.
  • πŸ›‘οΈ Norton Family – allows you to remotely control the installation of applications on children’s devices.
  • πŸ“± Kids Place – creates a β€œsandbox” with a limited set of applications.

The downside of this method is reliance on third-party software, which may itself contain vulnerabilities, and some applications (such as AppLock) can easily get by through Safe Mode.

πŸ’‘

Third-party blockers are convenient, but they don't offer 100% protection, and combine them with built-in MIUI or ADB tools for reliability.

Frequent problems and solutions

When setting up the application ban, Xiaomi users often encounter typical errors.

Problem.Reason.Decision
Restrictions are reset after rebootingMistakes in MIUI OptimizationTurn off optimization in Settings β†’ Additional β†’ Special features β†’ MIUI Optimization
Parental controls are not working.An outdated version of MIUI or reset settingsUpdate to MIUI 14 or re-create your child’s profile
ADB-commands not executedDrivers not installed or debugging disabledInstall Mi PC Suite and check USB connection
Google Play ignores restrictionsConflict with account settingsDelete and add your child’s account to Settings β†’

Important: Some models (POCO F3, Redmi K50) may stop running system application updates after the installation is blocked. To avoid this, add an exception for com.miui.systemAdSolution via ADB:

adb shell pm enable com.miui.systemAdSolution

How to unlock the installation if you forget the password

If you have blocked the installation of applications but forgot PIN-Password or code, there are several ways to return access:

  1. Reset via Mi Account: Go to account.xiaomi.com. Restore access to the Mi Account linked to your phone. Enter your account details on your smartphone, which will relieve some restrictions.

Hard Reset (full reset):

If other methods do not help, reset through Recovery:

  1. Turn off the phone.
  2. Press the Power button + Volume up.
  3. Choose Wipe Data β†’ Factory Reset.

⚠️ Warning: This method will delete all data on the device, including photos and messages. Try backing up your device using Mi Cloud.

For devices with unlocked bootloader can be used TWRP and edit the file /data/system/package_install_blocked, But it requires technical skills.

FAQ: Answers to Frequent Questions

Can I only ban the installation of apps for certain users?
Yes, if you have multiple profiles set up on your smartphone (available on the Xiaomi Pad 6 and some flagships). To do this: Create a new user in Settings β†’ System β†’ Multiple users. Set the restrictions separately for each profile. On most Xiaomi smartphones, multiplayer mode is disabled by default.
Will locking work on custom firmware (e.g. Pixel Experience)?summary> Most of the methods (including parental controls) MIUI) They don't work on custom firmware. In this case, use it. ADB-Install Island (Android sandbox) from F-Droid. On firmware like LineageOS or ArrowOS, the lock is configured via Settings. β†’ Security β†’ Restrictions on applications.
How to prevent the installation of applications, but allow updates?
For this purpose: Block the installation through ADB (section 4), but keep com.android.vending (Google Play) active. β†’ Annexes β†’ Google Play Store β†’ Permissions disable Install Unknown Apps, but leave App Update. ⚠️ Note: Some system updates (e.g. for Mi Home or Mi Fit) may require full installer rights.
Does the lock on Xiaomi work with global and Chinese firmware?
Yes, but there are nuances: Global firmware: all methods (except ADB) work without restrictions. Chinese firmware (CN): Parental controls may require binding to WeChat or QQ. Some settings are hidden - use search in Settings (magnifying icon). Chinese firmware may also lack Google Play, so blocking through it will not work.
Can you prevent the installation of specific applications (for example, TikTok)?
Yes, for this: Use the AppLock with a blacklist. Set up Google Play Console to block certain packages (enterprise account required). Using ADB, do adb shell pm hide com.zhiliaoapp.musically (replace com.zhiliaoapp.musically with the application ID). You can find the application ID through the App Inspector in Google Play or by commanding: adb pm list packages | grep "apname app"