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:
- On the locked screen, tap Forgot your password? (or Forgot password?).
- Enter the email/phone associated with the Mi Account and the password.
- Confirm your login via SMS or email (if two-factor authentication is enabled).
- 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.
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:
- Turn off the Redmi Note 7 with a long press of the power button.
- Press the Power Button + Volume up at the same time and hold for 10-15 seconds until the MI logo appears.
- From the Recovery Mode menu, select the language and tap Wipe Data β Wipe All Data.
- Confirm the action by choosing Confirm.
- 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:
- Download Mi Unlock Tool from the official website (Windows only).
- Install Xiaomi drivers for Redmi Note 7 (you can use Mi PC Suite).
- Turn off the phone and put it in Fastboot mode: press the Power button + Volume down.
- Connect the Redmi Note 7 to the PC via USB-cable.
- Launch the Mi Unlock Tool, log in to your Mi Account (should match the account tied to your phone!).
- 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"
| Mistake in Mi Unlock Tool | Reason. | Decision |
|---|---|---|
| Couldn't unlock | The account doesn't match. | Use the original Mi Account or contact for support |
| Device is locked | bootloader locked | Wait 72/168/720 hours (by Xiaomi rules) |
| Network error | Internet problems | Check your PCβs network connection or use a VPN |
| Mi account not bound | The phone is not tied to the account | Link 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:
- Connect the Redmi Note 7 to your PC via USB.
- Open the command line (Win + R β enter cmd).
- 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:
- Download the official TWRP for the Redmi Note 7 (model lavender).
- Turn your phone into Fastboot mode (Power + Volume Down).
- Flow TWRP through the command line: fastboot flash recovery twrp.img fastboot boot twrp.img
- In TWRP, go to Advanced β File Manager.
- Delete files: /data/system/locksettings.db, /data/system/locksettings.db-wal, /data/system/locksettings.db-shm, /data/system/gesture.key (or password.key).
- 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:
- Go to the Xiaomi support website.
- Select Unlock Device or Mi Account Issues.
- Fill out the form with the IMEI, serial number and reason for blocking.
- Attach scans of your check and passport.
- 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.