How to unlock Xiaomi Redmi Note 7: bootloader, pattern lock and account Mi

The Xiaomi Redmi Note 7, released in 2019, is still a popular smartphone due to its balanced specs and affordable price. However, many users face the need to unlock the device – whether it is a forgotten pattern lock, a tied Mi Account of the previous owner or a locked bootloader for installing custom firmware. In this article, we will discuss all the current ways of unlocking, including official methods from Xiaomi and workaround solutions for complex cases.

It's important to understand that unlocking procedures vary depending on the type of lock. For example, resetting a pattern lock through Recovery takes 5 minutes, whereas unlocking a firmware bootloader can take a week due to Xiaomi restrictions. We'll detail each scenario, specify the risks and give recommendations for data recovery. If you're not sure about your actions, you better contact a service center to avoid turning your smartphone into a brick.

1. Unlocking the pattern lock or password

Forgot your password or graphical key on the Redmi Note 7? This is the most common problem, and it can be solved in several ways, from a simple reset via Mi Account to a hard reset via Fastboot. The main rule is that if the device was enabled Mi Account and you remember the login data, the chances of saving data are much higher.

If your Mi Account is not tied or you don't remember your username/password, you'll have to do a hard reset, which will result in deletion of all your data.

  • πŸ”‘ Mi Account (if you are tied and remember data) – unlock without losing data.
  • πŸ”„ Recovery Mode – reset to factory settings (data will be deleted).
  • πŸ–₯️ Fastboot – if Recovery is not working or you need to bypass your Mi Account.
  • πŸ“± Through ADB (Only if the debugging was enabled USB).

The most reliable way to do this is to use a Mi Account.

  1. On the lock screen, enter the wrong password 5 times until the button Forgot the password appears.
  2. Click on it and select Login via Mi Account.
  3. Enter the login and password from the account associated with the device.
  4. Follow the instructions to create a new password or pattern lock.

⚠️ Note: If the device has enabled Find Device, after resetting via Recovery or Fastboot, you may need to enter your Mi Account data even after a complete reset. This is anti-theft protection, and it is almost impossible to get around it without the original data.

πŸ“Š What Unlocking Method Have You Tried?
Through the Mi Account.
Through Recovery.
Through Fastboot.
I haven't tried it yet.

2 Unblocking your Mi Account (if you bought your phone with your hands)

You bought a Redmi Note 7 with your hands and you found it was tied to someone else's Mi Account? This is a classic situation where the previous owner didn't untie the device, and there are only two ways you can officially unlock the smartphone:

  1. Ask the seller to untie the device via account.xiaomi.com (Device section β†’ Delete the device).
  2. Contact Xiaomi with a check for purchase (if the phone is new) or a purchase agreement (if used).

If it is not possible to contact the seller, informal methods remain, but they carry risks:

  • πŸ› οΈ Firmware via Fastboot with account deletion (requires an unlocked bootloader).
  • πŸ”§ Use of exploits (for example, through ADB Available tools such as Mi Account Unlock Tool).
  • πŸ’» Flashing to custom firmware (like LineageOS), but this voids the warranty.

⚠️ Warning: Unofficial methods can lead to blocking IMEI In addition, since 2021, Xiaomi has tightened protection: many exploits have stopped working, and firmware through Fastboot now requires authorization of the developer account.

If you are planning to do this, here are the minimum requirements:

Battery charge at least 60%|Installed drivers ADB/Fastboot|Downloaded firmware for Redmi Note 7 (codename)|Disabled antivirus protection on PC|Backup of important data (if possible)-->

3. Unlocking the bootloader (Bootloader) for firmware

If you want to install custom Recovery (like TWRP) or unofficial firmware (like Pixel Experience), you first need to unlock the bootloader. Xiaomi officially allows this, but the process has become more complicated due to security policies.

Here is the step-by-step instruction for the Redmi Note 7 (codenamed lavender):

  1. Link your Mi Account to your device: Go to Settings β†’ The phone. β†’ Version. MIUI (Press 7 times to turn on Developer Mode. Return to Settings β†’ Additionally. β†’ For developers and include OEM-unlocking and debugging USB. Connect your phone to your PC and log in to Mi Unlock Tool (download on the official website).

Wait 168 hours (7 days) for the following:

Since 2021, Xiaomi has introduced a mandatory wait after the account is tied, which cannot be bypassed officially.

Unlock the loader:

1. Run the Mi Unlock Tool on PC.


2. Turn the phone into Fastboot mode (turn off, then press Power + Volume Down).




3. Connect the phone to the PC and press Unlock in the program.




4. wait until the completion (usually 10-30 seconds).

Once the bootloader is unlocked, all data on the device will be deleted, and Widevine protection will move to the L3 layer (there is no HD support in Netflix, Disney+, etc.). You can restore Widevine L1 only by flashing the original Recovery.

Unlocking methodIs a reset required?Waiting timeRisks.
Official (Mi Unlock Tool)Yes.168 hoursData loss, Widevine L3
Through exploit (e.g. Doodle Unlock)No.5-30 minutePossible blocking of Mi Account
Firmware via EDL (Emergency mode)Yes.1-2 hoursThe risk of brick requires an authorized account
fastboot flash recovery recovery.img

where recovery.img β€” Stock Recovery File for Your Version MIUI.-->

4 Unlocking through EDL (Emergency Mode)

EDL (Emergency Download Mode) is the "last chance" to unlock the Redmi Note 7 if other methods have failed.It allows you to flash a device even with a locked bootloader, but requires special hardware (EDL cable or testpoints) and an authorized Xiaomi account.

This method is risky and can lead to permanent IMEI blocking or damage to the communication module.

  • πŸ”Œ The phone is not switched on or stuck on the Mi logo.
  • πŸ”’ The bootloader is locked and the Mi Unlock Tool is not working.
  • πŸ“± The device is not defined in Fastboot.

To enter EDL mode:

  1. Turn off the phone.
  2. Close the testpoints (for the Redmi Note 7, these are contacts near the headphone jack) or use an EDL cable.
  3. Connect your phone to your PC – a Qualcomm HS-USB QDLoader 9008 device should appear in Device Manager.
  4. Swipe the full firmware image through the Mi Flash Tool (select Clean All mode).

⚠️ Note: Since 2022, Xiaomi has been blocking firmware through EDL If you do not have an authorized account (for example, from a service center), the chance of successful firmware is minimal. The alternative is to search for β€œgray” accounts in thematic communities, but this violates Xiaomi’s rules and can lead to the blocking of the device.

What if the phone doesn’t turn on after EDL?
If, after running through the EDL, the Redmi Note 7 does not respond to the power button: 1. Check if the device in Device Manager is identified as Qualcomm. 2. Try flashing another firmware image (for example, an older version of MIUI). 3. If the phone is warming or vibrating, but the screen is black, the display connector or plume may be damaged. 4. In extreme cases, contact the service: sometimes you need to flash through the UFI Box or similar equipment.

5. Network Unblocking (IMEI)

If your Redmi Note 7 is blocked by a carrier (for example, it was purchased under a contract), you will need an unlock code or firmware to unlock the network. Unlike your Mi Account, you can legally bypass IMEI blocking, but this depends on the operator's policy.

Here's what we can do:

  • πŸ“ž Contact the operator with a request to provide an unlock code (may be paid).
  • πŸ”§ Use code generators (e.g. DC-Unlocker), but they are often paid and don't always work).
  • πŸ–₯️ Switch the modem (requires an unlocked bootloader and is risky).

To stream the modem through Fastboot:

fastboot flash modem NON-HLOS.bin


fastboot erase modemst1




fastboot erase modemst2

After that, the phone must identify the networks of all operators, but there is no guarantee - some carriers (for example, AT&T in the United States) use a hardware lock that can only be removed in the service center.

6. Data recovery after unlocking

If you have to do a complete reset, the chances of recovering the data are minimal, but there are a few ways to do this:

  • πŸ” Through ADB (If debugging was enabled: Connect your phone to your PC and do: adb pull /data/data/com.android.providers.contacts/databases/contacts2.db (This is an example of re-establishing contacts).
  • πŸ“ Through Recovery with Support ADB (for example, TWRP): Copy files from the section /data PC-only.
  • πŸ› οΈ Through specialized programs (such as Dr.Fone or EaseUS MobiSaver), but they often require root rights.

If the data has been synchronized with Mi Cloud, you can restore it after you log in to your account:

  1. Go to Settings. β†’ Mi Account β†’ Mi Cloud.
  2. Select Restore and provide a backup copy.

⚠️ Warning: Do not install recovery software from unknown sources, as it may contain malicious code. Avoid writing new data to your phone before recovery: this reduces the chances of success.

πŸ’‘

If the phone was enabled Find Device, after reset may require the entry of Mi Account data even when recovering through EDL. This is protection against theft, and it is impossible to bypass it without the original data.

7. Frequent errors and their solutions

When you unlock the Redmi Note 7, users often encounter errors, and here are the most common ways to fix them:

Mistake.Reason.Decision
Couldn't unlock the Mi Unlock ToolIt took 168 hours to link the account.Wait or use exploit (e.g. Doodle Unlock)
This device is locked in FastbootThe bootloader is not unlockedUse the Mi Unlock Tool or run through EDL
Phone is not defined in FastbootDrivers not installed or damaged USB-portInstall Qualcomm drivers, try another cable/port
Anti-rollback check failThe firmware is older than the current version of MIUIUse the newer version or use the Anti-Rollback Patch.

If you see an SLA Auth Error error in the Mi Flash Tool, it means that your account is not authorized to run through EDL.

  • Use an authorized account (you can find it in thematic forums, but it is risky).
  • Contact the Xiaomi service center with a check for the purchase.
  • Try flashing through Fastboot (if the bootloader is unlocked).
Can I unlock the Redmi Note 7 without losing data?
Yes, but only if: Mi Account is attached to the device, and you remember the login details. USB Debugging was enabled and you can use ADB. In all other cases (reset via Recovery, Fastboot, EDL), the data will be deleted.
How much does it cost to unlock in the service center?
Cost depends on the type of lock: Reset pattern lock: 500-1500 β‚½. Unblocking Mi Account: 1500–3000 β‚½ (If there is no check from the previous owner, unlock the bootloader: 1000–2000 β‚½ (If you don't want to wait 168 hours, then you can run the firmware through EDL: 2000–5000 β‚½ (In official Xiaomi service centers, you will not unlock your Mi Account without a check.
Can you get around the 168 hours waiting to unlock the bootloader?
Officially, no. But there are informal ways: Use the Doodle Unlock Tool (not all versions of MIUI); Switch through EDL (requires an authorized account); restore a backup through TWRP if it's already installed; Risks: locking your Mi Account or turning your phone into a brick.
What if the mobile network does not work after unlocking?
This is a typical problem after firmware is run through Fastboot or EDL. Solutions: Check if IMEI is lost (enter in the engineering menu *#06#). Scroll the modem separately (NON-HLOS.bin and modemst1/2). Restore persist partition via TWRP. If IMEI is missing, try to restore it through the engineering menu or contact the service.
How to check if the bootloader is unlocked on the Redmi Note 7?
Turn off your phone and press Power + Volume Down to enter the Fastboot. If you see Unlocked at the bottom of the screen and a yellow lock icon, the bootloader is unlocked. If Locked and the gray lock are locked.