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

Xiaomi Redmi Note 7 is one of the brand's most popular smartphones, but even its owners sometimes face the problem of locking.Forgotten pattern lock, wrong PIN-A code or two-factor authentication Mi Account can turn a gadget into a brick.In this article, 5 proven ways to unlock, including methods without losing data and with a full reset to factory settings.

The Redmi Note 7 features MIUI and hardware encryption protection, which means that standard methods like hard reset via Recovery Mode don’t always work without additional manipulation, and we’ll explore unique features for this model, including bypassing locks through Fastboot, using the Mi Unlock Tool, and even physically connecting to a PC using ADB.

Important: If your phone was bought by hand or previously used by another owner, some methods may not work due to the link to someone else’s Xiaomi accounts, in which case, official proof of ownership will be required.

1. Unlock via Mi Account (if you remember the login / password)

The easiest way is to use a tied Mi Account. Xiaomi allows you to reset the screen lock through the web interface, but only if:

  • πŸ”Ή The phone is connected to the Internet (Wi-Fi or mobile network).
  • πŸ”Ή You remember. email/Phone and password from Mi Account.
  • πŸ”Ή The device is enabled synchronization with the cloud.

Instructions:

  1. On the locked screen, tap Forgot your password? (or Forgot password?).
  2. Enter the email/phone associated with the Mi Account and the password.
  3. Confirm your login via SMS or email (if two-factor authentication is enabled).
  4. Follow the system instructions for resetting the pattern lock or PIN-code.

If the buttons Forgot your password? no, try entering the wrong password 5 times in a row, and then the option to unlock through Mi Account will appear.

⚠️ Note: If the Find Device feature is enabled on the phone, location verification may be required after unlocking via Mi Account.

πŸ“Š How do you normally lock your smartphone?
pattern lock
PIN-code
Fingerprint.
Facial recognition
Don't block it.

2.Reset via Recovery Mode (complete data cleanup)

If Mi Account is lost, you can still reset your phone hard through Recovery mode, which will delete all your data, including photos, contacts and apps, but will restore access to your phone.

Step-by-step:

  1. Turn off the Redmi Note 7 with a long press of the power button.
  2. Press the Power Button + Volume up at the same time and hold for 10-15 seconds until the MI logo appears.
  3. From the Recovery Mode menu, select the language and tap Wipe Data β†’ Wipe All Data.
  4. Confirm the action by choosing Confirm.
  5. After reset, select Reboot β†’ Reboot to System.

The phone will reboot to the β€œout of the box” state, and the first time you turn on, you will need to go through the initial setting, including binding to the Mi Account (if it was previously).

Turn off the phone.

Press the power button + volume up

Wait for the Recovery Menu to arrive

Select Wipe Data β†’ Wipe All Data

Confirm discharge-->

⚠️ Attention: On some firmware MIUI After resetting via Recovery, you may need to enter data from Mi Account, which was previously linked to the phone. If you do not remember them, this method will not work, you will need to use Mi Unlock Tool (see next section).

3 Unlocking through Mi Unlock Tool (official way from Xiaomi)

Mi Unlock Tool is a utility from Xiaomi that allows you to unlock the bootloader and reset the binding to the Mi Account.

  • πŸ”Ή Phone locked due to reset via Recovery and requires Mi Account data.
  • πŸ”Ή You bought your phone with your hands and don’t know your account.
  • πŸ”Ή The device is not activated (for example, after buying on AliExpress with a link to a Chinese account).

Instructions:

  1. Download Mi Unlock Tool from the official website (Windows only).
  2. Install Xiaomi drivers for Redmi Note 7 (you can use Mi PC Suite).
  3. Turn off the phone and put it in Fastboot mode: press the Power button + Volume down.
  4. Connect the Redmi Note 7 to the PC via USB-cable.
  5. Launch the Mi Unlock Tool, log in to your Mi Account (should match the account tied to your phone!).
  6. Follow the instructions of the program to unlock.

The process can take anywhere from 3 to 720 hours (depending on Xiaomi’s policy) and once the bootloader is unlocked, you can flash custom Recovery (e.g. TWRP) and reset your password without losing data.

What to do if Mi Unlock Tool says "Couldn't unlock"
If the utility gives an error Couldn't unlock or Current account is different from the account info on the device, it means: 1. The account from which you are trying to unlock the phone does not match the one associated with the device. 2. The phone was purchased with a link to another region (for example, China), and official proof of ownership is required through Xiaomi support. 3. The bootloader is already unlocked, but you need firmware through Fastboot.

Mistake in Mi Unlock ToolReason.Decision
Couldn't unlockThe account doesn't match.Use the original Mi Account or contact for support
Device is lockedbootloader lockedWait 72/168/720 hours (by Xiaomi rules)
Network errorInternet problemsCheck your PC’s network connection or use a VPN
Mi account not boundThe phone is not tied to the accountLink the device to Mi Account before unlocking

4. Unlock through ADB (without data loss)

If the phone has USB debugging enabled and you have access to the PC, you can delete the password file via ADB. This method only works if:

  • πŸ”Ή The debugging option was previously activated USB In Settings β†’ The phone. β†’ Version. MIUI (7 times tap to unlock the developer mode).
  • πŸ”Ή The phone is connected to the PC and is recognized in ADB.

Instructions:

  1. Connect the Redmi Note 7 to your PC 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

After the reboot, the lock will be reset. If the commands don't work, try replacing gesture.key with gatekeeper.password.key (depending on the MIUI version).

1. whether Xiaomi ADB Interface drivers are installed (can be downloaded via Mi PC Suite).

2. whether debugging over USB is enabled in the developer settings.

3.Do you use the original USB-cable (some cheap cables do not support data transmission).-->

Bypassing the lock via TWRP (for advanced users)

If the bootloader is unlocked, you can flash custom Recovery (TWRP) and manually delete the lock files, which saves data but requires technical skills.

Step-by-step:

  1. Download the official TWRP for the Redmi Note 7 (model lavender).
  2. Turn your phone into Fastboot mode (Power + Volume Down).
  3. Flow TWRP through the command line: fastboot flash recovery twrp.img fastboot boot twrp.img
  4. In TWRP, go to Advanced β†’ File Manager.
  5. Delete files: /data/system/locksettings.db, /data/system/locksettings.db-wal, /data/system/locksettings.db-shm, /data/system/gesture.key (or password.key).
  6. Reboot the phone.

If you have a No OS installed error after you reboot, don't be afraid. Just reflash the original firmware through Fastboot or restore the backup through TWRP.

⚠️ Attention: Firmware TWRP On Redmi Note 7 with the bootloader locked, you will get a brick. First, unlock the bootloader through the Mi Unlock Tool!

- The loader is unlocked.

- There's a backup.

- You are ready for the possible loss of the guarantee.-->

6.Official unlocking via Xiaomi support (for complex cases)

If none of the methods worked (for example, the phone is bought from hand and tied to someone else's Mi Account), you can contact official support Xiaomi.

  • πŸ”Ή Check or document confirming purchase.
  • πŸ”Ή IMEI Devices (indicated on or under the battery).
  • πŸ”Ή Passport data for identification.

Instructions:

  1. Go to the Xiaomi support website.
  2. Select Unlock Device or Mi Account Issues.
  3. Fill out the form with the IMEI, serial number and reason for blocking.
  4. Attach scans of your check and passport.
  5. Wait for a response (usually 3-7 days).

If the phone was purchased on AliExpress or other platforms, ask the seller for the data of the associated Mi Account or confirmation of the detachment. Otherwise, Xiaomi may refuse to unlock.

FAQ: Frequent questions about unlocking Redmi Note 7

Can I unlock the Redmi Note 7 without losing data?
Yes, but only if: USB debugging enabled (ADB method) Installed custom Recovery (TWRP) and Mi Account accessed with a tethered phone, otherwise you'll need to reset via Recovery or Fastboot, which will delete all data.
What to do if you ask for an old Mi Account after a reset?
This means that the phone is tied to the previous owner's account, and solutions: Contact the seller for account details, use the Mi Unlock Tool (if you have previously linked your account), formally request unlocking through Xiaomi support with confirmation of purchase. You can't bypass this protection yourself, Xiaomi blocks such attempts at the firmware level.
How to know if the bootloader is unlocked on the Redmi Note 7?
Put your phone in Fastboot mode (Power) + If you have Unlocked at the bottom of the screen, the bootloader is unlocked. If Locked, you need Mi Unlock Tool.
Can I unlock my phone if it is in Lost/Stolen status?
No. If a device is marked as lost through Find Device, you can only unlock it through the owner's original Mi Account, with a formal request to support Xiaomi with proof of ownership, and any other methods (including firmware) will result in permanent IMEI blocking.
Why does the phone not turn on after Fastboot?
Possible reasons: Wrong firmware version (e.g., flashed Global ROM on Chinese model); interrupted firmware (switched off USB or battery dead); Unlocked bootloader before TWRP firmware. Solution: Swipe the original firmware through Mi Flash Tool in Clean All mode.