Xiaomi Mi 8 is still a popular smartphone due to the powerful βironβ and support for fresh firmware MIUI. But what if you forget your screen lock password? Unlike newer models with Face Unlock or a fingerprint, the Mi 8 often requires you to enter PIN-code or pattern lock β and their loss can block access to the device forever.
In this article, we will discuss 5 working methods to remove the password from Xiaomi Mi 8 β from official (via Mi Account) to technical (via Fastboot and ADB).
If you're not sure what you're doing, don't experiment with Fastboot or firmware. A mistake can turn a smartphone into a brick. For beginners, the safest option is to unlock through Mi Account (if your account is tied).
1 Unlocking through Mi Account (official method)
This is the only method that doesnβt erase data from your phoneβbut only works if:
- πΉ The device is linked to your Xiaomi account (you are logged in to Settings) β Accounts).
- πΉ The phone has Internet access (Wi-Fi or mobile network).
- πΉ Remember the username and password from Mi Account.
If all conditions are met, follow the instructions:
- On the locked screen of the Mi 8, click Forgot the password? (bottom of the screen).
- Choose Unblock with Mi Account.
- Enter the username (email or phone number) and password from your Xiaomi account.
- Confirm unlocking via SMS or email (if two-factor authentication is enabled).
Once you have successfully logged in, the phone will be unlocked and the old password reset, and it's important that if you don't remember the Mi Account data, restore it to account.xiaomi.com before you start.
β οΈ Warning: If your phone isn't connected to the Internet, this won't work. Try connecting to Wi-Fi through the Quick Settings Panel (swipe down on the lock screen).
2. Recovery Mode reset (data loss)
If Mi Account is not tied or you don't remember the data, you have a hard reset through Recovery, which removes all the data from your phone, including photos, messages and apps, and only use it if there is no important information or a backup.
Instructions for Xiaomi Mi 8:
- Turn off the phone (press Power + Volume up for 10 seconds).
- Press Power + Volume up and hold for 10-15 seconds until the Mi logo appears.
- Release the buttons and you will be taken to the Recovery menu (English or Chinese).
- Use volume buttons for navigation and power for selection.
- Select Wipe Data β Wipe All Data (or β in Chinese firmware).
- Confirm the action (Confirm).
- After reset, select Reboot β Reboot to System.
The phone will reboot and prompt it to be set up as new, the password will be deleted, but all data will be deleted, too. If after the reset the phone requires you to enter the password from Mi Account, then the Find Device function has been enabled (see section 4).
βοΈ Preparing for resetting through Recovery
3. Unlock via Fastboot (for advanced)
The method via Fastboot is suitable if:
- πΉ Recovery is blocked by password.
- πΉ You are ready to work with the command line.
- πΉ The phone's unlocked. OEM Unlock (in Settings) β For developers).
If OEM Unlock is not unlocked, this method will not work β you will need to activate it through settings first (and this requires access to the phone).
Step-by-step:
- Install ADB and Fastboot on your computer.
- Turn off the Mi 8 and press Power + Volume down to enter the Fastboot.
- Connect your phone to your PC via USB.
- Open the command line (Win + R β cmd) and type:
fastboot devicesIf the phone is determined (the serial number will appear), continue:
fastboot oem unlockA warning will appear on the phone - confirm the unlock button Volume up.
fastboot rebootAfter the reboot, the phone will reset to the factory settings, and the password will be deleted. OEM Unlock, the fastboot oem unlock command will return the error.
β οΈ Note: Some Xiaomi firmware after fastboot oem unlock may require binding to the new Mi Account.
4. Bypass locking through Find Device (if feature is enabled)
If the Mi 8 has Find Device enabled, you can try unlocking it remotely via Xiaomi's website, which works even if the phone is turned off, but:
- πΉ The device must be linked to the Mi Account.
- πΉ It should be connected to mobile Internet (Wi-Fi is not suitable).
- πΉ Accounts should not be blocked for suspicious activity.
Instructions:
- Go to i.mi.com and log in.
- In the Devices section, select your Xiaomi Mi 8.
- Press Find the device. β Unlock.
- Confirm the action via SMS or email.
If the phone connects to the network, the password will reset. Limit: the method does not work on all firmware (starting with MIUI 12, Xiaomi has tightened its security policy).
What if the Device canβt find the phone?
5. Use of ADB (unlocked debugging only)
The ADB (Android Debug Bridge) method is suitable if:
- πΉ The phone's debugging on. USB (Settings β For developers β Debugging by USB).
- πΉ You previously connected the Mi 8 to this computer and confirmed your trust.
- πΉ You have access to Recovery or Fastboot.
If debugging isnβt enabled, this method wonβt work β it can only be used for prevention (e.g., to delete a password before you forget it).
Instructions for deleting password:
- Connect the Mi 8 to your PC and open the command line.
- Enter:
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
rebootAfter the reboot, the password will be reset, and it is important that newer versions of MIUI (13+) may not work due to a changed lock structure.
π‘
If you often forget passwords, turn on the Mi 8 Smart Lock feature (Settings β Screen Lock β Smart Lock) which automatically unlocks the phone in trusted places (such as at home) or when connected to trusted devices (smart watches, Bluetooth headphones).
Comparison of unlocking methods Xiaomi Mi 8
| Method | Loss of data | Mi Account required | Difficulty | It's working on MIUI 14. |
|---|---|---|---|---|
| Through the Mi Account. | β No. | β Yes. | βEasy | β Yes. |
| Reset via Recovery | β Yes. | β No. | βEasy | β Yes. |
| Fastboot (oem unlock) | β Yes. | β No (but you may need a link) | ββMedium | β οΈ Partially. |
| Find Device | β No. | β Yes. | βEasy | β No (starting with) MIUI 12) |
| ADB | β No. | β No. | βββHard | β No, nah. MIUI 13+) |
For most users, unlocking through Mi Account or resetting through Recovery is the best option. Methods with Fastboot and ADB require technical skills and don't always work on the latest versions of MIUI.
π‘
If the phone requires a password from Mi Account after reset, then the Find Device function was enabled, in which case you can only unlock the device through an official Xiaomi account or by contacting the service center.
What do you do if nothing helps?
If neither of these methods worked, there are two options:
- Contact the Xiaomi service center β you will need a confirmation of purchase (check or box), in some cases, unlocking is done free of charge under warranty.
- Fastboot phone flashing with the Mi Flash Tool is an extreme method, as it requires downloading the official firmware and risks βbrickingβ the device if it makes a mistake.
For flashing:
- In the Mi Flash Tool, select the downloaded firmware and press Flash.
Warning: Unprofessional firmware can lead to loss of IMEI or network problems. If you are not sure, you should contact a specialist.