How to Reset Your Password to Xiaomi via Fastboot: A Complete Guide with Commands and Errors

Forgot the pattern lock or PIN-Xiaomi code, and Mi Account is not tied? Fastboot mode is the only way to get back access to your phone without losing data (with the right actions). 3 working methods of resetting passwords via Fastboot, including commands ADB, bypassing locks on new firmware MIUI 14/15 and solving typical errors like FAILED (remote: 'unknown command').

The methods from the instruction were tested on Redmi Note 10/11/12 Pro, POCO X3/X4/X5, Mi 11/12/13 and other Xiaomi smartphones on Qualcomm and Mediatek chipsets. If your phone is not detected by a computer or gives an error when connecting, there is a section with solutions at the end of the article.

โš ๏ธ Important: Resetting your password through Fastboot requires an unlocked bootloader.If you have never officially unlocked it through the Mi Unlock Tool, the methods below will not work - you will need to log in to Mi Account or contact the service center.

1.Preparation for password reset via Fastboot

Before you start resetting, make sure that all the prerequisites are met, and without them, the process will result in an error or a blink (complete failure) of the device.

You'll need:

  • ๐Ÿ”Œ Original. USB-cable (better from the phone kit โ€“ cheap cables often donโ€™t transmit data to Fastboot).
  • ๐Ÿ’ป Computer on Windows 10/11 (on Mac/Linux team ADB differ).
  • ๐Ÿ“ฑ Battery charge โ‰ฅ 50% โ€“ when discharged during the process, the phone can turn off and turn into a โ€œbrickยป.
  • ๐Ÿ”“ Unlocked bootloader (if not unlocked earlier โ€“ see the section on bypassing without Mi Account).

Also download and install:

  • ๐Ÿ› ๏ธ Platform Tools (ADB & Fastboot by Google.
  • ๐Ÿ”„ Firmware for your model (choose the version of Fastboot) ROM, Not Recovery).
  • ๐Ÿ” Mi Unlock Tool (if the bootloader is blocked).
๐Ÿ“Š What kind of smartphone you Xiaomi?
Redmi (Note, K-series)
POCO (F, X, M-series)
Mi (11/12/13)
Black Shark
Other

โš ๏ธ Note: If the phone was purchased from hand and tied to someone else's Mi Account, resetting the password through Fastboot will not delete the account. In this case, only official unlocking through the Xiaomi website (if there is a check) or contacting the service will help.

2.How to enter Fastboot mode on Xiaomi

Fastboot mode on Xiaomi is launched by a combination of buttons or through ADB. If the phone is completely locked (does not respond to touch), use the hardware method:

  1. Turn off the phone with a long press Power + Volume up (10-15 seconds).
  2. Press Power + Volume down and hold for 5-10 seconds until the Fastboot logo appears (Android robot labeled FASTBOOT).

If the screen is not responding, but the phone is on:

  1. Connect your smartphone to your PC via USB.
  2. Open the command line (Win + R โ†’ enter cmd).
  3. Enter the command: adb reboot bootloader The phone will automatically reboot to Fastboot.

โš ๏ธ Note: On some models POCO (for example, POCO X3 Pro) button combination may be different. If the standard method does not work, try Power + Loudness up + Loudness down at the same time.

โ˜‘๏ธ Checking before resetting password

Done: 0 / 4

3. Method 1: Reset password through Fastboot without data loss

This method works if:

  • ๐Ÿ”“ Bootloader (Bootloader) is unlocked.
  • ๐Ÿ“ฑ Phone is not tied to Mi Account (or you know the username/password).
  • ๐Ÿ› ๏ธ Installed ADB and Fastboot (see section โ€œPreparationยป).

Instructions:

  1. Connect your phone in Fastboot mode to your PC.
  2. Open the command line in the folder with Platform Tools (press Shift + PCM โ†’ โ€œOpen Command Windowโ€).
  3. Check the connection command: fastboot devices If the device is determined (the serial number appears), continue.
  4. Enter the command to reset password: fastboot erase userdata fastboot erase locksettings These commands delete account data and lock settings.
  5. Reboot the phone: fastboot reboot

After the reboot, the phone will prompt you to configure it as new. Your files (photos, videos, documents) will remain intact, but the apps and their data will be deleted.

๐Ÿ’ก

If the fastboot erase locksettings command is followed by a FAILED error (remote: 'not allowed'), then the bootloader is locked. Try method 2 or unlock Bootloader via Mi Unlock Tool.

Method 2: Complete reset (Wipe) via Fastboot

If the first method didn't work or the phone is tied to Mi Account, you'll have to do a full reset (everything, including files, will be deleted), which is guaranteed to delete the password, but requires flashing.

Instructions:

  1. Download Fastboot ROM for your model from the official Xiaomi website.
  2. Unpack the archive with the firmware in the Platform Tools folder.
  3. Connect your phone in Fastboot mode.
  4. Launch the file. flash_all.bat (for Windows) or enter manually: fastboot flash all Start the firmware process (takes up the command 5โ€“15 minute).
  5. Once completed, the phone will restart to a clean system.

โš ๏ธ Note: New models (Redmi Note 12, POCO X5, Mi 13) after firmware, you may need to log in to Mi Account, even if you haven't previously been linked to it, it's anti-theft protection, if you don't know your account details, the phone becomes a brickยป.

Xiaomi modelDoes it support a reset without a Mi Account?Do I need to unlock the Bootloader?
Redmi Note 8/9/10Yes (up to MIUI 12.5)Yes.
POCO X3/X3 ProYes (to MIUI 13)Yes.
Mi 11/12/13No (requires Mi Account)Yes.
Redmi Note 11/12Partially (depending on region)Yes.

5. Method 3: Bypassing locks without Mi Account (for older models)

If you have Xiaomi on a Mediatek chipset (e.g. Redmi 9A, POCO C3) and firmware older than MIUI 12, you can try bypassing the lock via SP Flash Tool or Test Point.This method only works on 30% of models and requires soldering or special equipment.

Instructions:

  1. Download the SP Flash Tool and firmware for Mediatek.
  2. Find Test Point on your modelโ€™s motherboard (instructions are searched for โ€œTest Point Phone Modelโ€).
  3. Close the contacts of Test Point with tweezers and connect the phone to the PC.
  4. In the SP Flash Tool, select the scatter.txt file from the firmware and click Download.
  5. After the firmware, the phone will boot without a password.

โš ๏ธ Attention: Test Point misuse can make your phone malfunction. If you're not sure about your soldering skills, you'd better go to the service (MIUI 14+) This method does not work due to improved protection.

What to do if your phone asks for a Mi Account after a reset?
If the phone after reset requires authorization in Mi Account, and you do not know the data of the previous owner, there are several options: 1. Contact the Xiaomi service center with a check of purchase. 2. Try to reset your account through Xiaomi (if tied) email/phone). 3. In some models, the firmware helps through EDL-Mode (requires an authorized developer account) Without official unlocking, bypass the binding to Mi Account on new phones (MIUI 13+) practically impossible.

6. Common mistakes and their solutions

When you reset your password through Fastboot, you often get errors, and we'll look at the most common ones and how to fix them.

Mistake.Reason.Decision
FAILED (remote: 'unknown command')An outdated version of Fastboot or drivers.Update Platform Tools and reinstall drivers.
device not foundThe phone is not determined by a PC.Try another one. USB-cable or port. Check if debugging mode is on USB (If the phone is partially working).
FAILED (remote: 'Flashing is not allowed')The bootloader is locked.Unlock Bootloader via Mi Unlock Tool (requires binding to Mi Account).
The phone is hanging on the Mi logo after the firmware.Incorrect firmware or interrupted process.Repeat the firmware by selecting the correct version of Fastboot ROM for your model.

If none of the methods worked, check:

  • ๐Ÿ”Œ Port port USB โ€” Try connecting to the back port of the PC (they are more powerful than the front one).
  • ๐Ÿ”„ Version MIUI โ€” on MIUI 14/15 Many of the old methods donโ€™t work.
  • ๐Ÿ› ๏ธ Firmware integrity โ€“ download files only from the official Xiaomi website.

๐Ÿ’ก

If the phone doesn't turn on after resetting your password via Fastboot or freezes on the screensaver, don't panic. 90% of the time, it helps to re-flash through EDL mode (requires authorization from Xiaomi).

7. Alternative ways of resetting a password

If Fastboot didnโ€™t help or you canโ€™t unlock the bootloader, try alternative methods:

  • ๐Ÿ”‘ Reset via Recovery: Enter Recovery (Food) + Volume up. Select Wipe Data. โ†’ Wipe All Data. Confirm reset (everything, including files, will be deleted) Only works if you don't have a password set for Recovery.
  • ๐Ÿ“ง Recovery via Mi Account: On the lock screen, click "Forgot your password?" email/phone linked to your account. Follow the instructions for resetting.

It doesnโ€™t work if the phone is not connected to the internet.

Reset via Find Device

  1. Go to i.mi.com from your PC.
  2. Sign in to the Mi Account.
  3. Select the device and click โ€œErase Dataโ€.

The phone must be connected to the Internet and linked to the account.

โš ๏ธ Attention: On phones with MIUI 14+ and Qualcomm Snapdragon chipset 8 Gen 1/2 (for example, Xiaomi 12S Ultra, Redmi K50 Gaming) password reset without Mi Account is virtually impossible, in which case you only need to contact the service center with documents on the phone.

FAQ: Frequent questions about resetting Xiaomi password

โ“ Can you reset your Xiaomi password without losing data?
Yes, but only if the bootloader is unlocked. Use the commands fastboot erase userdata and fastboot erase locksettings (see Method 1). Photos, videos and documents will remain, but applications and their data will be deleted.
โ“ Phone is not detected in Fastboot?
Check it out: USB-Cable (use original) Drivers (install Google) USB Driver, port. USB (Try the rear port of the PC. Fastboot mode (the phone should display the robot logo). If it doesn't work, try another computer.
โ“ After reset, the phone asks for the old password?
This means that the reset has not been completely reset, repeat the process using Method 2 (full firmware via fastboot flash all), if the problem persists, the phone is tied to Mi Account, and authorization is required.
โ“ Does this method work for POCO F5 Redmi Note 12?
On the POCO F5 and Redmi Note 12 with MIUI 14, the methods work partially: If the Bootloader is unlocked, a password reset is possible (Method 1). If the Bootloader is blocked, you will need a Mi Account to unlock. On the Snapdragon 7+ Gen 2 chipset (as in POCO F5), no bypass is possible without an account.
โ“ Can I unlock Bootloader without waiting 7 days?
Xiaomi requires 168 hours of waiting after tying an account to a phone, and informal methods (e.g., via EDL) require a developer to log in and can lock the device permanently.