How to open a blocked Xiaomi Mi 8: all ways to unlock

Forgot the password from Xiaomi Mi 8 or bought a used device with a locked screen? Don't rush to carry it to the service center - in 80% of cases, you can unlock yourself. This model, released in 2018, is still popular, but its security system has features: binding to Mi Account, FRP (Factory Reset Protection) protection and restrictions in Fastboot mode.

In this article, we will discuss 5 working methods of unlocking - from the simplest (via Xiaomi account) to the most complex (firmware via EDL). Importantly, some methods require preliminary preparation, for example, enabled debugging over USB or tied account. If you are not sure of your actions, after 3 failed attempts to enter a password, the Xiaomi Mi 8 automatically erases all data from internal memory - this is a factory security feature.

Before you start, check:

  • πŸ”‹ Battery level (not lower than 30%) - discharge during the procedure can lead to a "brick"
  • πŸ“Ά Stable Internet connection (for Mi Account and Cloud Recovery methods)
  • πŸ’» Availability of a PC with Qualcomm drivers installed (for methods through Fastboot/EDL)
πŸ“Š What Unlocking Method Have You Tried Before?
Through the Mi Account.
Reset to Recovery
Fastboot teams
I've been to the service.
Never blocked.

1 Unlocking through Mi Account (official method)

The most secure and recommended method for Xiaomi is to use a tied Mi Account, which works if:

  • πŸ“± The phone is connected to the Internet (Wi-Fi or mobile network)
  • πŸ”‘ You remember the login and password from the account that was linked to the device
  • πŸ”„ Find Device has been activated in the settings

Instructions:

  1. On the lock screen, click Forgot Password? (or Forgot Password?)
  2. Select Log in via Mi Account and enter your details
  3. Confirm unlocking via SMS or email (if two-factor authentication is enabled)
  4. Create a new one. PIN-code

⚠️ Warning: If the phone was bought with hands, the previous owner could not untie his account. In this case, the official method will not work - you will need to reset through Fastboot or contact the service center with proof of purchase.

πŸ’‘

If you don’t remember if your account is linked to your phone, try entering any password 5 times in a row, and then the system will offer a recovery option via Mi Account (if you have one).

2. Recovery Mode reset (data loss)

The method is suitable if you do not remember the data from Mi Account or it is not tied to the device. All data will be deleted, including photos, contacts and applications. Xiaomi Mi 8 uses standard Recovery from Xiaomi, but with some restrictions:

How to log in to Recovery:

  1. Turn off the phone (press the power button for 10 seconds)
  2. Press Volume Up + Power at the same time and hold for 10-15 seconds
  3. Release the buttons when the Mi logo and menu appear in English

Next:

  • πŸ”§ Select Wipe Data (movement – volume buttons, selection – power button)
  • πŸ”„ Confirm Wipe All Data and wait until it is completed (3-5 minute)
  • πŸ“± Reboot your phone via Reboot
AdvantagesDeficiencies
No need for PC and special knowledgeDeletes all data without recovery
It works without a Mi Account attached.It will not work if FRP protection is enabled (you will need to enter an old account after resetting)
Takes less than 10 minutes.Some firmware may require additional authorization
What if you ask for an old password after reset?
If after Wipe Data the phone requires to enter data from the previous Mi Account, this means that FRP protection is activated. In this case: 1. Try to enter the account data that was previously associated (if you know). 2. If the account is not yours, contact the previous owner for data or use the unlock method through Fastboot (described below). 3. In some firmware, installing the old version of MIUI through Fastboot helps with a subsequent update.

3. Unlock via Fastboot (for advanced users)

This method is suitable if:

  • πŸ”“ Recovery is blocked by password or not working
  • πŸ’» You have a PC with drivers installed ADB/Fastboot
  • πŸ”§ You are ready to work with the command line.

Step-by-step:

  1. Download and install Google’s Platform Tools (includes fastboot)
  2. Turn off the phone and press Volume Down + Power to log in to Fastboot
  3. Connect your phone to your PC through USB-cable (original!
  4. Open the command line in the folder with fastboot and do:
fastboot oem unlock


fastboot flashing unlock

⚠️ Note: On Xiaomi Mi 8, after the command fastboot oem unlock, you may need to confirm through Mi Account, even if the phone was not tied! This is a feature of Xiaomi protection. If there is no account, use an alternative method with firmware via Fastboot:

fastboot flash recovery twrp.img


fastboot boot twrp.img

(where twrp.img is custom recovery for your model)

Install Qualcomm drivers on PC|Download Platform Tools from Google|Check the battery charge (minimum 50%)|Prepare original USB-cable|Disable the antivirus (can block fastboot)

-->

4. Firmware through EDL Mode (extreme case)

Emergency Download Mode (EDL) is the most radical and risky method used when:

  • 🚫 The phone does not respond to the buttons (brick)
  • πŸ”’ Blocked Fastboot and Recovery
  • πŸ“± You need to restore the phone after a failed firmware

For Xiaomi Mi 8 (codenamed dipper) you will need:

  • πŸ’» Windows PC and Qualcomm 9008 drivers
  • πŸ“ Firmware in.mbn or.elf format for your model
  • πŸ”§ Mi Flash Tool or QFil

How to log into EDL:

  1. Turn off the phone.
  2. Press Volume Up + Volume Down + Nutrition at the same time
  3. Connect. USB-cable to PC – the phone is defined as Qualcomm HS-USB QDLoader 9008

⚠️ Note: Incorrect Firmware Through EDL This method is recommended only for advanced users or in service centers. If you are not sure, contact the specialists.

πŸ’‘

Firmware via EDL deletes all data, including IMEI and serial number, and may require IMEI recovery through an engineering menu or service utilities.

5. Alternative methods (without loss of data)

If you need to unlock your phone without a data reset, try these options:

Method 1: Through ADB (if debugging is enabled)

If USB debugging was activated on the phone, you can delete the file with the password:

adb shell


su




rm /data/system/gesture.key




rm /data/system/password.key




reboot

Method 2: Bypassing the pattern lock through a call

Some versions of MIUI have a workaround:

  1. Call the locked phone from another device
  2. Take the call, then quickly go to the settings
  3. Turn off the pattern lock in the Security menu β†’ Screen lock

⚠️ Xiaomi Mi 8 S MIUI 12+ This method usually does not work due to increased protection.

Method 3: Recovery through Xiaomi Cloud

If you have synced with Xiaomi Cloud on your phone, you can try:

  1. Access i.mi.com from your account
  2. Find the device in the list and start the function Find the device
  3. Select the Unblock option (does not work on all firmware)

Frequent mistakes and their solutions

When unlocking the Xiaomi Mi 8, users often face typical problems:

Mistake.Reason.Decision
Couldn't unlock in FastbootMi Account is not tied or the phone is blocked by the operatorUse the official unlocker from Xiaomi or EDL
After reset, asks for an old passwordFRP protection activatedEnter your previous account details or run your phone through Fastboot
Device not found in ADBNo driver installed or debugging disabledInstall Qualcomm drivers and check developer settings
The phone does not turn on after the firmwareWrong firmware version or interrupted processRepeat the firmware through EDL with the correct version of MIUI

If none of the methods worked, your Xiaomi Mi 8 may have custom firmware with additional protection, in which case we recommend:

  • πŸ” Fastboot Firmware Version with Quickboot Getvar All
  • πŸ“₯ Find firmware specifically for your modification (Global/Chinese version)
  • πŸ›  Contact the forums 4PDA or Xiaomi.eu for help.
Can I unlock the Xiaomi Mi 8 without losing data?
Yes, but only if: USB Debugging enabled (ADB method) Phone synchronized with Xiaomi Cloud and has access to the account Installed Custom Recovery (TWRP) with backup In all other cases, the data will be deleted.
What to do if you forget the username from Mi Account?
Restor access via account.xiaomi.com: Click Forgot Password? Enter email or phone number linked to your account Confirm recovery via SMS or backup email If your account is not (phone purchased by hand), contact the previous owner or provide proof of purchase to the Xiaomi service center.
Why does the phone ask for an old password after resetting to Recovery?
This is FRP (Factory Reset Protection) protection. Solutions: Enter data from the previous Mi Account (if you know) Sweat your phone through Fastboot with FRP disabled: fastboot erase frp fastboot flash frp frp.img (where frp.img is an empty file to bypass the protection)
How to unlock Xiaomi Mi 8 if it does not turn on?
If the phone doesn't respond to buttons and doesn't charge: Try charging from another power unit (minimum 2A) Press Power + Volume up for 20-30 seconds (hard reset) If it doesn't help - disassemble the phone and disconnect / connect the battery (requires skills) For firmware through EDL you will need an authorized Xiaomi account (to unlock the bootloader)
How much does it cost to unlock in the service center?
The cost depends on the reason for blocking: Reset password (no FRP): 500–1500 β‚½ Bypass FRP: 1500–3000 β‚½ Firmware through EDL: 2000–4000 β‚½ Recovery IMEI: 1000–2500 β‚½ Xiaomi may require a check to purchase.