Forgot the pattern lock or PIN-code, POCO Or Mi? Can't unlock your phone after you buy it with your hands? This is a familiar situation for many users -- one in five smartphone owners has experienced a locked device problem at least once, according to statistics. Fortunately, the manufacturer has provided several formal and informal ways to reset the password without losing data (or with minimal loss).
In this article, we will analyze all the current methods of unlocking Xiaomi for 2026 β from simple (via Mi Account) to complex (using Fastboot and other technologies). EDL-We will pay special attention to the nuances for different versions. MIUI (Important: some methods require preliminary preparation (for example, linking a Xiaomi account), so read carefully!
1 Unlocking through Mi Account (official method)
The most secure and recommended method for Xiaomi is to use a tied Mi Account.It works on all devices with MIUI (including Redmi Note 12, POCO X5, Mi 13, etc.), if you previously:
- πΉ Log into a phone account.
- πΉ Connected the device to the Internet (Wi-Fi or mobile network)
- πΉ Do not turn off the function Find the device in the settings
Instructions:
- On the lock screen, tap βForgot Password?β (or Forgot Password).
- Enter the email or phone number associated with the Mi Account.
- Confirm your identity via SMS or email (the link is valid for 5 minutes).
- Create a new password or pattern lock.
β οΈ Note: If you bought your phone with your hands and the previous owner didnβt untie your account, this will not work, and you will need to reset via Fastboot (see section 3) or contact the service center with proof of purchase.
2. Reset password via Recovery Mode (without loss of data)
If the Mi Account is not tied or you donβt remember the login details, try resetting the password through Recovery Mode.This method works on most Xiaomi devices with MIUI 12-14, but some newer models (such as the Redmi Note 13 Pro+) may need to unlock the bootloader.
Step-by-step:
- Turn off the phone (press Power + Volume up for 10 seconds).
- Press Power + Volume up until the Mi logo appears (release buttons when vibrating).
- In the Recovery menu, select the language (volume buttons) and tap "Wipe Data".
- Select "Wipe All Data" (this will delete all data except files on the dataset). SD-map!).
- Confirm the action and wait for the reboot.
β οΈ Note: On some models (POCO F5, Mi 12T) After resetting via Recovery, you may need to re-activate the device via Mi Account.If the phone asks you to enter an old account, use the Fastboot method (section 3).
βοΈ Preparing for resetting through Recovery
3. Unlock via Fastboot (for advanced users)
The Fastboot method is the most reliable way to get around locking if other options have not worked, and is suitable for devices with a bootloader unlocked or if you are ready to unlock it. Xiaomi officially allows unlocking, but the process takes up to 72 hours (due to account verification).
What you need:
- π₯οΈ Computer with Windows/macOS/Linux
- π Cable USB (original or high-quality)
- π οΈ Related: Mi Flash Unlock, ADB & Fastboot Tools
- π± Charge of the phone at least 60%
Instructions:
- Download the Mi Unlock Tool and log in to your Mi Account.
- Transfer the phone to Fastboot mode: turn off the device, then press Power + Volume down.
- Connect your phone to your PC and start Mi Flash Unlock. Follow the instructions.
- After unlocking the bootloader, run your phone through Fastboot using the Mi Flash Tool (you can download the firmware at xiaomifirmwareupdater.com).
π‘ If the Mi Unlock Tool is giving you a βCouldnβt unlockβ error, try it:
- π Restart your PC and phone
- π Use the other USB-port (preferably 2.0)
- π‘οΈ Disable the antivirus
- β³ Wait 24-72 hours (if the account is new)
What if the Mi Unlock Tool can't see the phone?
4.Use of EDL mode (for bricks and complex cases)
EDL (Emergency Download Mode) is the βlast hopeβ for unlocking Xiaomi if the phone:
- π§± Turned into a brick after a failed firmware
- π Locked at the loader level
- π« Does not respond to other unlocking methods
Working with EDL will require:
- π§ Special cable (EDL cable) or circuit of the circuit board
- π» Mi Flash Pro or QFilm
- π Firmware for your model (in.tgz or.mbn format)
β οΈ Attention: Use EDL If you're not sure about your ability, you can go to the service center:
- Transfer your phone to EDL (close the Test Point contacts or use the adb reboot edl command if the phone turns on).
- Connect the device to a PC β it should be defined as Qualcomm HS-USB QDLoader 9008.
- In Mi Flash Pro, select firmware and press Flash.
| Xiaomi model | Support for EDL | Authorization required | The risk of bricks |
|---|---|---|---|
| Redmi Note 10/11/12 | β Yes. | β No (on old firmware) | Medium. |
| POCO X3/X4/X5 | β Yes. | β Yes (requires an authorized account) | High-pitched |
| Mi 11/12/13 | β Yes. | β Yes (unlocking required) | Very tall. |
| Black Shark 4/5 | β No (closed) EDL) | β | critical |
5. Bypassing the lock via ADB (if debugging is enabled)
If the phone has previously been debugged USB (USB Debugging, you can reset your password through ADB It's a data-free method. MIUI 12-15, but requires access to a computer.
Instructions:
- Connect your phone to your PC and open the command line in the folder with ADB.
- Enter the commands in turn: 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 reboot
- After resetting, the password will be reset.
β οΈ Attention: On new versions MIUI (14+) This method may not work because of the increased security, so if after you reboot, the phone asks you to enter the password again, try to delete the files. /data/system/locksettings.xml and /data/system/device_policies.xml.
π‘
If ADB can't see the device, check if the drivers are installed. On Windows, you can download them via the Android SDK or use the 15 seconds ADB Installer program.
6. Contact the Xiaomi Service Center
If all of these methods did not help, the last option is to contact the official service center Xiaomi.
- π± Phone bought from hands and tied to someone else's Mi Account
- π§ Cannot unlock the loader
- π₯ The device turned into a βbrickβ after a failed firmware
- π No access to Mi Account and debugging USB switched off
What will be required to unlock:
- π Check or contract of sale (to confirm ownership)
- π Passport or other identification document
- π³ Payment for the service (from 1000 to 3 000 rubles depending on the model)
π‘ Useful advice: Before visiting the service center:
- Check if there is an official Xiaomi service in your city.
- Check by phone if they are unblocking (some centers refuse this service).
- Make a backup copy of the data if the phone is turned on in any way.
π‘
The official service is the only legal way to unlock if the phone is tied to someone else's Mi Account.
7.How to avoid blocking in the future
To avoid having a locked phone, follow the following simple rules:
- π Use biometric unlocking (fingerprint or facial recognition) in addition to PIN-code.
- π§ Attach Mi Account and remember the login details (email and password).
- βοΈ Enable data synchronization with Mi Cloud (photos, contacts, SMS).
- π Make backups regularly through Settings β System system β Backup.
- π± Donβt buy your phone without resetting your Mi Account!
β οΈ WARNING: If you plan to sell or transfer your Xiaomi to another person, be sure to do so:
- Reset your phone to factory settings (Settings β About Phone β Resetting).
- Untie Mi Account in the Settings menu β Accounts β Mi Account.
- Delete all data from Mi Cloud (unless you want the new owner to access your files).