How to completely remove the lock screen on Xiaomi: official and hidden methods

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:

  1. Create a backup through Settings β†’ About Phone β†’ Backup.
  2. Make sure you know the username and password from your Mi Account – it may be required to unlock after a reset.
  3. 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:

  1. Open Settings β†’ Screen lock and password.
  2. Enter the current password/pattern lock for confirmation.
  3. Select the option "Swipe" (can be called "No password" or "No protection").
  4. 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.
πŸ“Š What type of lock you use on Xiaomi?
PIN-code
pattern lock
Fingerprint.
Facial recognition
Swipe/no locking

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:

  1. Activate Developer Mode: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  2. Back to Settings β†’ Additionally. β†’ For developers and include: πŸ”§ Debugging by USB πŸ”“ Unlocking OEM (if)
adb devices

There should be a device with a serial number.

adb shell pm uninstall --user 0 com.android.keyguard

If 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 0

Reboot 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 userdata

Install 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:

  1. Turn off the phone.
  2. Press the Power Button + Volume up for 10-15 seconds at the same time until the Mi logo and Recovery menu appear.
  3. 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?
This means that the reset was incorrectly performed or the phone has enabled the "Data Protection upon Reset" function (available on MIUI 13+). In this case: 1. Repeat the reset by selecting Wipe All Data (not Factory Reset). 2. If it does not help, swipe the phone through Fastboot with the official firmware from the Xiaomi website. 3. Contact the service center with a proof of purchase (check or box).

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:

  1. Load the phone to TWRP (Plug Power + Volume Up).
  2. Go to the File Manager section.
  3. 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:

  1. On the locked screen, click "Forgot Password?" (or Forgot Password).
  2. Select "Unblock with Mi Account".
  3. Enter the username and password from your Xiaomi account.
  4. Confirm unlocking via SMS or email (if two-factor authentication is enabled).
  5. 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:

MethodModels.InstructionsRisks.
πŸ“ž Call to a locked phoneRedmi 3S, Redmi Note 3Call 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 OTGMi 5, Mi 6Connect. USB-keyboard and enter the password blindly (if you know it).Required. OTG-cable and compatible keyboard.
πŸ“ Delete gatekeeper.password.key via ADBMIUI 9–10Follow the command: adb shell rm /data/system/gatekeeper.password.keyIt 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:

PurposeRecommended methodYou need a PC?Data loss?Difficulty
Remove the PIN/pattern lockOfficial settings (Swipe)❌ No.❌ No.⭐ Very simple.
Remove the swipe completelyADB-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 dataUnlocking 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.

FAQ: Frequent questions

❓ Can you remove the screen lock on Xiaomi without a computer?
Yes, but only if you remember your current password. Go to Settings β†’ Screen Lock and Password and select Swipe. You can't completely remove a swipe without a PC, you'll need ADB or TWRP.
❓ Why after the team? ADB lockdown returns?
This is due to the automatic recovery of system files after the reboot. To consolidate the result: After executing the command adb shell pm uninstall --user 0 com.android.keyguard do not restart the phone. Install an alternative launcher (like Nova Launcher) and disable the standard MIUI Launcher. Use the Shizuku + ADB AppControl app to lock system processes.
❓ How to unlock Xiaomi if you forget your password and your Mi Account?
If the phone is tied to someone else's Mi Account, you can't officially unlock it: πŸ“„ Contact the Xiaomi service center with a check or a box from your phone. πŸ’» Swipe your device through Fastboot using the Mi Flash Tool (requires an unlocked bootloader). πŸ”§ Use paid unlock services (e.g. DC-Unlocker), but this violates Xiaomi’s policy and may result in a lockdown IMEI.
❓ Why Xiaomi asks for an old password after reset?
This means that the phone has been enabled with Reset Data Protection (available on MIUI 13+). Solutions: Reset by selecting Wipe All Data (not Factory Reset). Sweep the phone with official firmware through the Mi Flash Tool (you will need to unlock the Bootloader). If the phone is new, contact the store with a check - they will be able to unlock it through service utilities.
❓ Can you remove the lock on Xiaomi with corporate firmware?
If the phone is controlled via Android Enterprise or Mi Enterprise, the device administrator has blocked the ability to disable the password: 🚫 Locking the device (may require resetting). πŸ“΅ Loss of access to corporate data (email, applications). IT-Your company's department to remove restrictions.