How to remove the password on the Xiaomi phone: all working methods

Forgot the pattern lock or PIN-Is it a Xiaomi code? Or do you just want to turn off the lock because it's getting in the way? In this article, we'll look at all the current ways to remove passwords on Redmi devices, POCO Mi – from standard settings to advanced methods via Fastboot and Recovery.

It is important to understand that some methods require prior preparation (for example, Mi Account binding or USB debugging enabled), while others will lead to a complete data reset, and we will describe each option in detail, its pros, cons and nuances, so that you can choose the best way to suit your situation.

If you are looking for a solution for a particular model (such as the Redmi Note 12 or the POCO X5 Pro), look at the compatibility table at the end of the instructions section.

1. Delete password through settings (if phone unlocked)

The easiest method is when you remember your current password and can log in.It works on all Xiaomi devices with MIUI 12 and later, including the latest versions of MIUI 14/15 based on Android 13/14.

You don't need a computer, you don't need cables, you don't need software, you do it right on the menu of the phone. PIN-code, pattern lock or fingerprint.

  • πŸ“± Open the Settings. β†’ Passwords and security
  • πŸ”’ Select Screen Lock (can be called Screen Protection)
  • πŸ“ Enter the current password to confirm
  • ➑️ Click Delete Password or No (depending on version) MIUI)

Please note that if you have two-factor authentication set up (e.g. fingerprint + PIN), the system may require both data to be entered.

πŸ’‘

If you delete your password, the phone asks for it again, restart the device, and sometimes MIUI caches the old lock settings.

2. Reset password through Mi Account (without loss of data)

This is a good way to do it if you forgot your password but previously linked your phone to your Mi Account.The method works on most Xiaomi, Redmi and POCO models released after 2018 and does not require a factory reset.

Important: the phone must be connected to the Internet (via mobile network or Wi-Fi), and the Find Device function must be activated in the settings. If these conditions do not exist, move to the next section.

  1. 🌐 Go to the Mi Cloud website and log in.
  2. πŸ“ In the Find Device section, select your phone.
  3. πŸ”„ Click Unlock Screen (may be called Reset Password).
  4. βœ… Confirm the action through SMS email.

After 5-10 minutes, the phone unlocks automatically, and if that doesn’t happen, check your internet connection or try to reboot the device.

πŸ“Š Have you ever used Mi Cloud to unlock?
Yeah, it helped.
Yeah, but it didn't work.
No, I haven't.
I don't know what it is.

⚠️ Note: If the phone has the option of Data Protection in case of loss (in some regions), after unlocking through Mi Cloud, you may need to enter the old password.

3 Unlocking through Recovery and Fastboot modes

If the previous methods didn't work, you'll have to use hardware modes. These are more complex methods that require a computer, USB-And they work without the Mi Account attached.

We will consider two options:

  • πŸ”§ Through Recovery – reset to factory settings (deletes all data).
  • ⚑ Through Fastboot – Delete the password file without completely resetting (requires an unlocked bootloader).

For both methods, you will need:

  • πŸ’» Computer with Windows/Linux/macOS
  • πŸ”Œ Original. USB-cable (better from the set)
  • πŸ› οΈ Utilities. ADB Fastboot (you can download from the official website)

Install Xiaomi drivers on PC|

Download Platform Tools (ADB/Fastboot) |

Connect the phone to the computer |

Disable antivirus (can block commands)|

Charge your phone at least 50 times%-->

Method 1: Recovery Reset (complete cleaning)

This will erase all the data on your phone, including photos, contacts and apps, and only use it if you don't have any other options.

  1. πŸ”„ Turn off the phone, then press the power button. + Loudness up before the appearance of the Mi logo.
  2. πŸ“± In the Recovery menu, select Wipe Data β†’ Wipe All Data (Manage volume and power buttons).
  3. βœ… Confirm the reset and wait for the reset.

After that, the phone will turn on as new, and you can create a new password or skip this step at the setup stage.

Method 2: Delete password via Fastboot (without data loss)

This only works on devices with the bootloader unlocked, and if you've never unlocked the Bootloader, it won't work.

fastboot erase userdata


fastboot erase locksettings




fastboot reboot

If after restarting the phone still asks for a password, try repeating commands or using an alternative method:

fastboot flash userdata userdata.img


fastboot reboot

Where userdata.img is a partition backup that can be created in advance through TWRP.

What if Fastboot doesn’t recognize your phone?
Make sure Xiaomi USB Drivers are installed. Try another cable or USB port. Some models (Redmi Note 10 Pro, POCO F3) need to first enter the fastboot oem unlock command, even if the bootloader is already unlocked.

4.Use of ADB to delete password (advanced method)

If you have USB debugging enabled and your phone is connected to your computer, you can delete your password through ADB without resetting, which works on MIUI 11-15 and requires prior preparation.

You'll need:

  • πŸ”§ Included debugging by USB (Settings β†’ The phone. β†’ Version. MIUI β†’ 7 times tap to unlock the developer mode).
  • πŸ’» Computer with installed ADB and drivers.
  • πŸ”Œ Connected phone (even if the screen is locked).

Instructions:

  1. Open the command line in the ADB folder.
  2. Enter adb shell su rm /data/system/gesture.key rm /data/system/password.key rm /data/system/locksetting.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboot

After the reboot, the lock will be reset, and if the commands don't work, try replacing gesture.key with pattern.key.

⚠️ Note: On some models (Xiaomi) 12T, Redmi K50) The password files are stored elsewhere, in which case use the command adb shell am start. -n com.android.settings/.ChooseLockGeneric, to reset the lock settings.

5 Unlocking through Xiaomi Service Center

If all the independent methods did not work, the official service remains. Xiaomi provides the unlock service through authorized centers, but there are nuances:

  • πŸ“„ You will need a confirmation of purchase (check, box or binding to Mi Account).
  • πŸ’° Cost of service: from 500 to 2000 rubles (depending on the model and region).
  • ⏳ Term of execution: 1-3 working days.

To find the nearest service center:

  1. Go to the official website.
  2. Choose a country and a city.
  3. Check the reviews about the center (some informal workshops may refuse to unlock).

The advantage of this method is to ensure that data is kept safe (unless the phone has been encrypted), but on newer models (Xiaomi 13, Redmi Note 12 Pro+), even service centers may require a factory reset.

πŸ’‘

Officially unlocking through the service center is the only legal way if the Mi Account password is forgotten and debugging is disabled via USB.

6. Alternative methods (for experienced users)

If the standard methods don't work, you can try non-obvious solutions that are suitable for specific situations and require technical knowledge.

MethodConditionsRisks.Models on which it works
Reset via EDL ModeYou need an authorized Xiaomi account and boxing (such as UFi)Could block IMEIRedmi 9/10, POCO X3, Mi 10
Firmware via SP Flash ToolYou need an official firmware for your modelData loss, possible brickRedmi Note 8/9, Mi A3
Use of TWRPEstablished custom recoveryViolation of guaranteeAny model with an unlocked loader

For example, to unlock through EDL Mode, you will need:

  1. Transfer the phone to Emergency Download (closing contacts on the board).
  2. Connect via UFi box or EasyJTAG.
  3. Switch the security module (modemst1 and modemst2).

This method is used by service centers, but self-use can lead to the loss of IMEI or complete inoperability of the phone.

Comparison of methods: which one to choose?

To make it easier for you to determine, we have collected the key parameters of each method in one table:

MethodData securityDifficultyConditions requiredImplementation time
Through settingsβœ… Preserve.⭐ (simple)Knowledge of the current password1-2 minutes
Mi Accountβœ… Preserve.⭐⭐ (middle-of-the-road)Linked account, Internet5-15 minutes
Recovery (dumping)❌ Removed⭐⭐ (middle-of-the-road)No condition.10 minutes.
Fastbootβœ…/❌ (model)⭐⭐⭐ (difficult)Unlocked bootloader, PC15-30 minutes
ADBβœ… Preserve.⭐⭐⭐ (difficult)USB debugging enabled10-20 minutes

If you're not sure about your abilities, start with the simplest methods (Mi Account or Recovery reset, EDL) leave it to the last resort.

FAQ: Frequent questions about unlocking Xiaomi

Can I delete my password without losing data if USB debugging is disabled?
Yes, but only if you have Mi Account tied and Find Device enabled, in which case use the Mi Cloud method (Section 2), if your account is not tied, you will have to reset your data via Recovery or Fastboot.
Why does the phone still ask for a password after resetting via Fastboot?
This is because of encryption. On newer models (Xiaomi 12/13, Redmi Note 11/12), even after deleting the password files, the system may require it to be entered. Solution: Repeat fastboot erase userdata and fastboot erase locksettings. If it doesn't work, reset completely through Recovery.
How to unlock Redmi Note 10 Pro without Mi Account?
There are two options left on this model without a linked account: Recovery reset; EDL Mode (requires a UFi box or EasyJTAG box); if you have officially purchased your phone, contact the service center with a check.
What to do if IMEI is missing after unlocking?
This is a common problem when using EDL Mode or unofficial firmware to restore IMEI: Download the original firmware for your model from Xiaomi Firmware. Run it through Fastboot or Recovery. IMEI Use the engineering menu (#4636##) or the Maui utility META. ⚠️ Attention: Self-modification IMEI It may be illegal in your country.
Can I unlock POCO F5 through TestPoint?
Yes, but it's a risky method. TestPoint is the circuit of a special pin on a motherboard to enter a computer. EDL On the Mode. POCO F5 The order of the action is: Turn off the phone and remove the back cover. Find the TestPoint contacts (usually signed or marked on the board). USB-The phone will be called Qualcomm. HS-USB QDLoader 9008. via Mi Flash Tool. ⚠️ Risks: damage to the fee, loss of warranty, blocking IMEI.