Forgetting your smartphone password is a difficult situation, but it is not a hopeless one, especially if you are talking about Xiaomi phones, where the manufacturer has provided several ways to restore access, the main thing is not to panic or try to guess the combination dozens of times: after 5-10 unsuccessful attempts, the device can lock up for 24 hours or completely erase all data.
In this article, we will look at all the current Xiaomi unlocking methods (including Redmi, POCO, Black Shark models), from the simplest to the most technically complex. Importantly, the effectiveness of the method depends on the version of MIUI, the phone model and whether previously included features like Find Device or debugging on USB. Some methods will save your files, others will lead to a complete reset. Choose carefully!
If you are reading this article on a locked phone through another gadget, check immediately if it is connected to the Internet (Wi-Fi or mobile network), which is critical for most recovery methods.
β οΈ Warning: Methods using Fastboot or ADB If you've never connected your phone to a firmware computer, you'd better go to Xiaomi's service center. Wrong actions can turn your smartphone into a brickΒ».
1 Unlocking with Mi Account (the safest way)
This method works if the phone previously had a Mi Account attached (even if you donβt remember the password from it). Xiaomi allows you to reset the screen lock via the web interface, but with important restrictions:
- π± The phone must be connected to the Internet (via Wi-Fi or mobile network).
- π The device must be enabled with the function Find Device (find the device).
- π Mi Accounts should not be blocked for suspicious activity.
Step instructions:
- Go to account.xiaomi.com from a computer or other phone.
- Sign in with the same account as the locked device, and if you forget your password, restore it via email or phone number.
- From the menu, select Find Device β find your phone in the list.
- Press Unlock and confirm the action.
β If it goes well, the phone will unlock within 5-10 minutes.
β οΈ Warning: If you want to unlock your Mi Account phone and ask for an old password, try resetting it.
2. reset password through recovery (Hard Reset)
If Mi Account is not tied or Find Device is disabled, the radical method is a complete reset, which erases all data on the phone (photos, contacts, messages), but is guaranteed to unlock the device.
How to make Hard Reset on Xiaomi:
- Turn off the phone with a long press of the power button.
- Press Volume Up + Power at the same time and hold for 10-15 seconds until the Mi logo appears.
- From the Recovery menu, select the language (usually English or Chinese).
- Go to Wipe Data β Wipe All Data and confirm the action.
- After reset, select Reboot to reboot.
β οΈ Important: On some models (Redmi Note 10 Pro, POCO X3 Pro and later, after a reset, you may need to enter data from the Mi Account that was previously tied. This is anti-theft protection (Mi Cloud Lock). If you do not remember the username / password, you will not be able to unlock the phone without contacting Xiaomi in support.
Turn it off. SIM-card and memory card (if any)
Charge your phone at least 50%
Prepare data from Mi Account (if tied)
Download the firmware for your model (in case of errors)-->
3. Unlock through ADB (for advanced users)
The method is suitable if the phone was previously enabled debugging USB (USB Debugging. It's rare, but if you've ever connected a device to a computer for firmware or debugging, there's a chance.
What you need:
- π₯οΈ Computer with installed Xiaomi drivers (you can download on the official website).
- π USB-cable (original, do not damage the connector!).
- π¦ Utility. ADB (is part of Android SDK).
Instructions:
- Connect your phone to your PC and open the command line (Win + R β cmd).
- Enter the command to check the connection: adb devices If the device is displayed β go further.
- Delete the password file (works on MIUI 10β14): adb shell rm /data/system/gesture.key adb shell rm /data/system/locksettings.db adb shell rm /data/system/locksettings.db-wal adb shell rm /data/system/locksettings.db-shm
- Reboot your phone: adb reboot
After the reboot, the password will reset, but on newer models (MIUI 15+), this method may not work due to enhanced protection.
π‘
If the adb device command doesnβt show your phone, try reinstalling drivers or using another one. USB-Sometimes it helps to switch the connection mode in the notification curtain (from Charging to File TransferΒ»).
4. Unlock via Fastboot (for tech-savvy)
If ADB didn't help or USB debugging was disabled, you can try resetting your password through Fastboot mode, which is more complicated, but it works even without debugging enabled.
β οΈ Warning: Wrong commands in Fastboot could lead to loss IMEI If you're not sure, don't risk it!
Instructions:
- Turn off the phone and press Volume Down + Power to log into the Fastboot.
- Connect your device to your PC and check for detection: fastboot devices
- Erase the password section (not working on all models!): fastboot erase userdata fastboot erase locksettings
- Reboot the phone: fastboot reboot
On some devices (Redmi 9, POCO M3), after this procedure, you will need to flash the phone again through the Mi Flash Tool.
What if Fastboot canβt see the phone?
5. Contact the Xiaomi Service Center
If all of these methods fail, the last option is the official service, and Xiaomi can unlock the phone if you have:
- π Check or warranty card (proof of purchase).
- π Passport holder (to confirm identity).
- π Data from Mi Accounts linked to the device.
The cost of the service varies from 1,500 to 5,000 rubles depending on the model and region, and in some cases, it may be necessary to flash the device, which cancels the warranty.
β Pros: Guaranteed result without risk of damaging the phone.
β Cons: Long wait (from 3 days) and possible costs.
6.How to avoid blocking in the future
To avoid being in this situation again, follow these simple tips:
- π Use a fingerprint or facial recognition as an additional way to unlock.
- π§ Attach Mi Account and enable Find Device in Settings (Settings) β Mi Account β Find Device).
- π± Regularly create backups of important data in Mi Cloud or on PC.
- π Write your password to a secure location (e.g., Google Password Manager or KeePass).
If you are afraid to forget the pattern lock, install a spare key. PIN-code in security settings (Settings) β Lock screen β Password. β Spare. PIN).
π‘
Even if youβve never been blocked, turn Find Device on in your Mi Account settings. This will take 2 minutes, but save you hours of nerves in case you lose your password or have your phone stolen.
Comparison of Xiaomi Unlocking Methods
| Method | Are the data stored? | Mi Account required | Difficulty | Suitable for |
|---|---|---|---|---|
| Through Mi Account (Find Device) | β Yes. | β Yes. | β | All models with MIUI |
| Hard Reset (Wipe Data) | β No. | β No (but may be required after resetting) | ββ | All models. |
| ADB (delete gesture.key) | β Yes. | β No. | βββ | MIUI 10β14 with debugging enabled |
| Fastboot (erase locksettings) | β No. | β No. | ββββ | Technically savvy users |
| Service centre | β Depends on the case. | β Yes (proof of possession) | βββ | Any other model, including new ones |