The lock screen on Xiaomi smartphones is not just a protection from prying eyes, but also a mandatory security element provided by the manufacturer. However, many users want to remove the lock screen for the sake of convenience: not to enter the screen. PIN-code or pattern lock hundreds of times a day, especially for home devices that don't leave the apartment.
But there are nuances: MIUI (branded shell Xiaomi) does not allow you to completely disable the lock screen with standard means - you can remove the password at most, leaving a swipe. And for complete removal you will need additional manipulations, including unlocking the bootloader or using ADB. In this article, we will analyze all working methods - from the simplest to advanced, taking into account versions of MIUI 12-14 and the features of the models Redmi, POCO, Xiaomi 11/12/13 series.
β οΈ Warning: Deleting the lock screen completely reduces the protection of personal data. If the phone is stolen, the attacker will have access to all apps, photos and accounts (including banking accounts!
In order not to lose data, before any manipulation of the system:
- Create a backup through Settings β About Phone β Backup.
- Make sure you know the username and password from your Mi Account β it may be required to unlock after a reset.
- Charge the phone at least 50% - interruption of the process due to the discharge of the battery is fraught with "bricking".
1. How to remove password/pattern lock (official method)
The safest method is not to remove the lock screen completely, but simply to swipe the security type, which does not require superuser rights and works on all versions of MIUI.
Instructions:
- Open Settings β Screen lock and password.
- Enter the current password/pattern lock for confirmation.
- Select the option "Swipe" (can be called "No password" or "No protection").
- Confirm the action β the system will warn about the risks.
β οΈ Note: Some models (such as Xiaomi 13 Pro or Redmi Note 12) will still have a minimum lock after that, a swipe up to unlock. ADB custom-made.
If the Swipe option is not available (in gray), then:
- π Mi Account protection is enabled on the phone β turn it off in Settings β Xiaomi account β Security.
- π± The device is tied to corporate policy (for example, through Android Enterprise).
- π I recently reset my settings β wait 24 hours.
2. Removal of lock via ADB (no root)
This method is suitable for MIUI 12-14 and allows you to remove even the swipe, but requires connecting the phone to the computer.
What you need:
- π₯οΈ Computer with Windows/macOS/Linux.
- π Cable USB Type-C (original, undamaged).
- π¦ Installed drivers ADB Fastboot (you can download from the official Android website).
- βοΈ Included debugging by USB phone-on.
Step-by-step:
- Activate Developer Mode: Go to Settings β About Phone and click on MIUI Version 7 times.
- Back to Settings β Additionally. β For developers and include: π§ Debugging by USB π Unlocking OEM (if)
adb devicesThere should be a device with a serial number.
adb shell pm uninstall --user 0 com.android.keyguardIf it doesn't work, try:
adb shell settings put global lock_screen_show_notifications 0
adb shell settings put secure lock_screen_lock_after_timeout 0Reboot the phone.
β οΈ Attention: On some firmware (MIUI 14 for Xiaomi 13 or POCO F5) This method can cause a cyclical reboot. If the phone is stuck on the logo, reset via Fastboot:
fastboot erase userdataInstall Platform Tools on PC|Enable debugging on USB phone-on|Connect the original cable|Check device detection by adb devices|Make a backup copy of the data-->
3 Unlocking through resetting settings (Hard Reset)
If you forget your password or your pattern lock, and other methods don't work, you'll have to reset hard, and that will delete all your phone data, including photos, messages and apps, and it works on all Xiaomi models, but it needs to be confirmed through Mi Account if the device was linked to your account.
How to make a Hard Reset:
- Turn off the phone.
- Press the Power Button + Volume up for 10-15 seconds at the same time until the Mi logo and Recovery menu appear.
- Use volume buttons for navigation and power button for selection: π English (or another language) π Wipe Data β Wipe All Data β Confirm
Reboot
β οΈ Note: If the phone was linked to Mi Account, you will need to enter your username and password after the reset. Without this data, you cannot unlock the device - this is protection against theft. If you do not remember the data, restore it to account.xiaomi.com.
Newer models (Xiaomi 12T, Redmi K50) may require an internet connection to verify after reset, if the Wi-Fi is not connected:
- πΆ Use mobile data (insert) SIM-card).
- π Connect to your PC and set up the internet via USB ethernet (required) OTG-cable).
What if the phone asks for an old password after reset?
4. Removal of lock via TWRP (for advanced)
If your Xiaomi has a custom TWRP recavator installed, you can delete the files responsible for locking the screen.This method requires an unlocked bootloader and is suitable for users who are already familiar with firmware.
Instructions:
- Load the phone to TWRP (Plug Power + Volume Up).
- Go to the File Manager section.
- Delete the following files and folders: π /data/system/gesture.key (graphical) π /data/system/password.key (PIN/password) π /data/system/locksettings.db (lockdown)
Reset the device.
β οΈ Note: Deleting these files may result in loss of account data (such as Google or Mi Account) and reset some settings:
- π Set up your phone as new.
- π Do not reset the password, otherwise the lock files will return.
If the phone is loaded into an endless bootloop (cyclic reboot) after deleting files, swipe vendor.img and boot.img via Fastboot:
fastboot flash vendor vendor.img
fastboot flash boot boot.img
fastboot rebootπ‘
Before working with TWRP, create a full /data partition backup in the recave itself, which will help restore data if something goes wrong.
5. bypassing the lock via Mi Account (if you forgot the password)
If you forget the lock screen password, but remember the Mi Account, you can unlock your phone through Xiaomiβs website.
- π± The phone was tied to the Mi Account.
- π Internet access (via Wi-Fi or mobile network).
- π More than 5 failed password attempts were not made on the device (otherwise you will need to wait 24 hours).
Step-by-step:
- On the locked screen, click "Forgot Password?" (or Forgot Password).
- Select "Unblock with Mi Account".
- Enter the username and password from your Xiaomi account.
- Confirm unlocking via SMS or email (if two-factor authentication is enabled).
- Set a new password or turn off the lock.
If the option "Forgot your password?" does not appear:
- π Restart your phone and try again.
- πΆ Connect to another Wi-Fi network (sometimes corporate networks block access to Xiaomi servers).
- π Wait 30 minutes β the system can temporarily block unlock attempts after several failures.
β οΈ Note: If the phone was bought from hand and tied to someone else's Mi Account, it is impossible to unlock it through this method without the help of the previous owner.
6. Alternative methods (for older models)
Xiaomi devices before MIUI 10 (e.g. Redmi 4X, Redmi Note 5) had vulnerabilities that allowed them to bypass lock without reset, most of them closed today, but some methods still work on firmware in 2018-2019.
Ways for old models:
| Method | Models. | Instructions | Risks. |
|---|---|---|---|
| π Call to a locked phone | Redmi 3S, Redmi Note 3 | Call your phone from another device, during the call quickly go to the settings and turn off the password. | The new firmware doesn't work. |
| π Keyboard connection OTG | Mi 5, Mi 6 | Connect. USB-keyboard and enter the password blindly (if you know it). | Required. OTG-cable and compatible keyboard. |
| π Delete gatekeeper.password.key via ADB | MIUI 9β10 | Follow the command: adb shell rm /data/system/gatekeeper.password.key | It can cause errors in the work of Google accounts. |
β οΈ Attention: MIUI 11 and later, these methods do not work β Xiaomi has closed most of the vulnerabilities. Using alternative methods on modern devices can lead to data loss or lock the bootloader.
π‘
On devices with MIUI 12+, the only reliable way to remove the lock is ADB (to turn off the swipe) or a full reset via Recovery. Other methods either do not work or carry high risks.
Comparison of methods: which one to choose?
To determine the method, answer the questions:
- π You want to remove only your password or the entire lock screen (including swipe)?
- π± Is there any important data on your phone that you canβt lose?
- π₯οΈ Are you ready to connect your phone to your computer and work with ADB?
- π§ Is the bootloader unlocked (Bootloader)?
Table of method selection:
| Purpose | Recommended method | You need a PC? | Data loss? | Difficulty |
|---|---|---|---|---|
| Remove the PIN/pattern lock | Official settings (Swipe) | β No. | β No. | β Very simple. |
| Remove the swipe completely | ADB-team | β Yes. | β No. | ββ Middle-Average |
| Forgot the password, the data is irrelevant. | Hard Reset via Recovery | β No. | β Yes. | β Very simple. |
| Forgot the password, you need to save the data | Unlocking with Mi Account | β No. | β No. | ββ Middle-Average |
| Complete removal of the block (for experienced) | TWRP + Delete System Files | β Yes. | β οΈ Maybe. | βββ Hardly. |
If you're a beginner, start with the simplest method, which is to change the lock type to swipe. If you want to completely remove the unlock screen and you're ready to experiment, use ADB. At the very least, if you forget your password, do Hard Reset, but be prepared to lose data.