How to Reset Your Password to Xiaomi via BIOS: Working Ways 2026

Forgot the password from Xiaomi and can't unlock your phone? many users mistakenly search for a solution through BIOS β€” This is a classic method for computers that doesn't apply to smartphones, but it's actually Fastboot or Recovery Mode, which perform similar functions of access recovery, POCO and Mi, including bypassing the lock via the service menu, ADB-Xiaomi teams and official tools.

It’s important to understand that Xiaomi smartphones don’t have a BIOS in the usual sense – instead, they use a Fastboot bootloader and custom Recovery. Trying to log into the BIOS on the phone will lead you to either Fastboot Mode (black screen with a rabbit) or Mi Recovery (menu with an android robot), these modes allow you to reset your password, but with nuances: on new models (after 2021) you need to confirm your Mi Account, and on old ones – quite hard reset.

We analyzed methods for MIUI 12/13/14-based devices and identified 4 working methods: 1) Fastboot Reset (without data loss on some models), 2) Using the Mi Flash Tool for full flashing, 3) Bypassing ADB (if debugging is enabled), 4) Xiaomi's Official unlocker for tied accounts.

Each method is detailed taking into account risks and limitations.

Why can’t you reset your password through the BIOS on Xiaomi?

The term BIOS (Basic Input/Output System) refers exclusively to personal computers and laptops. Xiaomi smartphones (as with all Android devices) use a different boot architecture:

  • πŸ”Ή Fastboot Mode - analogue BIOS for firmware and recovery (called by power buttons) + Loudness down).
  • πŸ”Ή Recovery Mode – Recovery menu (activated by Power buttons) + Loudness up).
  • πŸ”Ή EDL Mode – Emergency mode for firmware via Qualcomm (requires authorized cable).

The main difference: BIOS on PC stores hardware settings, and Fastboot/Recovery on Xiaomi is designed for:

Regime.FunctionsIs an OEM unlock required?
FastbootFirmware, unlock the loader, reset to factory settingsYes (on new models)
RecoveryDeletion of data, software update, password resetNo (but you may require a Mi Account)
EDLRestoration of "bricks", firmware without unlockingYes (requires authorized cable)

⚠️ Note: On Xiaomi devices with MediaTek processors (e.g. Redmi) 9A, POCO M3) Resetting your password via Fastboot may result in your Mi Account being blocked. Check the processor model in the settings before taking action (Settings) β†’ The phone. β†’ The kernel version).

Method 1: Reset password via Fastboot (without data loss on some models)

This method works on devices with an unlocked bootloader (Bootloader Unlocked). If you previously activated OEM Unlock in the developer settings, the chances of success are high.

  1. Turn off the phone and press Power + Volume down for 10 seconds to log into Fastboot Mode.
  2. Connect the device to the PC through USB-cable (preferably original).
  3. Download Google’s Platform Tools. Unpack the archive and launch the SDK Manager. In Windows Device Manager, update the driver for the device with the exclamation mark by specifying the folder with the unpacked files.
  4. Open the command line in the folder with platform-tools and type:
fastboot devices

If the device is displayed (a serial number appears), do:

fastboot flashing unlock


fastboot oem clean_all

Result: On some models (Redmi Note 8 Pro, POCO X3), this method only resets the password, saving data. On new devices (Xiaomi 13, Redmi K60) there will be a complete reset.

Make sure the loader is unlocked|Download Platform Tools from the official website|Use it. USB 2.0 port (not 3.0)|Disable the antivirus during the procedure-->

⚠️ Attention: After the fastboot oem command clean_all You may see a request for reset confirmation on your phone screen. If the phone doesn't respond to touch, plug the mouse in through the phone. OTG-adapter.

Method 2: Complete reset via Mi Recovery (with data loss)

If Fastboot didn’t help or the bootloader is locked, try resetting through stock Recovery.This method works on all Xiaomi devices, but deletes all data, including photos and apps.

Instructions:

  1. Turn off the phone and press Power + Volume up until the Mi logo appears.
  2. From the Mi Recovery menu, select the language (volume buttons) and go to Wipe Data β†’ Wipe All Data.
  3. Confirm the action with the power button.
  4. After reset, select Reboot β†’ Reboot to System.

On the new models (Xiaomi 12T, Redmi Note 11) after reset, you will need to enter data from the Mi Account that was associated with the device.

Fastboot|Recovery Mode|Mi Flash Tool|ADB|None of the above.-->

Xiaomi modelDoes he need a Mi Account after a reset?Does the Fastboot Method Work?
Redmi 9/9A/9CYes.Partially (data reset)
POCO X3/X3 ProNo (if Find Device is disabled)Yes (saves data)
Xiaomi 11/12/13Yes.Only with the unlocked loader

Method 3: Delete password through ADB (if debugging is enabled)

If the phone has previously been activated debugging via USB (Settings β†’ About Phone β†’ MIUI version – 7 times press to unlock the developer menu), you can delete the file with the password through ADB.

Step-by-step:

  1. Connect your phone to your PC and confirm your trust in the computer on your smartphone screen.
  2. Open the command line in the folder with platform-tools and type:
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

Note: On MIUI 14, the path to the password files may be different. If the commands fail, try:

rm /data/data/com.android.providers.settings/databases/settings.db

⚠️ Note: This method only works on unencrypted devices. If encryption is enabled in the settings (Settings) β†’ Additionally. β†’ Encryption), ADB You will not be able to access your password files.

πŸ’‘

If your phone is not identified in ADB, try reinstalling drivers manually through Windows Device Manager. Select "Update Driver" β†’ "Follow Search on this computer" β†’ specify the folder with the platform-tools.

Method 4: Official Xiaomi Unblocker (for linked accounts)

If your phone is tied to a Mi Account, the most reliable way to do this is to use Xiaomi’s official unlock tool, which works even on locked devices with Find Device enabled.

Instructions:

  1. Go to i.mi.com and log in with the same account you have linked to your phone.
  2. Select the Find Device tab and find your smartphone in the list.
  3. Click Unlock Device and confirm the action via SMS or email.
  4. Wait 5-10 minutes – the phone unlocks automatically (requires an Internet connection).

If the device does not appear in Find Device, check:

  • πŸ”Ή Internet connection (the phone must be online).
  • πŸ”Ή Account status (whether it is banned for violations).
  • πŸ”Ή Geolocation settings (Settings) β†’ Security β†’ Location should be on).

πŸ’‘

Xiaomi’s official unlocker is the only method that is guaranteed to work on new models (2022-2026) without the risk of blocking an account.

What do you do if nothing helps?

If all of these methods fail, radical measures remain:

  1. Firmware via Mi Flash Tool: You will need an unlocked bootloader and official firmware for your model. Instruction: How to flash Xiaomi through Mi Flash Tool? 1. Download the firmware for your model. 2. Unpack the archive and launch MiFlash.exe. 3. Connect the phone in Fastboot mode. 4. Select the firmware folder and press Flash. 5. Once completed, the phone will reboot with a clean system.
  2. Contact the service center: Official Xiaomi services can reset the password on the passport of the owner (purchase confirmation is required).
  3. EDL-Firmware (for advanced users): Requires authorized cable and knowledge of QFil or MiFlashPro commands. Risk: turn the phone into a brick if you make an error.

Forums often recommend using programs like Mi Account Unlock Tool or SP Flash Tool, but we do not recommend them for reasons like:

  • πŸ”Ή High risk of blocking your Mi Account.
  • πŸ”Ή Possibility of installing malware.
  • πŸ”Ή Violation of Xiaomi Policy (may result in loss of warranty).

FAQ: Frequent questions about resetting your password on Xiaomi

Can I reset my password without losing data?
On devices with unlocked bootloader and enabled debugging USB (ADB) β€” In all other cases, resetting the password will delete user data, except for the official unlocker via Mi Account if the phone is connected to the Internet.
Why does the phone need an old password after resetting via Recovery?
This is due to FRP (Factory Reset Protection) feature, which requires devices with MIUI 12+ to reset the data from the last Mi Account that was on the phone, and if you don't remember the password, restore it via account.xiaomi.com.
Does the method of removing gesture.key work on MIUI 14?
Nana MIUI 14 The structure of password storage has changed. Instead of gesture.key, we now use the locksettings.db database, which is encrypted by the system. ADB It only works if it only works: πŸ”Ή The phone is not encrypted. πŸ”Ή Debugging is on. USB. πŸ”Ή You have root rights (on some firmware).
How do I know if my Xiaomi bootloader is unlocked?
Turn off your phone and log in to Fastboot Mode (Power) + If you have Unlocked or Device is unlocked at the bottom of the screen, the bootloader is unlocked. If it says Locked, it's locked. On new models (Xiaomi 13, Redmi). K50) Unblocking takes 7-14 days through the official website.
What if the phone asks for the account of the previous owner after the reset?
This means that the device is tied to someone else's Mi Account (for example, if the phone is bought with hands).Solutions: Contact the previous owner and ask to delete the device from their account (i.mi.com) β†’ Find Device β†’ Delete it. Give Xiaomi a check and a passport to the service center, they'll untether. Avito/Yule, ask the seller for a username/password from Mi Account or return the device.Caution: Buying phones with a linked account is fraught with the risk of blocking through Find Device.