How to Reset Your Password on Xiaomi Phone via Computer: Official and Unofficial Methods

Forgot the password on Xiaomi? unlock through the PC without losing data

Forget the pattern lock or PIN-The code on Xiaomi's smartphone is a bad situation, but it's fixable. If the standard Mi Account recovery methods don't work (e.g., no access to a linked number or mail), a computer comes to the rescue. In this article, we'll look at three proven methods: From official reset via Mi Unlock Tool to using Fastboot mode and even bypassing locking through ADB β€” If the phone has been turned on debugging USB.

Importantly, not all methods are suitable for the new Xiaomi 13/14, Redmi Note 12 or POCO F5 models due to the enhanced protection of MIUI 14/15. We will specify the limitations for each method and warn against typical errors that can turn a phone into a β€œbrick.” If you are not sure about your skills, you should contact the Xiaomi service center.

Before you start, check:

  • πŸ”Œ Do you have any originals? USB-cable (not all cables support data transmission).
  • πŸ’» Computer on Windows 10/11 (for Mac/Linux Additional drivers will be required).
  • πŸ“± The charge level of the phone is not lower than 30% – the discharge during the procedure can damage the firmware.

Method 1: Official reset via Mi Unlock Tool (for Mi Account phones)

This is the safest way, but it only works if:

  • πŸ“§ The phone had a Mi Account attached (you remember the login and password).
  • πŸ”— The device is not stolen (otherwise Xiaomi will block the unlock).
  • ⏳ At least 72 hours have passed since the last account was linked (Xiaomi’s rule for theft protection).

If the conditions are met, follow the instructions:

  1. Download the Mi Unlock Tool from the official website en.miui.com/unlock (the version must match your model).
  2. Install drivers for Xiaomi (if Windows doesn’t find them automatically, download Mi PC Suite).
  3. Connect your phone to your PC and start the Mi Unlock Tool. Sign in to your Mi Account.

The phone is unlocked from the operator (not tied to the phone). SIM)|Mi Account not banned|Antivirus is disabled on PC (can block drivers)|Port is used USB 2.0 (USB 3.0 sometimes doesn't recognize Fastboot)-->

Important: Once unlocked through the Mi Unlock Tool, the phone will be tied to your account even more strictly - reset without a password will be impossible for 30 days.

⚠️ Note: If the phone was bought with hands, the previous owner could not untie his Mi Account.In this case, Xiaomi will require proof of purchase (check or box with a cheque). IMEI). Without them, unlocking is impossible.

Method 2: Fastboot reset (without Mi Account but with data loss)

If you don’t remember the Mi Account data or the phone isn’t tied to your account, you can perform a hard reset via Fastboot mode, which works on most Xiaomi models, except for the new flagships with ARB 4.0+ protection (for example, Xiaomi 13 Ultra or Redmi K60 Pro).

You'll need:

  • πŸ–₯️ Computer with installed ADB/Fastboot Drivers (you can download it in Android) SDK).
  • πŸ“‚ Firmware for your model (download from xiaomifirmwareupdater.com).
  • πŸ”§ Mi Flash Tool (for firmware through the EDL, If the Fastboot doesn't work).

Instructions:

  1. Turn off your phone and log in to Fastboot (clamp Volume Down + Power).
  2. Connect to the PC and open the command line (Win + R β†’ enter cmd).
  3. Check the connection command: fastboot devices If the phone is determined (the serial number will appear), continue. If not, install the drivers again.
  4. Run the reset command: fastboot erase userdata fastboot erase frp This will delete all data, including the password.
  5. Reboot the phone: fastboot reboot
Xiaomi modelDoes it support resetting via Fastboot?Is it necessary to unlock the loader
Redmi Note 10/11βœ… Yes.❌ Not (unless you have a user experience). ROM)
POCO X3/X4βœ… Yes.⚠️ Yes (on some firmware)
Xiaomi 12/13❌ No (ARB 4.0 locks in)βœ… Official unlocking is required
Redmi 9/9Aβœ… Yes.❌ No.

πŸ’‘

If fastboot erase frp doesn't work, try unlocking the bootloader first through the Mi Unlock Tool, even if you don't remember the Mi Account password. Sometimes it works on older models.

⚠️ Attention: On phones with MIUI 13/14 And then, after you reset it, you might need to enter the old password when you first set it up, and if you don't remember it, the phone will stay locked. EDL (see Method 3).

Method 3: Firmware via EDL (for power users)

EDL (Emergency Download Mode) is a "emergency" firmware mode that allows you to reflash your phone even if it's completely locked.

  • πŸ”Œ Authorized account EDL (You can not get it for free – only through service centers or purchase from official partners).
  • πŸ“‚ Firmware file in.tgz format for your model (download only from verified sources!).
  • πŸ’» Mi Flash Pro (not to be confused with Mi Flash Tool!).

Step-by-step:

  1. Turn off your phone and turn it into EDL: For most models, press Volume Up + Volume Down + Power for 10-15 seconds. If it doesn't work, plug your phone into your PC, open Mi Flash Pro and press Refresh, the program will turn the device into EDL.

Mi Flash Pro

EDL

Choose firmware.

.tgz

Flash

After completion

What if the Mi Flash Pro doesn’t see the phone in EDL?
1. Check if Qualcomm drivers are installed HS-USB QDLoader 9008 (download XDA Developers). 2. Try another one. USB-port USB 2.0 back-panel). 3. Disable driver signatures in Windows: Open the command line on behalf of the administrator and do: bcdedit /set nointegritychecks on bcdedit /set Testsigning on Then Reboot the PC.

⚠️ Warning: Firmware through EDL Without an authorized account, it can result in a complete blocking. IMEI (The risk is particularly high on Xiaomi’s newer models (released after 2022.

Mi Unlock Tool|Fastboot|EDL|Talked to the service center |Never tried-->

How to avoid blocking after resetting

Even after a successful password reset, the phone may require the entry of the old password. PIN-code or data from Mi Account when you first set up, so that it doesn't happen:

  • πŸ”„ Do not update your firmware immediately after resetting – set your phone up as new first.
  • πŸ“± Don't plug in. SIM-card before the initial setup is completed (in some models this causes a password request).
  • πŸ”’ Turn off Find Device in Mi Account settings if your phone was linked to your account.

If the phone still requires an old password:

  1. Try entering the last used PIN (sometimes it works even after resetting).
  2. If it doesn’t help, run the firmware through EDL with a complete erasure of the persist partition (this will remove all traces of the old password).

πŸ’‘

Phones with MIUI 14+ may need to be confirmed via Mi Account after a Fastboot/EDL reset, even if the account was not previously linked.

Frequent mistakes and how to fix them

When unlocking via PC, users often face typical problems, and here are the most common solutions:

Mistake.Reason.Decision
fastboot: error: Failed to boot into fastbootdIncompatible version of Fastboot or driversUpdate Platform Tools and reinstall drivers
Mi Unlock Tool: Couldn’t unlockPhone is not tied to 72+ hour accountWait 3 days or use another method.
Phone is not defined in EDLNo Qualcomm 9008 driverInstall the driver manually through Device Manager
After reset, asks for an old passwordDo not erase the section frp or metadataRepeat the reset with the fastboot erase metadata command

If none of the methods worked, you may have reset protection (FRP) activated on your phone.

  • πŸ“„ Official appeal in support of Xiaomi with proof of purchase.
  • 🏒 Contacting the service center (cost - from 1,500 to 5 000) β‚½ model-wise).
Can I reset my password to Xiaomi without losing data?
Theoretically, yes, but only if the phone has been enabled to debug USB and you have previously confirmed access to the PC. In this case, you can delete the gatekeeper.password.key and gatekeeper.pattern.key files in the /data/system/ folder via ADB. However, on MIUI 12+ this method often does not work due to data encryption.
Why does Mi Unlock Tool write "Device not connected"?
This means that the phone is not recognized in Fastboot mode. Check: Is the original cable used (not all cables support data transfer); is the driver installed (Device Manager should display Android Bootloader Interface); does not block access to antivirus (disable it for the duration of the procedure).
Does Fastboot Reset Work on Xiaomi 13 Pro?
No, on models with Snapdragon 8 Gen 2 chip and ARB 4.0 protection (this is Xiaomi 13/14, Redmi K60, POCO F5 Pro), Fastboot reset is blocked. The only working ways are: Official unlock through Mi Unlock Tool (if the phone is tied to your account). Firmware via EDL with an authorized account.
What if the phone asks for an old PIN after resetting?
This means that the metadata or frp partition has not been completely erased: Repeat the reset with the command: fastboot erase metadata fastboot erase frp If it doesn't work, run the phone through EDL with all partitions erased. On some models, it helps to enter an empty password (just click "Confirm" without entering characters).
Can I unlock Xiaomi without a computer?
Yes, but the options are limited: πŸ“§ Recovery via Mi Account (if you remember the login / password). πŸ“ž Reset via Recovery mode, but it requires you to enter the old password. πŸ› οΈ Contact Xiaomi Service Center (if the phone is warranty). Without a PC, unlocking is possible only if the Smart Lock (location unlock or Bluetooth device) was enabled).