How to Reset Your Password on Xiaomi Redmi 5: From Mi Account to Hard Reset

Xiaomi Redmi 5 remains a popular budget smartphone even years after its release, but many users face the problem of a locked screen, PIN-A code or password can permanently incapacitate a device if you don't know how to act correctly. In this article, we'll look at all the working ways of unlocking, from recovering through Mi Account to hard resetting via Fastboot, taking into account the nuances of firmware and possible risks.

It's important to understand that not all methods are equally secure. For example, resetting through Recovery mode will delete all data on the phone, and unlocking through Mi Cloud will require a tied account. We will describe each option in detail, specify the unique error codes for Redmi 5 (for example, This device is locked when trying to firmware), and give recommendations on how to avoid re-blocking. If you are not sure about your actions, you should contact the service center, especially if the phone stores critical data.

1 Unlocking through Mi Account (if the phone is linked to the account)

The most gentle way is to use the official Mi Account Recovery feature, which only works if:

  • πŸ“± The smartphone was tied to the account Xiaomi before blocking.
  • 🌐 Internet access (via Wi-Fi or mobile network).
  • πŸ”‘ You remember the username and password from Mi Account (or you can restore them through the email/phone).

If the conditions are met, follow the instructions:

  1. On the locked screen of Redmi 5, click Forgot Password? (or Forgot Password).
  2. Select the recovery option through Mi Account.
  3. Enter the email or phone number associated with the account, then the password.
  4. Confirm your login via SMS or email (if two-factor authentication is enabled).
  5. Follow the system prompts to create a new lock password.

⚠️ Note: If you enter data from Mi Account, you have a Couldn't verify this device error, you don't have your phone tied to your account before you lock it, and you'll have to use other methods.

πŸ“Š How often do you forget passwords from your devices?
Often, once a month.
Sometimes, every six months.
Nearby, but I have to remember.
Never forget.

2. Reset password via Recovery Mode (Hard Reset)

If you don't have access to Mi Account, you have a hard reset through Recovery mode, which will delete all the data on your phone, including photos, contacts and apps, but it will return access to the device. On Redmi 5, the procedure looks like this:

Turn off the phone (press the power button for 10 seconds)

Battery charge of at least 30%

Connect the charger (recommended)

Download the drivers. ADB (If you are planning to use Fastboot)-->

Resetting instructions:

  1. Turn off Redmi 5 (if it is on, press the power button for 10 seconds).
  2. Press the Power button + Volume up at the same time and hold for 5-7 seconds until the Mi logo appears.
  3. Release the buttons - you will be taken to the Recovery Mode menu (navigation is carried out by volume buttons, the choice is by the power button).
  4. Select the Wipe Data option β†’ Wipe All Data.
  5. Confirm the action by selecting Confirm.
  6. After the reset is complete, select Reboot β†’ Reboot to System.

The phone will reboot and offer to configure it as new, and this method works on any version of MIUI, but has limitations:

  • πŸ”’ If Find Device (Find Device) was enabled, Mi Account data may be required after reset.
  • πŸ“± On some firmware (for example, MIUI 10 and older) This device is locked after Hard Reset, meaning that the phone is tied to the account and you will need additional unlocking through the Mi Unlock Tool.

πŸ’‘

If after Hard Reset the phone requires you to enter Mi Account data and you do not remember them, try unlocking the device through [the official Xiaomi service](https://account.xiaomi.com/). This will require proof of ownership (checks, box, IMEI).

3. Unlock via Fastboot (for advanced users)

If a standard Recovery reset didn’t work (for example, due to account binding), you can try unlocking via Fastboot mode, USB-cables and installed drivers ADB/Fastboot. He's a good fit for Redmi. 5 Based on Qualcomm Snapdragon processor 450 It works even with a locked boot loader (but not on all firmware).

Step-by-step:

  1. Turn off the phone and put it in Fastboot mode: press the Power button + Volume down for 5-7 seconds.
  2. Connect Redmi 5 to your computer via USB.
  3. Download and install Platform Tools (includes fastboot and adb).
  4. Open the command prompt (cmd) in the folder with Platform Tools and type:
fastboot devices

If the device is identified (the serial number will appear), continue. If not, install the drivers manually.

  1. Enter the command to unlock the bootloader (only if it is blocked):
fastboot oem unlock

On some versions of Redmi 5, this command may not work, in which case you will need an official Mi Unlock Tool unlocker.

  1. If the bootloader is unlocked, reset:
fastboot erase userdata


fastboot erase cache




fastboot reboot

⚠️ Attention: On devices with MIUI 11 and later, after reset via Fastboot, an Anti-Rollback error may appear, which means that the firmware does not support rollback to the old version, in which case you will need to flash the phone with official firmware through the Mi Flash Tool.

Unlocking methodPC requiredDeletes the data.It works when linked to Mi Account.Difficulty
Through the Mi Account.❌ No.❌ No.βœ… Yes.⭐ Easy.
Hard Reset (Recovery)❌ No.βœ… Yes.⚠️ Partially.⭐⭐ Middle-Average
Fastbootβœ… Yes.βœ… Yes.❌ No.⭐⭐⭐ Hardly.
Mi Flash Tool (firmware)βœ… Yes.βœ… Yes.⚠️ Depends on the firmware.⭐⭐⭐⭐ Very difficult.

4. firmware via Mi Flash Tool (extreme case)

If none of these methods work, you can completely flash your phone through the official Mi Flash Tool, which is guaranteed to delete all data and unlock the device, but requires:

  • πŸ’» Windows computer (7/10/11).
  • πŸ”Œ Original. USB-cable (better from the set).
  • πŸ“₯ Official firmware for Redmi 5 (download on Xiaomi website).
  • πŸ”“ Unlocked loader (if it was blocked).

Instructions:

  1. Download and install the Mi Flash Tool from the official website.
  2. Unpack the firmware archive (.tgz or.zip format) into a folder without Cyrillic characters.
  3. Put Redmi 5 into Fastboot mode (as in the previous section).
  4. Connect your phone to your PC and start the Mi Flash Tool.
  5. Click Select and point the way to the firmware folder.
  6. Select firmware mode: Clean all - full reset (recommended). Clean all and lock - reset + lock the bootloader (only if you are sure!).

Flash

When the firmware is up, the phone will turn on as new. If you see a Flash not done error, check:

  • πŸ”Œ Cable and port USB (Try another port or cable).
  • πŸ“₯ Integrity of the firmware archive (download if the file is corrupted).
  • πŸ”’ If the bootloader is unlocked (if not, use the Mi Unlock Tool).
What if the Mi Flash Tool can't see the phone?
1. Install drivers manually through Device Manager (select "Qualcomm HS-USB QDLoader 9008"). 2. Try running the Mi Flash Tool on behalf of the administrator. 3. Disable the antivirus (it can block the utility). 4. Use another Windows 10/11 PC (on Windows 7 there may be driver issues).

5. How to avoid blocking in the future

To avoid the problem of the Redmi 5 being blocked again, follow the simple rules:

  • πŸ” Use password management (such as Google Password Manager or KeePass) to store PIN-code.
  • πŸ“± Link the phone to Mi Account and enable data synchronization (contacts, photos, notes).
  • πŸ”„ Regularly back up through Settings β†’ Additionally. β†’ Backup.
  • πŸ“Œ Write it down. IMEI phone (type *#06#) and save it in a safe place - this will help when recovering through the service center.

It's also useful to know:

  • πŸ”§ On Redmi 5, you can enable Smart Lock (smart lock) so that the phone unlocks in trusted places (for example, at home or at work). β†’ Screen locking β†’ Smart Lock.
  • πŸ“² If you often forget passwords, install a pattern lock instead of a key. PIN-code – easier to remember visually.

πŸ’‘

Even if you reset your password through Hard Reset, the Mi Account binding may still be there. Always untie the device from your account before selling or transferring it to another person!

6. Frequent errors and their solutions

When you unlock Redmi 5, users often face typical problems.

Mistake.Reason.Decision
This device is lockedThe phone is tied to Mi Account and after the reset, a confirmation is required.Enter your account details or unlock through Mi Cloud.
Couldn’t verify this deviceMi's account was not tied to the phone before being blocked.Use Hard Reset or Fastboot.
Flash Not Made in Mi Flash ToolProblems with drivers, cable or firmware.Check the connection, reinstall the drivers, download the firmware again.
The phone will not turn on after resettingThe firmware process is interrupted or the battery is discharged.Charge the phone for 30 minutes, then repeat the procedure.

⚠️ Note: If after all the manipulations Redmi 5 is still blocked or gives an error Anti-Rollback, do not try to flash it with unofficial firmware. this can lead to a complete failure (brick.

FAQ: Answers to Frequent Questions

Can I unlock Redmi 5 without losing data?
Yes, but only if the phone is linked to Mi Account and you have access to your account, in which case use the password recovery function on the lock screen, all other methods (Hard Reset, Fastboot, firmware) will result in deletion of data.
What to do if you forget your Mi Account information?
If the email or phone associated with the account is not available, contact Xiaomi with proof of purchase (check, box, IMEI) without this, you can not restore the account.
Why does a Hard Reset phone require an old password?
This means that the phone has enabled Find Device, which requires even after the reset, you to enter the Mi Account, which was tied to the phone, and if you don't remember it, you can only unlock the phone through the official service.
Can I unlock Redmi 5 via ADB?
In theory, yes, but in practice, it is almost impossible. USB-If debugging is activated, you can try to delete key files via the commands: adb shell rm /data/system/gesture.key adb shell rm /data/system/password.key adb reboot However on Redmi 5 s MIUI 9 This method usually does not work because of the increased protection.
How much does it cost to unlock in the service center?
The cost depends on the reason for the lock: πŸ”“ Resetting your password without binding to your Mi Account: 500–1500 β‚½. πŸ“± Unlocking the phone tied to the account: 1500-3000 β‚½ (Proof of ownership). πŸ”§ Firmware after a failed update: 2000–4000 β‚½. Xiaomi’s official service centers can do this for free if the phone is warranty and you have documents.