The situation is familiar to many: rebooted Xiaomi Mi 8 Pro, and after turning on the phone requires you to enter a graphical password, which you suddenly forgot. Donβt panic β even if access to the device is blocked, there are official and informal ways to restore access. The main thing is to act consistently and not try to find the code at random (this can lead to a complete lock of the device).
In this article, we will discuss all the current methods of unlocking the Xiaomi 8 Pro after a reboot, including authorization via Mi Account, reset via Recovery and Fastboot, as well as alternative solutions for cases where standard methods do not work.
Importantly, if you bought your phone with your hands or you don't remember your Mi Account, the chances of unlocking without losing data are minimal, and you'll have to resort to a full reset, but there are some nuances that we'll talk about below.
1 Unlocking through Mi Account (official method)
The most reliable and recommended way Xiaomi uses is to use a tied Mi Account, which works if:
- π± The phone is connected to the Internet (via Wi-Fi or mobile network).
- π You remember the login (email/phone number) and password from Mi Account.
- π The "Find the device" function was activated in the settings.
After 5 failed attempts to enter the pattern lock, the "Forgot your password" button (or similar) will appear on the screen.
- Enter the email or phone number associated with the Mi Account.
- Confirm your identity via SMS or email (the code will come to the mail / phone).
- Reset your graphical password and set a new one.
β οΈ Note: If your phone is not connected to the network, the "Forgot Password?" button may not appear, in which case try connecting to Wi-Fi via the Quick Settings Panel (if available on the lock screen).
π‘
If the βForgot Passwordβ button is not active, try entering any pattern lock 5 times in a row β sometimes the system offers alternative unlock options after several failed attempts.
2.Reset via Recovery Mode (with loss of data)
If Mi Account is lost or the phone is not connected to the Internet, a hard reset via Recovery Mode remains, which will remove all data from the device, including photos, contacts and installed applications. On Xiaomi 8 Pro models with a blocked bootloader, the reset via Recovery may not work β you will need to unlock through Fastboot.
Resetting instructions:
- Turn off the phone (press the power button for 10 seconds).
- Press the Power button + Volume up at the same time and hold for 10-15 seconds until the Mi logo appears.
- From the Recovery menu, select the language (English / Chinese), then go to Wipe Data β Wipe All Data.
- Confirm the action and wait for the process to be completed.
- Reboot your device with Reboot β Reboot to System.
Once reset, the phone will turn on as new. If you previously tied your Mi Account, you will need to enter the data to confirm ownership (this is protection against theft).
Turn off the phone.
Slam Power + Volume Up
Select Wipe Data from the Recovery menu
Confirm the deletion of all data
Reset the device-->
3. Unlock via Fastboot (for advanced users)
The method is suitable if Recovery Mode is not available or reset through it did not help. ADB/Fastboot original USB-Attention: Unofficial firmware or errors in executing commands can lead to a "brick" (breakdown) of the device.
Step-by-step:
- Install Platform Tools (includes fastboot and adb).
- Turn off the Xiaomi 8 Pro and press Power + Volume Down to log into Fastboot Mode.
- Connect your phone to your PC and open the command line in the folder with Platform Tools.
- Enter the command to check the connection: fastboot devices If the device is determined, reset: fastboot erase userdata fastboot erase cache fastboot reboot
β οΈ Note: Some Xiaomi firmware may require Mi Account authorization after a Fastboot reset, even after a full reset.If you don't remember your account details, your phone will remain locked.
Mi Account
Recovery Mode
Fastboot
I went to the service center.
I've tried nothing.-->
4. Alternative methods (without loss of data)
If the phone is debugging on USB (USB Debugging, you can try unlocking it through ADB This method only works if the debugging has been activated before the lockdown.
Instructions:
- Connect Xiaomi 8 Pro to your PC via USB.
- Open the command line and type in: adb shell rm /data/system/gesture.key or for newer versions of Android: adb shell rm /data/system/locksettings.db
- Reset the phone. Once turned on, the graphical password should reset.
β οΈ Attention: MIUI 12/13/14 This method may not work because of changes in the structure of password storage, and after deleting files, you may experience errors in the system β be prepared to reset if the phone starts to glittle.
Another option is to use services like Dr.Fone or Tenorshare 4uKey, which promise to unlock without losing data, but their effectiveness depends on the version of MIUI and the state of the bootloader, which starts at $30, and there is no guarantee of success.
What to do if the phone asks for a password after resetting?
5 Unlocking through Xiaomi Service Center
If all independent attempts failed, you need to contact an authorized service center.
- π Check or purchase warranty (proof of ownership).
- π Passport of the holder (to confirm the identity).
- π³ Payment for the service (cost varies from 1000 to 3 000 rubles).
Xiaomi service centers in Russia and CIS usually unlock the device within 1-3 days, in some cases it may be necessary to send the phone to the central office (for example, if the lock is associated with Mi Account of another region).
β οΈ Warning: Unofficial workshops often offer "bypass" locks through firmware in mode EDL. It's risky:
- This can cause the IMEI to be lost (the phone will stop catching the network).
- It violates the warranty (if it is still valid).
- It does not guarantee 100% results β new MIUI firmware often blocks such methods.
6.How to recover data after reset
If unlocking requires a complete reset, some of the data can be recovered β but only if the sync was previously enabled or a backup was created.
Recovery methods:
| Type of data | How to repair | Conditions |
|---|---|---|
| Contacts | Synchronization with Google Account or Mi Cloud | The synchronization should have been activated before reset. |
| Photo/video | Google Photos or Mi Cloud | Files were to be uploaded to the cloud automatically. |
| Communications | Apps like SMS Backup & Restore | I had to create a backup manually. |
| Annexes | List from Google Play ("My Apps and Games") | List only β data inside applications is not restored |
If the sync is not configured, there is hope for data recovery software like DiskDigger or EaseUS MobiSaver, but its effectiveness on todayβs encrypted smartphones (FBE) is minimal, with less than 20 percent chance of returning something of value.
π‘
The only reliable way to save data is through regular backups. Set up automatic sync with Google Drive or Mi Cloud in your phone settings (Settings β Accounts β Sync).
7.How to avoid blocking in the future
To avoid the problem of forgotten passwords again, follow the following simple rules:
- π Use it. PIN-code instead of a pattern lock, it is easier to remember.
- π Write your password to a secure location (e.g., Google Keep with encryption).
- π Regularly update the firmware in new versions MIUI Improvement of access restoration mechanisms.
- π Attach Mi Account and turn on "Find device" (Settings) β Mi Account β Find the device).
It is also useful to configure Smart Lock to trusted locations or devices. For example, the phone can be configured to unlock automatically at home or when connected to a trusted Bluetooth headset. This feature is available in Settings β Screen Lock β Smart Lock.
If you often forget passwords, consider using a password manager (like Bitwarden or 1Password) these apps store all your codes in encrypted form and sync between devices.