How to block the application on Xiaomi: all the ways from standard to hidden

You may need to block an app on a Xiaomi smartphone for many reasons, from protecting your personal data to limiting your social media usage time. Unlike the iPhone, where locking is built into Screen time, there are several alternative methods on MIUI, from standard tools to hidden shell capabilities. But not all of them work the same way: some simply hide the icon, others completely block access, and still others require additional software installation.

In this article, we will discuss 5 proven ways to block applications on Xiaomi, Redmi, POCO and Black Shark (relevant to MIUI 12-14 and HyperOS), learn how to restrict access through Security, set a password to start, use a second space or even block the application for a particular user, and also what pitfalls each method has and how to get around them.

1. Blocking through β€œSecurity” (built-in MIUI functionality)

The most obvious and quick way is to use the built-in App Lock feature in the Security menu. It is available on all Xiaomi devices with MIUI 10 and later, including HyperOS. The main advantage is that you do not need to install third-party programs, and the lock works at the system level.

To activate it:

  1. Open Settings β†’ Security β†’ Blocking applications.
  2. Enter the password from your Mi Account (if not, you will need to create).
  3. Select apps from the list and turn on the switch next to them.

After that, every time you run a blocked application, you will be asked for a password, and the important thing is that if you forget the password from Mi Account, you can only unlock the applications through a reset.

Make sure that the password from Mi Account is remembered|Verify that the function does not conflict with other limitations (e.g. parental controls)|Synchronize these applications (if it is important)-->

⚠️ Note: On some models (e.g, POCO F5 with HyperOS, Application Lock may not be in the Security menu, in which case use the second space method (Section 3).

Advantages of the method:

  • πŸ”’ No need for root rights or additional programs.
  • πŸ“± It works on all Xiaomi devices (except the oldest models on the market). MIUI 9 and below).
  • πŸ”„ The lock is maintained after rebooting.

Disadvantages:

  • 🚫 Do not block notifications from the application.
  • πŸ”“ Password from Mi Account can be reset via email (if attached).
  • πŸ“΅ Does not work for system applications (such as Settings or Phone).

2.Use of Parental Control (to limit time)

If your goal is not so much to block the app forever as to limit the time it is used (for example, for a child or yourself), then Parental Control will do the job, which allows you to set daily limits, block apps on a schedule, and even track activity.

How to set up:

  1. Go to Settings β†’ Apps β†’ Parental Controls.
  2. Create a user profile (e.g., β€œChild” or β€œWorker”).
  3. Select the apps you want to limit and set time limits or lock them completely.
  4. Activate the control mode (required) PIN-code).

This method is convenient for family use, but has limitations:

  • πŸ‘Ά Works only for individual profiles (does not block applications in the main space).
  • πŸ•’ You can get around by switching to another profile or disabling control through Settings.
  • πŸ“Š Requires regular monitoring (e.g. if the child knows) PIN).

Limiting time on social media|Protecting personal data|Controlling the use of the child|Hide the application from outsiders|Another option-->

⚠️ Attention: MIUI 14 and HyperOS Parental Controls may conflict with Digital Well-being (from Google).If the limits do not apply, disable one of the features in Settings β†’ Google β†’ Digital well-being.

3. Hiding applications in the "Second Space"

If you want to not just block, but completely hide the application from prying eyes, use the Second Space function. This is a separate desktop with its own applications, settings and data. Applications installed in the second space will not be visible mainly - and vice versa.

How to create a second space:

  1. Open Settings β†’ Special Opportunities β†’ Second Space
  2. Click Create a Second Space and follow the instructions.
  3. After you create, move to the second space and install the desired applications.
  4. Return to the main space – hidden applications will become unavailable.

To switch between spaces, use a gesture: swipe down with two fingers from the top edge of the screen and select the space in the menu.

How to delete the second space if you forget your password?
If you forget the password from the second space, it can only be deleted through a full reset (Settings β†’ About Phone β†’ Reset).

Pros of the method:

  • πŸ” Apps are completely hidden (not visible in menus and search).
  • πŸ”„ You can use different accounts. Google/Mi in every space.
  • πŸ“± Doesn't require root rights.

Cons:

  • πŸ”“ It is easy to detect if you know about the function of the second space.
  • πŸ“΅ Applications take up space in memory (removed only with space).
  • πŸ”„ Not blocking notifications (they will come to the main space).

4. Blocking through third-party applications (AppLock)

If you don't like the built-in MIUI methods, you can use third-party blocking software, the most popular ones being AppLock (from DoMobile Lab), Norton App Lock, and Smart AppLock, which offer additional features such as:

  • πŸ”’ Blocking by fingerprint or face.
  • πŸ“΅ Hiding notifications from blocked applications.
  • πŸ•’ Automatic locking by time or location.

How to set up AppLock:

  1. Download the app from Google Play (like AppLock).
  2. Set a master password (you can use a pattern lock or PIN).
  3. Select the applications to block in the list.
  4. Activate additional settings (e.g. Hide the AppLock icon).

Important: Some locking apps (like AppLock) may conflict with battery optimization in MIUI. To keep the lock running, add AppLock to the exceptions: Settings β†’ Battery β†’ Battery Optimization β†’ All apps β†’ AppLock β†’ Not Optimizing.

AnnexBiometric lockingHiding noticesAuto-Unlocking by Wi-Fi
AppLockβœ… Yes.βœ… Yes.βœ… Yes.
Norton App Lockβœ… Yes.❌ No.❌ No.
Smart AppLockβœ… Yes.βœ… Yes.❌ No.
LockeTech❌ No.βœ… Yes.βœ… Yes.

⚠️ Note: Some blocking apps (such as AppLock) may collect data about your activity. Before installing, check Google Play permissions and user reviews).

5. Blocking through ADB (for power users)

If you’re ready to dive into the technical details, you can block the application through ADB (Android Debug Bridge), a method that is suitable for system applications that cannot be blocked by standard methods (for example, Settings or Play Store).

Instructions:

  1. Turn on Developer Mode: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  2. Activate Debugging by USB in Settings β†’ Additional β†’ For developers.
  3. Connect your phone to your PC and execute the command: adb shell pm hide com.example.app (replace com.example.app with the batch name of the application, for example, com.android.settings for Settings).
  4. To unlock, use: adb shell pm unhide com.example.app

List of packet names of popular applications:

  • πŸ“± Settings: com.android.settings
  • πŸ“· Camera: com.android.camera
  • πŸ“§ Gmail: com.google.android.gm
  • 🎡 Music: com.miui.player

πŸ’‘

To find the batch name of any application, use the command adb shell pm list packages | grep "name" (for example, adb shell pm list packages | grep "chrome").

Advantages of the method:

  • πŸ”§ Works for system applications.
  • πŸ”’ System-level locking (cannot be avoided without ADB).
  • πŸ“΅ Doesn't require root rights.

Disadvantages:

  • πŸ’» You need skills to work with ADB PC.
  • πŸ”„ After resetting the settings, the lock is removed.
  • 🚫 Does not work on some firmware (for example, HyperOS may restrict access to pm hide).

Comparison of methods: which one to choose?

To determine the best way to block, assess your needs:

MethodLevel of difficultyDo you need a password?Does it work for system applications?Can I get around?
Blocking through "Security"β­β­βœ… Yes, Mi Account)❌ No.βœ… Yes (through password resetting)
Parental controlβ­β­βœ… Yes (PIN)❌ No.βœ… Yes (switching profile)
Second space⭐⭐⭐❌ No.❌ No.βœ… Yes (if you know the function)
Appendix side (AppLock)β­βœ… Yeah)❌ No.βœ… Yes (deletion of AppLock)
ADB⭐⭐⭐⭐❌ No.βœ… Yes.❌ No, no. ADB)

Recommendations:

  • πŸ” To protect personal data (banks, instant messengers) use Security or AppLock.
  • πŸ‘Ά For parental control set up Parental control + Digital well-being.
  • πŸ” To hide apps from outsiders, create a Second Space.
  • πŸ› οΈ Use the system applications to block ADB.

πŸ’‘

The most reliable way is a combination of methods, like locking through Security + hiding an icon through Second Space.

Frequent problems and their solutions

When blocking applications on Xiaomi, users encounter common errors. Here's how to fix them:

Problem 1: Application Locking is not in the Security menu.

Solution: Update MIUI to the latest version or use Second Space. On some firmware (e.g. HyperOS for the global version), the feature can be renamed Privacy β†’ Application Lock.

Problem 2: Once blocked through AppLock, the app still opens.

Solution: Check if AppLock is added to the battery optimization exceptions (Settings β†’ Battery β†’ Battery Optimization).

Problem 3: Forgot the password for the Second Space.

Solution: The only way is to reset (Settings β†’ About Phone β†’ Reset) All data in the second space will be deleted!

Problem 4: ADB commands are not working (pm hide not found).

Solution: Some MIUI firmware has the pm hide command disabled. Alternatively, use adb shell pm disable-user --user 0 com.example.app (replace com.example.app with a batch name).

Can I block system applications (such as Settings or Phone)?
Standard methods (Security or AppLock) - no. Only ways: ADB (Pm hide or pm disable-user, using root rights and applications like Titanium Backup. ⚠️ Blocking system applications can lead to unstable phone operation!
How do you know if your child is not crossing the lock through the Second Space?
Check the following: Make sure your child doesn't know the gesture to switch spaces (swipe down with two fingers); turn off notifications from apps in the second space (Settings β†’ Notifications β†’ Second Space); use Parental Controls in both spaces; if your child is tech-savvy, consider specialized apps like Kids Place.
Will the lock work after resetting the settings?
No, all lock settings (except for the ADB) They're dropped to the factory. To restore the lock: Reconfigure Security. β†’ Block applications. Reinstall AppLock and restore settings from backup (if created). Create a second space again. πŸ’‘ Tip: Before reset, take screenshots of lock settings or write down passwords used.
Can I block the app for a certain time (for example, overnight)?
Yes, this is the right thing to do: Parental Control (time limits setting); AppLock with Schedule (e.g. lock from 22:00 to 7:00); Google Digital Well-Being (Settings β†’ Google β†’ Digital Well-Being β†’ App Timer). Use MacroDroid to automatically lock on a schedule without third-party apps (macros settings will be required).
How to block access to the Play Market so that your child does not install new games?
Block Options: Parental Controls: Limit Application Installation through Settings β†’ Parental control β†’ Installation restrictions. ADB: Execute the command: adb shell pm disable-user --user 0 com.android.vending (this will disable the Play Market for the current user) Second space: do not install the Play Market in the second space (use only pre-installed apps). ⚠️ After blocking through ADB Application updates will also be unavailable!