How to unlock Xiaomi Redmi Note 7: from the pattern lock to the Mi Account

Xiaomi Redmi Note 7 remains one of the most popular budget smartphones even years after the release - thanks to reliable hardware and support for MIUI updates. But what if you forgot the password, the phone locked after unsuccessful attempts to enter, or the device requires data from the previous owner (FRP-lock)? In this article - 5 proven ways to unlock, from the simplest to technically complex, taking into account the features of the Redmi Note 7 (codename lavender).

We will look at methods for different scenarios: a forgotten pattern lock, PIN-code, lock through Mi Account, and bypass Googleโ€™s factory protection (FRP) Importantly, not all ways will save your data โ€” some require a complete reset, so backups should be prepared in advance if the phone still has any response.

Warning: Methods using ADB, Fastboot or third-party utilities can lead to a loss of warranty if the device is not officially unlocked. For models with a locked bootloader, some instructions will not work, we will warn you about this separately.

1 Unlocking through Mi Account (official method)

If the Redmi Note 7 has a Xiaomi account tied to it and the phone is connected to the Internet, itโ€™s the fastest and most secure method, and itโ€™s best for cases where you remember your account details but youโ€™ve forgotten your on-screen password.

Algorithm of action:

  1. On the lock screen, enter any password / key 5 times in a row - the message "Forgot the password?" will appear.
  2. Click on this caption and select โ€œUnblock via Mi Accountโ€.
  3. Enter the username and password from your Xiaomi account.
  4. Confirm unlocking via SMS or email (if two-factor authentication is enabled).

โš ๏ธ Note: If the phone is not connected to the network (Wi-Fi or mobile Internet), this method will not work, and it is not available unless the previous owner untied his Mi Account - in this case, you will need to reset via Fastboot (see section 4).

Is Xiaomi account linked to phone?

Is there an email/SMS to confirm?

Is the phone connected to the Internet (Wi-Fi or mobile network)

Is the battery charged (minimum 30%)

-->

Redmi Note 7 with MIUI 12 firmware and later can request additional confirmation via SMS to the attached number.If you canโ€™t get the code (for example, changed the SIM card), try to restore access to your Xiaomi account through the web version of account.xiaomi.com.

2. reset the pattern lock via ADB (without loss of data)

The method is suitable if the Redmi Note 7 includes debugging USB (USB Debugging) and the phone is computer-recognisable. This is rare, but if you've previously activated this mode, you can delete the lock key file without completely resetting it.

Instructions for Windows:

  1. Download and install Android SDK Platform-Tools (or only adb.exe).
  2. Connect the Redmi Note 7 to the PC via USB-cable (original!).
  3. Open the command line (Win + R โ†’ enter cmd) and do:

adb shell


su




rm /data/system/gesture.key




rm /data/system/locksettings.db




rm /data/system/locksettings.db-wal




rm /data/system/locksettings.db-shm




reboot

After the reboot, the pattern lock will reset, but all data on the phone will be saved. โš ๏ธ Attention: If debugging is on USB It was not included in advance, this method will not work โ€“ go to the next section.

What if the ADB canโ€™t see the device?
Make sure you have drivers installed for Xiaomi Redmi Note 7 (you can download it on the official website). USB-cable (preferably original) Enable File Transfer Modeยป (MTP) When you connect to a PC, restart your phone and computer.

3. Hard reset via Recovery (data loss)

If previous methods didnโ€™t work and phone access is urgent, you can reset your settings completely through Recovery mode, which will delete all data, including photos, messages and apps, but unlock the device.

Step-by-step:

  1. Turn off the Redmi Note 7 (press the power button for 10 seconds).
  2. Press the Power button + Volume up at the same time and hold for 10-15 seconds until the Mi logo appears.
  3. Release the buttons and you will be taken to the Recovery menu (in English or Chinese).
  4. Use volume buttons for navigation and power button to select the item.
  5. Select Wipe Data โ†’ Wipe All Data (or in Chinese version).
  6. Confirm the action and wait for the reset to be completed.
  7. Reboot the phone (Reboot) โ†’ Reboot to System).

โš ๏ธ Note: Some firmware may require data entry from a previous Mi Account after a reset (FRP-If the phone was bought by hand and the seller did not untie the account, go to section 5.

ScriptUnlocking methodAre the data stored?You need a PC?
Forgotten pattern lock/PINMi AccountYes.No.
USB debugging enabledADBYes.Yes.
No access to Mi AccountReset via RecoveryNo.No.
FRP-blocking after resetFastboot or utilityNo.Yes.

Reset via Recovery

Unlocking with Mi Account

Used ADB.

I went to the service center.

Never blocked your phone.

-->

4. Unlock via Fastboot (for a blocked Bootloader)

If the Redmi Note 7 has a bootloader locked and Recovery reset has not helped because of FRP, you will need to use Fastboot mode.This method is suitable for devices with officially unlocked Bootloader (if you have done it before through the Mi Unlock Tool).

Instructions:

  1. Download Mi Flash Tool and firmware for Redmi Note 7 (Fastboot version).
  2. Turn off the phone and put it in Fastboot mode: press the Power button + Volume down.
  3. Connect the device to your PC and start the Mi Flash Tool.
  4. In the program, select the downloaded firmware and press Refresh - the phone must be determined.
  5. Press Flash and wait for the process to complete (5-10 minutes).

โš ๏ธ Note: This method will delete all data and install a clean firmware. If Bootloader is locked and you haven't officially unlocked it, the Mi Flash Tool won't work - you'll need to use alternative utilities (e.g., the Bootloader is locked, SP Flash Tool for MediaTek processors, but Redmi Note 7 is built on Qualcomm Snapdragon 660, so this option is not suitable).

๐Ÿ’ก

Before you run your Fastboot, check the MIUI version on your phone. If it's newer than the firmware you download, you might get an error, and then download the latest stable version from the official website.

5. FRP-blocking bypass after reset

If the phone requires data from the previous Mi Account (or Google if it was a link) after resetting via Recovery, it is called FRP-locking (Factory Reset Protection). There are several ways to bypass the Redmi Note 7, but they require technical skills.

Method 1: Mi Assistant (for MIUI 10โ€“11 firmware)

  1. Download the utility XiaomiTool V2 (requires a Windows PC).
  2. Connect your phone in Fastboot mode (as in Section 4).
  3. In the program, select the Redmi Note 7 (lavender) model and follow the instructions for bypassing FRP.

Method 2: Through EDL-The mode (for experienced users)

  1. Transfer the phone to EDL (emergency boot) mode using a test item or short circuit of contacts on the board.
  2. Use the Mi Flash Tool with firmware for EDL (for example, lavender_eea_global_images...).
  3. Switch the device with complete data erasure.

โš ๏ธ Attention: Bypass FRP It may violate Xiaomi's terms of use (MIUI 13+) These methods often stop working, the company tightens the security. If you bought your phone from hand, contact the seller to untie your account.

๐Ÿ’ก

Bypassing FRP on Redmi Note 7 is only possible on firmware older than MIUI 12. New versions require official confirmation from Xiaomi or help from a service center.

6. Alternative methods and service centers

If neither of these methods worked, there are two options:

  1. Xiaomiโ€™s official service โ€“ can help if you have a check or proof of purchase (for example, if the phone is locked after an update).
  2. Unofficial workshops โ€” some specialize in bypassing FRP and unlocking Bootloader, but the risk of fraud is high. The average cost of the service: 1000-3000 rubles.

Before contacting the service:

  • ๐Ÿ“„ Keep a check or a warranty card (if any).
  • ๐Ÿ”ง Check if they work specifically with the Redmi Note 7 โ€“ some models require special hardware.
  • ๐Ÿ’ณ Ask the cost in advance โ€“ sometimes it is cheaper to buy a used phone than to pay for unlocking.

If the phone is locked after buying from hand, try contacting the seller via an ad (for example, on Avito or Yula).In 30% of cases, previous owners are ready to help with the untie of the account remotely.

FAQ: Frequent questions about unlocking the Redmi Note 7

Can I unlock the Redmi Note 7 without losing data?
Yes, but only if: The phone is USB debugging enabled (ADB method), you remember the Mi Account data and the phone is connected to the Internet, and in all other cases, you will need a reset that will delete user data.
What if the phone asks for an old Mi Account after a reset?
It's FRP-Options: Contact the previous owner and ask to unplug the account via account.xiaomi.com. Use utilities like XiaomiTool V2 (See section 5. Contact the service center with proof of purchase.
How to unlock Bootloader on Redmi Note 7?
Officially, through the Mi Unlock Tool: Link your Mi Account to your phone in the settings. OEM Unlock in Settings โ†’ For developers, connect your phone to your PC in Fastboot mode and follow the instructions. โš ๏ธ Xiaomi blocks 7-30 days of unlocking for new accounts.
Why does the phone not turn on after Fastboot?
Possible causes: Inappropriate firmware version (for example, for another model); interrupted firmware process; damaged USB-cable or port. Try repeating the procedure with another firmware or contact the service.
Can I unlock the Redmi Note 7 through the Engineering Menu?
No. The engineering menu (#4636###) does not contain features for password reset or lock-bypassing, but is only for network and hardware diagnostics.