Forgetting the password from Xiaomiβs smartphone is a frustrating situation, but itβs fixable. Even if the lock screen stubbornly keeps you from logging in, there are several official and alternative ways to restore access. The main thing is not to panic or try to find a combination at random: after 5-10 failed attempts, the device can lock up for 24 hours or completely erase all data.
In this article, we will analyze all the current ways to unlock for Xiaomi, Redmi smartphones, POCO Black Shark β from a simple reset via Mi Account to complex manipulations with Fastboot and EDL-Each method is illustrated with step-by-step instructions, risk warnings, and tips on how to avoid data loss. If you're not sure about your technical skills, look for sections marked "Beginners" -- they don't require special knowledge.
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).
- π Remember the username and password from Mi Account.
- π² The device is enabled synchronization with the account.
If all conditions are met, follow the instructions:
- On the lock screen, click Forgot Password? (or Forgot Password?).
- Select the recovery option through Mi Account.
- Enter the email or phone number associated with the account, then the password.
- Confirm unlocking via SMS or email (if two-factor authentication is enabled).
After successful authentication, the system will prompt you to create a new password or PIN-Important: If you do not remember the data from Mi Account, restore it on the official account.xiaomi.com website before trying to unlock it.
π‘
If the screen does not have a button "Forgot password?", try to enter any password 5 times in a row - the system can offer alternative login options.
2.Reset via Recovery Mode (without loss of data)
If Mi Account is not tied or you donβt remember the data, try resetting your password through Recovery Mode.This method doesnβt delete user files, but requires confirmation through your Xiaomi account (if it was previously linked).
Instructions:
- Turn off the phone by pressing the power button.
- Press Volume Up + Power at the same time and hold for 10-15 seconds until the Mi logo appears.
- In the Recovery menu, select a language (e.g. English).
- Go to Wipe Data β Wipe All Data (on some models, the path may be different: Advanced β Wipe Dalvik Cache).
- Confirm the action and wait for the reboot.
Once reset, the phone will prompt you to log in to Mi Account if it was tied, and if you don't have an account, the device will unlock without additional steps.
Keep the battery in charge (minimum 30%)
Turn it off. SIM-card and memory card (if any)
Prepare data from Mi Account (if tied)
Have a second phone on hand for two-factor authentication-->
3.Use Fastboot to unlock (for advanced)
The Fastboot method is suitable for users who are willing to work with a computer and command line, it allows you to bypass the lock, but requires an unlocked bootloader (if it was blocked earlier, the method will not work).
- π» Computer with installed Xiaomi drivers and Mi Flash Tool.
- π USB-cable (preferably original).
- π₯ Firmware for your model (download from xiaomifirmwareupdater.com).
Step-by-step:
- Turn off the phone and transfer it to Fastboot: Press Volume Down + Power.
- Connect the device to the PC via USB.
- Open the command line (Win + R β cmd) and type:
fastboot oem unlock
fastboot flash recovery recovery.img
fastboot rebootIf the bootloader is unlocked, the phone will reboot to Recovery, where you can reset.
What to do if the loader is blocked?
4. Unlock through EDL-regime (extreme case)
EDL-Emergency Download Mode is a firmware emergency mode that allows you to reflash your phone even with a locked bootloader. Use it only if other methods have failed, as improper actions can turn the device into a brick".
The work will require:
- π₯οΈ Mi Flash Tool or QFil (for Qualcomm devices).
- π Firmware in.tgz or.mbn format for your model.
- π§ USB-Type-C cable with data support (not all cables are suitable!).
Algorithm of action:
- Turn off the phone.
- Hold the Loud up. + Loudness down + Power and plug in. USB-The screen must remain black.
- In Windows Device Manager, check if the Qualcomm HS-USB QDLoader 9008 device has appeared.
- Start the Mi Flash Tool, select the firmware and press Flash.
Reset via Mi Account
Recovery Mode
Fastboot
EDL-regime
I've tried nothing.-->
5. Bypassing the lock via ADB (if debugging is enabled)
If the phone has previously been enabled debugging over USB, you can try to delete the file with the password through ADB. The method works only when connected to a computer with which previously synchronized.
Instructions:
- Connect your phone to your PC via USB.
- Open the command line and enter:
adb shell
su
rm /data/system/gesture.key
rm /data/system/password.key
rm /data/system/locksettings.db
rebootOnce the reboot is over, the lock should disappear. If the commands don't work, try replacing gesture.key with gatekeeper.password.key (for newer versions of MIUI).
π‘
USB debugging should be enabled before the phone locks, and if you don't activate it beforehand, this method won't work.
6. Contact the Xiaomi Service Center
If the self-unlocking attempts have not been successful, the last option is to contact the official Xiaomi service center.
- π Devices with a locked bootloader and Mi Account disabled.
- π± Phones that do not respond to other methods (for example, after a failed firmware).
- π° Users who are ready to pay for the guaranteed result (the cost of the service is from 1,500 to 5 000 rubles).
What to bring with you:
| Document | What do you need? |
|---|---|
| Passport | Confirmation of the identity of the owner |
| Check or phone box | Confirmation of purchase (if warranty) |
| Data from Mi Account | If your account is tied but you have forgotten your password |
| IMEI devices | To verify the originality of the phone |
Xiaomi service centers are available in all major cities of Russia, and the addresses can be found on the official website in the Support section. The average unlock time is 1-3 days.
π‘
Before visiting the service center, back up your important data (if your phone is responding to your PC connection at all), and after unlocking, all files can be deleted.
7.How to avoid blocking in the future
To avoid having a forgotten password, follow these simple rules:
- π Use password management (e.g. Google Password Manager or Keeper).
- π± Set up the unlock by fingerprint or face in addition to PIN-code.
- βοΈ Regularly sync your data with Mi Account (photos, contacts, notes).
- π Write down your Mi Account password in a safe place (not on your phone!).
Itβs also useful to activate Find Device in Xiaomiβs settings, which allows you to remotely unlock your phone through the web interface if you forget your password, but remember the data from Mi Account.
π‘
Even if you use biometric unlocking, donβt give up. PIN-You'll need a code or a pattern lock after you restart the device.
FAQ: Frequent questions about unlocking Xiaomi
Can I unlock Xiaomi without losing data?
What to do if you forget your Mi Account password?
Will Recovery Reset Work if the Phone Is Not Connected to Wi-Fi?
Can I unlock Xiaomi with my Google Account?
What is a βbrickβ and how to avoid it?
π‘
If you often forget passwords, set up Xiaomiβs Smart Lock feature (in security settings) to automatically unlock your phone in trusted places (such as at home or work).