How to remove the password from the Xiaomi phone: all ways to unlock

Forgot the pattern lock or PIN-Does the phone lock after failed typing attempts? Don't panic - there are several official and alternative ways to remove the password without losing data (or with minimal loss). In this article, we will discuss 5 proven methods, including unlocking through Mi Account, resetting to factory settings, using the ADB and even bypass locking on old models without linking to the account.

It is important to understand that the effectiveness of the method depends on the version of MIUI, the model of the smartphone (for example, Redmi Note 10 vs POCO F5) and whether previously enabled features like Find My Device or debugging on USB. We will describe in detail each option – from the simplest to technically complex – and also warn about possible risks (for example, models with a MediaTek chip after reset may require authorization of the previous Google account).

If you're looking for a way to get around the lock without losing data, you can go straight to the Mi Account or ADB sections. If the phone doesn't respond to the password at all, you'll have to consider a full reset, and let's start with the safest method.

1 Unlocking through Mi Account (official method)

This is the only legal method approved by Xiaomi that works on most modern devices (e.g. Redmi 12, POCO X5 Pro, Xiaomi 13T).The main condition is that the phone must be linked to the Mi Account before locking, and you must have access to the email or phone number specified during registration.

Algorithm of action:

  • πŸ”Ή Enter the wrong password 5 times in a row until the message β€œForgot password?” appears (or β€œForgot password?” on the English firmware).
  • πŸ”Ή Click on this inscription and the Mi Account entry window will open.
  • πŸ”Ή Enter your username (email or phone) and password from your account. If you don't remember your password, use the recovery function at account.xiaomi.com.
  • πŸ”Ή After successful authorization, the system will offer to create a new PIN-code.

⚠️ Attention: On devices with MIUI 14+ After unlocking through Mi Account, additional verification may be required SMS If you have two-factor authentication, make sure you have access to the backup code.

πŸ“Š Your Xiaomi phone is tied to your Mi Account?
Yeah, tied up and remembering the data.
Yeah, but I don't remember the password.
No, not tied.
I don't know.

2. reset to factory settings (Hard Reset)

If you don't remember the Mi Account data or the phone isn't tied to the account, the radical method is a complete reset, which will delete all the data (photos, contacts, messages), but unlock the device, which works on all Xiaomi models, including the Redmi 9A, POCO M4 Pro and older devices.

Instructions for resetting via Recovery Mode:

  1. Turn off the phone (press the power button for 10 seconds).
  2. Press the power button + volume up at the same time and hold for 10-15 seconds until the Mi logo appears.
  3. In the Recovery menu, select Wipe Data (use volume buttons for navigation, power button for confirmation).
  4. Confirm the reset by selecting Wipe All Data.
  5. After the process is complete, select Reboot.

⚠️ Note: On devices with MediaTek chip (e.g. Redmi) 8A, Redmi 9C) After the reset, a request may appear to enter data from the previous Google account (FRP-To avoid this, remove the reset before resetting. SIM-map and turn off Wi-Fi.

β˜‘οΈ Preparing for Xiaomi's reset

Done: 0 / 4

3. Unlock through ADB (for advanced users)

If the phone has USB debugging enabled (Settings β†’ About Phone β†’ MIUI version, tap 7 times to activate the developer mode), you can delete the file with the password through the computer. The method works on MIUI 12-14, but requires preliminary preparation.

Step-by-step:

  1. Connect your phone to your PC through USB-cable (original!).
  2. Open the Command Prompt (Windows) or Terminal (Mac/Linux) in the folder with ADB.
  3. Enter the commands in order: adb devices (to display your device) adb shell su rm /data/system/gesture.key rm /data/system/password.key rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboot
  4. After resetting, the password will be reset.

πŸ”§ Technical note: On MIUI 14 The path to the lock files may be different. If the commands don't work, try deleting the files in the folder. /data/system/ with the extension *.key.

What if the ADB can’t see the device?
Make sure that Xiaomi drivers are installed (download from [official website](https://new.c.mi.com/global/miuidownload/index)). Try another one. USB-cable or port. Enable "File Transfer" in your phone settings" (MTP) instead of "Only charging".

4.Block bypass via Fastboot (for models without Mi Account)

Some older Xiaomi models (e.g. Redmi 4X, Redmi Note 5) can reset passwords through Fastboot mode without losing data.

Instructions:

  • πŸ”Œ Turn off the phone and press the power button. + Volume down to enter the Fastboot.
  • πŸ”Œ Connect the device to the PC and open the Command Prompt in the folder with ADB.
  • πŸ”Œ Enter the command: fastboot oem unlock (some models may require fastboot flashing unlock).
  • πŸ”Œ Once you unlock the bootloader, enter: fastboot erase userdata and fastboot erase frp.
  • πŸ”Œ Reboot your phone with the fastboot reboot command.

⚠️ Attention: Unlocking the loader (OEM Unlock resets all data on the device and can cause a phone to break if the process is interrupted. (Xiaomi 12, POCO F4) This method may not work due to hardware protection.

5. Alternative methods (for specific cases)

If standard methods don’t help, consider these options:

MethodSuitable forRisks.Instructions
Resetting through Find My DeviceDevices with Find My Device enabled and access to Google accountDeletion of all dataGo to google.com/android/find, select your device and click β€œClean your device”.
Passage EDL-regimePhones on Qualcomm (e.g. POCO X3, Redmi K40)High risk of brik, requires author firmwareNeeded. EDL-cable and the Mi Flash Tool. Details on the forums 4PDA or XDA-Developers.
Delete the lock files via TWRPDevices with installed custom TWRP RecoveryLosing data if you don’t backupIn TWRP, go to Advanced β†’ File Manager and delete /data/system/gesture.key and password.key files.

πŸ’‘ Useful tip: If you often forget passwords, set up Smart Lock in Settings β†’ Screen locking β†’ Smart Lock: This feature will automatically unlock the phone in trusted locations (like at home) or when connected to trusted devices (like Mi Band smartwatches).

πŸ’‘

Before selling a Xiaomi phone, always reset via Settings β†’ About Phone β†’ Reset, not Recovery.This will remove the binding to the Mi Account and avoid problems for the new owner.

Frequent Mistakes and How to Avoid Them

Many users experience typical problems when trying to unlock, and here are the most common:

  • 🚫 Error "This device is locked" after reset: means it is enabled FRP-The solution is to enter your old Google account or use tools like FRP Bypass Tool (risky!).
  • 🚫 ADB Does not see the device: check if debugging is enabled USB, If you have drivers installed, try another cable.
  • 🚫 After the discharge, an old one is required PIN: On some models (Redmi Note 8 Pro) after Hard Reset can save the request for the old password.
  • 🚫 Mi Account unlocking does not work: make sure your phone is connected to the Internet (via Wi-Fi or mobile network). If your account is blocked, restore access to the Xiaomi website.

πŸ” Diagnostics: If none of the methods worked, determine the exact phone model and version MIUI (It's written on a box or in settings. POCO F3 on MIUI 13 and Redmi. 9T on MIUI 12.5 Different approaches may be required.

πŸ’‘

On devices with MIUI 14+ and MediaTek chip (e.g. Redmi) 10C) After reset, you may need to log in to your previous Google account. To avoid this, turn off your Wi-Fi before reset and retrieve it. SIM-map.

Can I delete my Xiaomi password without losing data?
Yes, but only if: πŸ”˜ Phone is tied to Mi Account (unlocking through a forgotten password). πŸ”˜ Debugging is on. USB (method ADB). πŸ”˜ Custom recaveri installed TWRP (Delete the lock files; in all other cases, the data will be deleted.
What if you ask for an old Google account after a reset?
This is FRP-blocking (Factory Reset Protection). Solutions: Enter the data of the previous Google account that was on the phone before the reset. If you do not remember the data, try to restore access through accounts.google.com. To bypass FRP on Xiaomi you can use special tools (for example, Mi FRP Tool), but this is risky and can lead to a blink.
Does the method of calling a locked phone work?
No, this method doesn't work on modern versions of MIUI (12 and later), and you used to call a locked phone, take a call, and access settings through the call menu, but now this vulnerability is closed.
How do I know which chip is in my Xiaomi (MediaTek or Qualcomm)?
There are a number of ways: πŸ“± Look at the settings β†’ The phone. β†’ Full specification β†’ Processor. πŸ” Type a phone model into a search engine (e.g., a Redmi Note 11 processor"). πŸ› οΈ Use applications like CPU-Z or AIDA64 (For example, Redmi 10 comes with MediaTek Helio. G88, POCO F4 β€” Qualcomm Snapdragon 870.
Can I unlock Xiaomi through a service center?
Yeah, but: πŸ“‹ Proof of ownership (checks, box with) will be required IMEI). πŸ’° Cost of service from 1000 before 3000 ruble depending on the model. ⚠️ Some services may be denied if the phone is blacklisted (stolen/lost). mi.com/ru/service.