How to unlock the smartphone Xiaomi Redmi Note 7: from password to bootloader

Forgot the pattern lock on Xiaomi Redmi Note 7? Phone requires password from Mi Account after reset? Or need to unlock the bootloader to install custom firmware? In this article, 5 working methods of unlocking with all the nuances of the model. We will look at both software solutions (via Mi Unlock Tool, ADB) and hardware (Fastboot mode, EDL), and explain why standard tips like β€œreset via Recovery” often do not work on the Redmi Note 7.

The peculiarity of this model is the protection at the iron level: the Qualcomm Snapdragon 660 processor blocks unauthorized actions, and the MIUI firmware is associated with the Xiaomi account. So "universal" instructions from the Internet will not work here. For example, a reset via Recovery on the Redmi Note 7 can lead to a permanent lock of the device (brick), if you do not take into account the binding to Mi Account. We will analyze each scenario in detail so that you do not lose data and turn the phone into a "brick".

1. unlock the screen (pattern lock, PIN, password)

If you forgot the unlock code, but remember the data from the account Mi Account, tied to the phone, use the official method:

  • πŸ”„ Enter the wrong password 5 times in a row until the message β€œForgot the password” appears?".
  • πŸ“§ Click on it and select Unblock via Mi Account".
  • πŸ”‘ Enter the username and password from the Xiaomi account associated with the device.
  • πŸ“± Set a new password or pattern lock.

If this method doesn’t work (for example, there is no Internet or account is not tied), try unlocking through ADB – but only if the phone is debugging over USB and has access to the PC:

  1. Connect the Redmi Note 7 to your computer via USB.
  2. Open the command line (Win + R β†’ enter cmd).
  3. Enter the commands in order: 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
  4. After the reboot, the phone will be unlocked.

⚠️ Attention: If debugging is on USB If it wasn't enabled in advance, it wouldn't work, and then the only radical ways that you can do is reset it through Recovery or Fastboot, and they'll cause data loss.

πŸ“Š What type of screen lock you use?
pattern lock
PIN-code
Password.
Fingerprint.
Facial recognition

2 Unblocking your Mi Account after a reset

After the Hard Reset, the Redmi Note 7 requires you to enter data from the Mi Account that was tied to the device, which is anti-theft protection, and it is officially impossible to circumvent it.

MethodConditionsThe resultRisks.
Officially delete your account via Mi UnlockYou know the login/password, the phone is not on the blacklist.Full unlock without data lossYou need to wait 72-720 hours (depending on your account status)
Reset via Fastboot with authorizationAccess to PC, USB cable, account is not blockedDeletion of account bindingRequires skills to work with ADB
Appeal for Xiaomi supportThere is a purchase check or box with IMEIRemoving the lock manuallyIt could take up to 30 days.

The best way to use the Mi Unlock Tool is to:

  1. Download the utility from the official website.
  2. Sign in under the same account that you are linked to the phone.
  3. Connect Redmi Note 7 in Fastboot mode (press Power + Volume Down).
  4. Press Unlock and wait for the process to be completed.

⚠️ Note: If the phone was purchased from hand, the previous owner could not untie his Mi Account. In this case, unlocking through Mi Unlock is impossible - you will have to contact the proof of purchase in support of the purchase.

β˜‘οΈ Preparation for unlocking Mi Account

Done: 0 / 5

3. Unlocking the bootloader (Bootloader)

To install custom firmware (LineageOS, Pixel Experience) or obtain root rights to the Redmi Note 7, you need to unlock the bootloader. Xiaomi officially allows this, but with restrictions:

  • ⏳ Waiting: After linking the account to the device, you need to wait from 3 to 30 days (depending on the activity of the account).
  • πŸ“± Conditions: the phone must be on the original firmware MIUI, rootless.
  • πŸ”Œ Tools: Mi Unlock Tool and cable required USB Type-C.

Step-by-step:

  1. Enable OEM Unlocking in Settings β†’ About Phone β†’ MIUI Version (click 7 times to activate Developer Mode) β†’ Additional β†’ For Developers β†’ Unlock OEM.
  2. Link your Mi Account to your device in Settings β†’ Mi Account β†’ Security.
  3. Download the Mi Unlock Tool and log in.
  4. Transfer your phone to Fastboot (Power + Volume Reduction).
  5. Connect to the PC and press Unlock in the utility.

If the utility gives you a "Couldn't unlock" error, check:

  • πŸ”Ή Accounts linked to phone for more than 72 hours.
  • πŸ”Ή The device has the latest version. MIUI.
  • πŸ”Ή Original cable (not all Type-C cables support data transmission).
What happens if you unblock the bootloader unofficially?
Unauthorized unlocking (e.g., through exploits) can result in IMEI blocking, inability to update firmware and loss of warranty. Xiaomi tracks such actions through authorization servers.

4. Unlock through EDL mode (emergency firmware)

EDL (Emergency Download Mode) is the last chance to bring the Redmi Note 7 back to life if other methods have failed, allowing you to flash your phone directly through the Qualcomm port without blocking MIUI.

  • ⚠️ It can lead to a hard brick (complete incapacity).
  • πŸ”§ It requires special equipment (EDL testpoint).
  • πŸ“„ You need a firmware file.mbn for your model (for example, lavender_global_images...).

Instructions for experienced users:

  1. Download the firmware for Redmi Note 7 (codename lavender) from the Xiaomi Firmware Updater website.
  2. Install the Qualcomm HS-USB QDLoader 9008 drivers.
  3. Transfer the phone to EDL: πŸ”§ Method 1: Short circuit testpoints on the board (requires disassembly). πŸ”Œ Method 2: Use of the EDL cable (sold on AliExpress).

MiFlash

QFil

⚠️ Attention: Firmware through EDL erase IMEI, MAC-eMMC addresses and data. After the procedure, you will need to restore IMEI via the engineering menu (#4636##).

πŸ’‘

Before you run through EDL, check the memory chip version (eMMC/UFS) in your phone. Redmi Note 7 with UFS 2.1 requires firmware marked with UFS in the file name.

5.Reset via Recovery (Hard Reset)

If other methods fail, it's hard to reset through recovery mode, but on the Redmi Note 7, it's a nuanced way to do this.

  • πŸ”’ After resetting, the phone will require data input from Mi Account if it was tied.
  • πŸ“± All data (photos, contacts, messages) will be deleted.
  • βš™οΈ Some firmware blocks access to Recovery without authorization.

How to make a Hard Reset:

  1. Turn off the phone.
  2. Press Power + Volume Up for 10-15 seconds until the Mi logo appears.
  3. From the Recovery menu, select Wipe Data β†’ Wipe All Data.
  4. Confirm the action and wait for the reboot.

If after reset, the phone asks for Mi Account and you don’t remember the data, try:

  • πŸ“§ Restore access to your account through the recovery page.
  • πŸ“ž Contact Xiaomi with a check of purchase.
  • πŸ”§ Use it. EDL (see previous section).

πŸ’‘

Recovery resets on Redmi Note 7 don’t bypass Mi Account binding, and if your account isn’t yours, your phone will remain locked.

6. Alternative methods (for advanced users)

If the standard methods do not work, you can try to bypass the lock through:

6.1.Use of the DirtyCOW exploit (for older versions of MIUI)

This method only works on MIUI firmware prior to version 12.0.3, and it's a vulnerability in the Linux kernel that allows you to get root without unlocking the bootloader.

  1. Download the archive with an exploit (for example, with XDA Developers).
  2. Connect your phone to a PC with USB debugging enabled.
  3. Run the dirtycow script via ADB: adb push dirtycow /data/local/tmp/ adb shell chmod 777 /data/local/tmp/dirtycow /data/local/tmp/dirtycow
  4. After receiving root, delete the lock files: rm /data/system/gesture.key rm /data/system/locksettings.db

6.2 Fastboot Firmware with Mi Account bypass

It requires a modified firmware without checking your account.

  • ⚠️ Possible loss IMEI.
  • ⚠️ The phone may stop updating.
  • ⚠️ The guarantee will be cancelled.

Instructions:

  1. Download Fastboot firmware with a bypass (for example, MIUI EU or China Stable without checking your account).
  2. Unpack the archive in a folder with MiFlash.
  3. Transfer the phone to Fastboot.
  4. In MiFlash, select Clean All and press Flash.

πŸ’‘

Before you run your firmware through Fastboot, check the bootloader version (fastboot getvar anti). If the value is anti: 3 or 4, the firmware can lock the phone permanently.

FAQ: Frequent questions about unlocking the Redmi Note 7

Can I unlock the Redmi Note 7 without losing data?
Yes, but only if: πŸ”“ You remember the password from Mi Account (unlocking through Mi Unlock). πŸ“± The phone's debugging on. USB (unlock ADB). In all other cases, the data will be deleted.
What if Mi Unlock says "Couldn't unlock"?
Check it out: πŸ•’ Accounts linked to phone for more than 72 hours. πŸ“‹ The original firmware on the device MIUI (non-custom). πŸ”Œ The official Xiaomi cable is used. 🌐 Internet connection stable (the utility checks the status of the account online). If the error repeats, try it: πŸ”„ Reinstall Qualcomm drivers. πŸ“₯ Download Mi Unlock from another source (e.g. official website).
How to know if the bootloader is unlocked on the Redmi Note 7?
Two ways: Turn on your phone and go to Settings β†’ The phone. β†’ Version. MIUI. Click "Core Version" several times until "Trainer Status: Unlocked" appears. + Volume reduction: If the bottom of the screen says "Unlocked", the bootloader is unlocked.
Can I unlock the Redmi Note 7 if it is bought from hand and tied to someone else’s Mi Account?
Officially, no, but there are options: πŸ“ž Ask the previous owner to untie the account through the Mi Account settings. πŸ“„ Contact Xiaomi with a check (if the phone is not blacklisted). πŸ”§ Squeeze through EDL (Buying phones with a linked account is risky. Always check the lock status through Fastboot before buying.
Why is the network not running after firmware is running through EDL (no IMEI)?
When you're firmware through EDL often erased section with IMEI and MAC-To restore: Find out the original IMEI (Insert it on a box or under a battery (##4636##) through ADB: su echo 'AT +EGMR=1,7,"IMEI_1"' > /dev/pttycmd1 echo 'AT +EGMR=1,10,"IMEI_2"' > /dev/pttycmd1 Reboot your phone if you want. IMEI It is not repaired, possibly damaged. NV-section – you will need a re-firmware with the correct file nvdata.bin.