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:
- Open Settings β Security β Blocking applications.
- Enter the password from your Mi Account (if not, you will need to create).
- 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:
- Go to Settings β Apps β Parental Controls.
- Create a user profile (e.g., βChildβ or βWorkerβ).
- Select the apps you want to limit and set time limits or lock them completely.
- 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:
- Open Settings β Special Opportunities β Second Space
- Click Create a Second Space and follow the instructions.
- After you create, move to the second space and install the desired applications.
- 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?
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:
- Download the app from Google Play (like AppLock).
- Set a master password (you can use a pattern lock or PIN).
- Select the applications to block in the list.
- 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.
| Annex | Biometric locking | Hiding notices | Auto-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:
- Turn on Developer Mode: Go to Settings β About Phone and click on MIUI Version 7 times.
- Activate Debugging by USB in Settings β Additional β For developers.
- 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).
- 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:
| Method | Level of difficulty | Do 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).