Xiaomi Redmi 9 remains one of the most popular budget smartphones even in 2026, but its owners often face the problem of a locked screen or a tied Mi Account. The reasons are different: a forgotten pattern lock, buying a used phone with someone elseβs account, software failure after an update or even blocking after unsuccessful attempts to enter a password. In this article, 5 working methods of unlocking, including official and technical methods, taking into account the features of Redmi 9 (codename lancelot) based on MIUI 12-14.
It's important to understand that not all methods are universal. For example, resetting through Recovery won't help if the phone activates the "Find the device" (Mi Cloud) function. And bypassing Mi Account through EDL requires special equipment and can lead to irreversible loss of IMEI if you do not do the right thing. We will analyze each method with the risk, the tools necessary and the step-by-step actions - from simple to complex.
1 Unlocking through Mi Account (official method)
If you remember the data from your Xiaomi account tied to your phone, this is the fastest and most secure method.
- π Forgotten pattern lock or PIN-lock-screen;
- π± Phone requires you to enter a password from Mi Account after resetting;
- π The device is locked after too many failed unlock attempts.
Instructions:
- On the locked screen, tap the button "Forgot your password?" (if it is active).
- Enter the email or phone number associated with the Mi Account.
- Confirm your identity via SMS or backup email (code arrives within 1-2 minutes).
- Create a new password for the lock screen.
β οΈ Note: If the phone was purchased from hand and tied to someone else's account, this method will not work, in which case you will need to contact the previous owner to untie the device via account.xiaomi.com (section "Device Management").
If there is no βForgot Password?β button (for example, after a hard reset), try unlocking the device via the web interface:
- Go to i.mi.com and log in.
- In the "Find the device" section, select your Redmi 9.
- Click "Unlock Device" (the function is only available if the phone is connected to the Internet).
2.Reset to factory settings via Recovery
The method is suitable if:
- π You donβt remember the screen password, but Mi Account isnβt tied;
- π¦ You need to delete all data (photos, contacts, applications);
- π§ The phone doesnβt respond to touch or hovers on the logo MI.
For Redmi 9, the procedure is performed via stock Recovery (not to be confused with custom TWRP!).
βοΈ Preparing for resetting through Recovery
- Turn off the phone with a long press on the power button (10-15 seconds).
- Press the Power button + Volume up simultaneously and hold for 10-15 seconds until the Mi logo and Recovery menu appear.
- In the Recovery menu, use the volume buttons for navigation and the power button for selection.
- Select Wipe Data β Wipe All Data (Erase all user data).
- Confirm the action by choosing Confirm.
- After reset, select Reboot β Reboot to System.
| Problem. | Reason. | Decision |
|---|---|---|
| Recovery menu not opening | Faulty volume or power button | Try to pinch the buttons alternately or connect your phone to your PC and use adb reboot recovery. |
| After reset, requires a Mi Account | The "Find the Device" function is activated | You need to enter the data of the associated account or bypass through EDL/Fastboot |
| phone is stuck on startup logo after reset | Firmware damaged. | Swipe your phone through Fastboot (see section 4) |
β οΈ Note: If after a reset, the phone requires you to enter Mi Account details that do not belong to you, further actions without the consent of the previous owner may be considered a violation of Xiaomiβs policy. In such cases, we recommend contacting the support service with proof of purchase (check, contract).
3. Bypassing the lock through ADB (for enabled debugging)
This method only works if USB debugging was enabled before the lock (Settings β About Phone β MIUI β 7 taps according to version β For developers β USB debugging). If debugging is disabled, skip this section.
It will require:
- π₯οΈ Computer with Windows/Linux;
- π USB-cable (original or high quality);
- π₯ Installed Xiaomi drivers and ADB Tools.
Instructions:
- Connect the blocked Redmi 9 to your PC.
- Open the command line (Win + R β cmd) and type: adb devices If the device appears in the list, go further. If not, install the drivers or try another cable.
- Enter the command to delete the lock key file: adb shell rm /data/system/gesture.key or PIN-code: adb shell rm /data/system/password.key
- Reboot your phone: adb reboot
After restarting, the lock screen should disappear. If not, try repeating the command or using an alternative method:
adb shell
su
rm /data/system/locksettings.db
rm /data/system/locksettings.db-wal
rm /data/system/locksettings.db-shm
rebootπ‘
If the su command doesn't work, then there's no root rights on the phone, and then only the Fastboot firmware will help.
4. Firmware via Fastboot (for power users)
The method is suitable if:
- π§ Recovery reset didn't help (requires Mi Account);
- π± Phone "brickled" (not included, stuck on the logo);
- π You need to install a clean firmware without locking.
Redmi 9 (lancelot) will require:
- π₯οΈ PC with Mi Flash Tool installed;
- π₯ Official Fastboot firmware ROM for your model;
- π Cable USB (preferably original);
- π§ Unlocked bootloader (if you are stitching through an informal firmware).
Step-by-step:
- Download and install the Mi Flash Tool.
- Unpack the firmware archive in a folder without Cyrillic characters (for example, C:\MIUI\lancelot).
- Turn off the phone and put it into Fastboot mode: press the Power button + Volume down for 10 seconds. The hare in the eardress hat will appear on the screen.
- Connect the phone to the PC.
- Open the Mi Flash Tool, press Select and point the path to the firmware folder.
- At the bottom, choose Clean all (full cleaning) or Clean all and lock (clean + lock bootloader).
- Press Flash and wait for the process to end (5-10 minutes).
β οΈ Note: Firmware through Clean all and lock will block the bootloader, which will complicate further manipulation of the software. Use this mode only if you are sure that you will not install custom firmware.
What to do if the Mi Flash Tool is in error?
5 Unlocking through EDL (last resort)
EDL (Emergency Download Mode) is a "emergency" firmware mode that allows you to restore the phone even if it does not turn on. On Redmi 9, bypassing Mi Account via EDL is possible, but requires an authorized Xiaomi account or a special box (for example, UFi or EasyJTAG). Without them, the firmware in EDL will lead to locking the device!
When you need an EDL:
- π¨ The phone does not respond to buttons and does not load;
- π bootloader locked and Mi Account tied;
- π± We need to rebuild. IMEI post-fast-fast.
Instructions (for experienced users):
- Download firmware for EDL (for example, with Xiaomi Firmware Updater).
- Install Qualcomm 9008 drivers (can be found on 4PDA).
- Connect the phone off to the PC by clamping Volume up + Volume down, then insert the cable USB. The device must be defined as QHUSB_BULK qualcomm HS-USB QDLoader 9008.
- Open the Mi Flash Tool, select the firmware and press Flash.
Risks:
- π΄ Loss of loss IMEI (The phone won't catch the network);
- π΄ Locking the device if the firmware is not authorized;
- π΄ Loss of guarantee.
π‘
EDL is the most powerful, but also the most dangerous method. Without experience and an authorized Xiaomi account, you should contact the service center.
Frequent mistakes and their solutions
Even following the instructions, users often encounter problems, and consider common errors and ways to fix them:
| Mistake. | Reason. | Decision |
|---|---|---|
| Couldn't find a device in ADB | No drivers or cable faulty | Install drivers from here or try another cable |
| The phone is not included in Fastboot | Sticked the volume or power button | Try to press the buttons alternately or disassemble the phone to clear the contacts. |
| After the firmware no network (IMEI invalid) | The modem or nvram partition is damaged | Restore your IMEI via Maui META or SN Write Tool (requires authorization) |
| Mi Flash Tool is 99% Freezing | Conflict of firmware versions or drivers | Try flashing Mi Flash 2018 or using the --skip-secondary in fastboot commands |
If none of the methods worked, there may be a hardware problem (for example, a damaged memory chip or screen controller), in such cases, we recommend contacting the Xiaomi service center or a trusted smartphone repairman.