How to reset the password on Xiaomi Redmi 7: all working ways

Forgot the pattern lock or PIN-Can't log in after buying a used phone? This situation is familiar to many users, but don't panic - there are several official and informal ways to unlock. Depending on whether the device is linked to the account Mi Account, whether debugging is enabled USB Or if you have a custom recap, you can choose the best method.

It is important to understand that resetting the password to Redmi 7 (codename onc) has its own nuances. For example, if the device is activated with the function "Device Protection" (Device Protection), after resetting via Recovery, you may need to enter data from the previous Mi Account. In this article, we will discuss all the current ways - from simple to advanced - and also tell you how to avoid blocking after unlocking.

1 Unlocking through Mi Account (official method)

The most secure and recommended method for Xiaomi is to use a tied Mi Account, which works if:

  • πŸ“± Device connected to the Internet (Wi-Fi or mobile network).
  • πŸ”‘ You remember the username and password from the Mi Account that was linked to the phone.
  • πŸ”„ Find the device has been activated in the settings.

To reset the password:

  1. On the lock screen, tap Forgot your password? (if available).
  2. Enter the email or phone number associated with the Mi Account.
  3. Confirm the entry via SMS or email.
  4. Follow the instructions on the screen to create a new password.

If you have forgotten your password? is missing, try unlocking your phone via i.mi.com:

  • Log in to your account.
  • Go to the Find the device section.
  • Select Redmi 7 from the list and click Unblock.

πŸ’‘

If you unlock your Mi Account and your phone requires you to enter your old password, try rebooting your device. Sometimes the system resets the request after the reboot.

⚠️ Note: If the phone was bought with hands and the previous owner did not untie his Mi Account, this method will not work.

2.Reset via Recovery Mode (hard reset)

If you don't have access to Mi Account, you can do a hard reset through standard recovery. This method will delete all data from the device, including photos, contacts and apps. Redmi 7 uses Stock Recovery, so the procedure is simple but has limitations.

Step-by-step:

  1. Turn off the phone with a long press of the power button.
  2. Press Volume Up + Power at the same time and hold for 10-15 seconds until the Mi logo appears.
  3. Release the buttons when you see the Recovery menu (navigation is done by volume buttons, the choice is by the power button).
  4. Select Wipe Data β†’ Wipe All Data and confirm the action.
  5. Once the process is complete, go back to the main menu and select Reboot β†’ Reboot to System.

The phone will reboot and suggest that you set it up as new, but there's a caveat:

What to do if you need an old Mi Account after resetting?
If the Redmi 7 has been activated FRP (Factory Reset Protection, after reset, the system will request the data of the previous Mi Account: πŸ”„ Reboot your phone and reset (sometimes helps). πŸ“§ Contact the previous owner and ask to untie the account via account.xiaomi.com. πŸ› οΈ Use the method of c ADB or Fastboot (described below).

MethodIs a Mi Account required?Is the data deleted?Difficulty
Forgot your password?Yes.No.⭐
Reset via RecoveryNo (but may be required after resetting)Yes.⭐⭐
ADB (if debugging is enabled)No.No.⭐⭐⭐
Fastboot (firmware)No.Yes.⭐⭐⭐⭐
πŸ“Š What Unlocking Method Have You Tried Before?
Through the Mi Account.
Reset to Recovery
ADB/Fastboot
I've been to the service.
Never blocked.

3. Unlock via ADB (if USB debugging is enabled)

If Redmi 7 has previously been activated by USB debugging (Settings β†’ About Phone β†’ MIUI Version β†’ 7 taps to unlock developer options), you can reset your password without losing data. This method requires a computer and installed ADB drivers.

Instructions:

  1. Connect your phone to your PC through USB-cable.
  2. Open the command line (Win + R β†’ cmd) and type: adb devices Make sure the device is identified (its serial number should appear).
  3. Enter the command to delete the file with the password: adb shell rm /data/system/gesture.key adb shell rm /data/system/password.key adb shell rm /data/system/locksettings.db shell rm /data/system/locksettings.db-wal adb shell rm /data/system/locksettings.db-shm
  4. Reboot your phone: adb reboot

After the reboot, the lock screen should disappear. If not, repeat the steps or check if debugging is enabled.

⚠️ Attention: On some firmware MIUI (Especially newer versions, this method may not work due to changes in the structure of system files. -n com.android.settings/.ChooseLockGeneric

β˜‘οΈ Preparation for unblocking through ADB

Done: 0 / 4

4. Firmware through Fastboot (advanced method)

If previous methods did not help, you can reflash the phone through Fastboot mode. This method is suitable for advanced users, as it requires unlocking the bootloader and can lead to loss of warranty. On the Redmi 7 model with a Snapdragon 632 processor, unlocking the bootloader takes 72-168 hours of latency (according to Xiaomi rules).

Step-by-step:

  1. Download the official firmware for Redmi 7 (codenamed onc) from MIUI Downloads (choose the Fastboot version).
  2. Unpack the archive in a folder on your PC.
  3. Turn off your phone and go to Fastboot: Press Volume Down + Power.
  4. Connect the device to the PC and open the command line in the firmware folder.
  5. Enter the command to check the connection: fastboot devices
  6. Run the firmware: fastboot flash all or (for new versions of MIUI): fastboot flash all -w

It takes 5-10 minutes, and when it's done, it'll restart with a clean system.

⚠️ Note: If the bootloader is not unlocked, the firmware through Fastboot will end with the device is locked error. In this case, first unlock the bootloader through the official Mi Unlock Tool application (requires binding Mi Account to the device).

5. Alternative methods (if nothing helps)

If standard methods do not work, consider the following options:

  • πŸ”§ Service center: Official centers Xiaomi can unlock the phone on the purchase documents (check or warranty card.
  • πŸ“± EDL-Emergency Download Mode allows you to flash your phone even with a locked bootloader, but requires special equipment (box) and knowledge.
  • πŸ”„ Bypass FRP: If after resetting the phone requires an old Mi Account, you can try to bypass the protection with key combinations or utilities like Mi Account Bypass Tool (risky, can disrupt the system).

The EDL method will require:

  1. Download firmware in.mbn format for Redmi 7.
  2. Use the Mi Flash Pro or QFil program.
  3. Connect the phone in EDL mode (usually through circuiting the contacts on the board or a special cable).

This method is recommended only for experienced users or masters in service centers, as improper actions can turn the phone into a β€œbrick”.

6.How to avoid blocking in the future

To avoid the problem of the Redmi 7 being blocked again, follow these tips:

  • πŸ” Use a strong password: The combination of letters, numbers and symbols is harder to forget than a simple one. PIN.
  • πŸ“ Write down your account details: Save your Mi Account login and password in a safe place (e.g., in a password manager).
  • πŸ”„ Activate backup: Enable data synchronization with Mi Cloud (Settings) β†’ Xiaomi account β†’ Mi Cloud).
  • πŸ“± Set up unlock by fingerprint or face: This is more convenient than entering a password and reduces the risk of blocking.

Also useful:

  • Check periodically if Mi Account is linked to your phone (Settings β†’ Xiaomi Account).
  • Do not buy used phones without first resetting the data by the seller.
  • Enable the Smart Lock option (Settings β†’ Screen Lock β†’ Smart Lock) to automatically unlock in trusted locations.

πŸ’‘

Even if you successfully reset your password, after flashing or resetting through Recovery, you may need to re-authorize in Mi Account.

FAQ: Frequent questions about unlocking Redmi 7

Can I unlock Redmi 7 without losing data?
Yes, but only if USB debugging (ADB method) is enabled or you remember the Mi Account data (Forgot the password? method) in other cases, the data will be deleted.
What if the phone asks for an old Mi Account after a reset?
This is FRP protection. Solutions: Contact the previous owner and ask to unplug the account. Use ADB (if debugging was enabled) Contact the service center with documents on the phone.
How long does it take to unlock the bootloader on Redmi 7?
Officially unlocking through the Mi Unlock Tool requires a wait of 72 to 168 hours (3-7 days).This is Xiaomi's rule for anti-theft protection.
Can I unlock Redmi 7 with my Google Account?
Unlike many Android devices, Xiaomi uses its own Mi Account security system, not Google FRP. So unlocking through Gmail is impossible.
What if the phone doesn’t turn on after a failed reset?
If Redmi 7 doesn’t respond to buttons or is stuck on the Mi logo, try: Clip Volume Up + Power for 20-30 seconds for forced reboot. Connect to charge for 10-15 minutes (possibly dead battery). Swipe your phone through Fastboot or EDL. If nothing helps, contact the service.