How to put a password on the application on Xiaomi: all ways to protect

Protecting personal data on Xiaomi starts with restricting access to apps. Even if someone picks up your phone, an app password won’t let you read your Telegram correspondence, see your browser history, or open a banking app. In this article, 5 proven ways to set a password for any app, including hidden MIUI features and bypassing restrictions on older models.

Unlike the iPhone, where app blocking requires workarounds, Xiaomi offers a built-in solution called App Lock. But not everyone knows that it can be configured to fit specific scenarios, such as blocking apps only at certain times or hiding notifications from blocked programs. We will analyze not only basic settings, but also hidden MIUI options that Xiaomi does not advertise in official instructions.

Method 1: Built-in App Lock in MIUI

The most reliable and simple method is to use the standard App Lock, available on all Xiaomi smartphones with MIUI 10 and later, which requires no third-party apps and is integrated into the security system.

To activate the lock:

  1. Open the Settings. β†’ Passwords and security.
  2. Select the option β€œApp Lock” (App Lock).
  3. When you first start up, the system will ask you to create a pattern lock or enter a password. Use a combination that you will not forget, but which is difficult to find (for example, 7+ characters with numbers and special characters).
  4. Once set up, select the apps from the list you want to block, and the slider next to the name will put it into protection mode.

Important detail: App Lock in MIUI supports dual authentication. For example, you can set unlock not only with a password, but also with a fingerprint (if the sensor supports this feature).

Make sure that the phone has a primary password (PIN or pattern lock) installed.

Update MIUI to the latest version (older versions of App Lock are unstable)

Check what in Settings β†’ Accounts β†’ Mi Account is linked to a valid email

Backup important data (in case of resetting settings)-->

Restriction: Some system applications (such as Settings or Phone) cannot be blocked through App Lock. These will require alternative methods, which we will discuss later.

Method 2: The hidden function of the "Second Apps"

If you want to not just block the app, but completely hide it on your phone, use the Dual Apps feature, a separate user profile with its own apps, settings and password.

How to set up:

  • πŸ”’ Go to Settings. β†’ Special facilities β†’ Second space.
  • πŸ“± Choose Create a second space and follow the instructions. The system will prompt you to copy applications from your main profile.
  • πŸ”‘ Set a separate password to enter the second space (it may differ from the main one).
  • 🎭 In this space, install the desired applications (such as WhatsApp or Bank) and block them through App Lock.

The advantage of this method is that even if someone unlocks your phone, they won't see the apps in the second space without an additional password, and the disadvantage is that you have to maintain two profiles, which is inconvenient for daily use.

What happens if you remove the second space?
All data and applications from the second space will be permanently deleted. Backups are created separately for each profile. If you want to save data, first transfer it to the main space through Settings β†’ Second Space β†’ Data Transfer.

Method 3: Blocking through Parent Control

Parent Control is originally designed to restrict children’s access to content, but it can be adapted to block apps, which is suitable if you want to temporarily restrict access to certain programs (for example, while working or sleeping).

Instructions:

  1. Open Settings β†’ Special Opportunities β†’ Mode for Children.
  2. Activate the function and set a password (it will differ from the main password of the phone).
  3. In the Application Limitations section, select the programs you want to block.
  4. Set up a mode activation schedule (for example, from 22:00 to 7:00).

The feature is that it blocks all applications except those that are allowed, so the reverse logic of App Lock is that you're telling you what to open, not what to block, and that's convenient for strict restrictions, but inflexible for everyday use.

Built-in App Lock|Second Space|Mode for children |ApplicationsSite |I Do not block apps-->

Method 4: Third-party applications for blocking

If the built-in MIUI features aren't enough, you can use third-party software, which offers advanced features: geolocation lock, masking as system utilities, screenshot protection.

Top.-3 Proven applications for Xiaomi:

AnnexFeaturesCons
AppLock (from DoMobile Lab)Fingerprint lock, calculator masking, removal protectionAdvertising in the free version requires a lot of rights
Norton App LockIntegration with antivirus, blocking incoming callsBattery costs, paid functions
Smart AppLockFlexible rules (time, Wi-Fi, Bluetooth), no advertisingA complex interface for beginners

Warning: When installing third-party blockers, disable battery optimization for them in Settings β†’ Apps β†’ Permissions β†’ Battery Optimization. Otherwise, the system may force them to close and the lock will stop working.

πŸ’‘

Before installing a third-party blocker, check its reputation on Google Play. Some apps under the guise of "App Lock" steal data. Pay attention to the number of downloads (from 10 million+) and the rating (4.5+).

Method 5: Blocking through ADB (for power users)

If you need to block system applications (such as Settings or Contacts) that are not supported in App Lock, you can use ADB (Android Debug Bridge), which requires connecting the phone to your computer and knowing the command line.

Step-by-step:

  1. Turn on Developer Mode on your phone: go to Settings β†’ About Phone and click on MIUI Version 7 times.
  2. Return to Settings β†’ Additional β†’ For developers and activate Debugging over USB.
  3. Connect the phone to your PC, install ADB drivers and open the command line.
  4. Enter the command to block the application (for example, Settings): adb shell pm hide com.android.settings Replace com.android.settings with the desired application package (you can find it through the App Inspector).
  5. To unlock, use: adb shell pm unhide com.android.settings

πŸ’‘

Blocking through ADB does not set a password, but hides the application from the menu completely. To return it, you will need to reconnect to the PC. This method is only suitable for advanced users!

⚠️ Attention: misuse ADB Do not block critical system processes (e.g. com.android.systemui) or the phone may stop loading.

Frequent problems and solutions

Even after you set up the lock, users are faced with typical errors, and here's how to fix them:

  • πŸ”„ App Lock resets after reboot: check if AutoRun for Security option is enabled in Settings β†’ Annexes β†’ Autostart control.
  • πŸ“΅ No notifications from blocked apps: in the App Lock settings, turn off the option to Hide notifications.
  • πŸ”‘ Forgot the password from App Lock: you can reset it through Mi Account if the phone is linked to an account. Go to account.xiaomi.com, select Find the device β†’ Unlock App Lock.

If none of these methods worked, check if the security features in Settings β†’ Special Options β†’ Simplified Mode are disabled. In this mode, many MIUI limitations do not work.

Can I put a password on individual chats in Telegram/WhatsApp?
No, App Lock blocks the entire app, but Telegram has a built-in Chat Protection feature (in its privacy settings) that allows you to set an additional password for individual conversations, and WhatsApp doesn't have that option, so you have to block the entire app.
Will App Lock work if the phone runs out?
Yes, the lock is maintained even after the phone is turned off, but if the battery completely sits down and the phone turns off, the next time you turn on, you may need to enter a password from Mi Account (if you have account binding enabled).
Can I block access to the gallery or files?
Yes, but not through App Lock. Use: Built-in Safe Folder (available in Settings β†’ Passwords & Security) Third-party password-enabled file managers (e.g. Solid Explorer).
How do I know if someone has tried to hack my App Lock?
MIUI 14/15 has a password log to look at: Open Settings β†’ Passwords & Security β†’ Security log. Select the App Lock tab. This shows all failed unlock attempts with time, and if you see suspicious attempts, it's recommended to change your password and check your phone for viruses.
Does App Lock work on older Xiaomi models (Redmi 4/5, Mi A1)?
On devices older than 2018 (with MIUI 9 and below), App Lock may be missing or unstable. In this case: Update the firmware to the latest available version via Settings β†’ System Update. Use third-party blockers (such as DoMobile Lab’s AppLock). On Android One models (such as Mi A1/A2), there is no built-in App Lock β€” only third-party solutions.