When the beloved Xiaomi Redmi 5 is suddenly blocked and requires you to enter a forgotten code, it can catch anyone by surprise. The screen lights up, but access to contacts, photos and applications is closed, turning the gadget into an inaccessible “brick”, most often after an accidental change of settings, a failed system update or banal forgetfulness.
There are several proven methods of bypassing the lock, each of which has its own characteristics and risks, the choice of the specific method depends on the type of protection that was installed: a pattern lock, a digital key. PIN-It's important to understand that most resetting methods involve the complete deletion of user data, so you need to approach the process consciously.
In this guide, we will take a look at all possible options, from standard Google tools to advanced methods through Fastboot. We will look at the nuances of working with Recovery Mode and explain what to do if a device requires authorization after a reset. Follow the instructions carefully to avoid irreversible errors.
Determination of the type of lock and preparation
The first step to solving the problem is to understand exactly what is blocking access to the system. The Redmi 5 lock screen can display a field to enter a picture, set numbers or request a username and password from your Mi Account. If you see a message "This device is locked to", then the Find Device function is activated, and you will not be able to unlock the smartphone without access to the account.
Before you start the action, you need to prepare the device and the workplace. Make sure that the battery is at least 50-60%, as the reset process can take time, and a sudden shutdown can damage system files. You will also need a stable Internet connection via Wi-Fi or mobile network if you plan to use a Google account for recovery.
⚠️ Warning: If your device has two-factor Mi Account authorization enabled, make sure you have access to your tied phone number or backup email, otherwise unlocking may not be possible.
Prepare a computer with a Windows operating system if you plan to use software reset methods through ADB Or Fastboot. The PC must have drivers installed for Xiaomi devices. Some methods may require original USB-cable, as cheap analogues often do not provide the stable connection needed to transmit system commands.
Resetting password through Google account
If your Xiaomi Redmi 5 has enabled remote device management, you can try to unlock it through Google services, which only works if the smartphone is connected to the Internet, and the lock screen has the ability to enter the wrong key several times in a row, the system itself will offer alternative login options.
To start, enter the wrong pattern lock or password five times in a row. After the fifth attempt, the screen should show a message that the device is locked for 30 seconds, but also the button "Forgot the pattern lock?" or "Forgot the password?" may appear. By clicking on this button, you will go to the authorization screen, where you will need to enter the login and password from the Google account that was the main one on this smartphone.
- 📱 Enter the wrong code 5 times until the lock message appears.
- 🔓 Click on the “Forgot the key/password” link in the bottom corner of the screen.
- 📧 Enter your Gmail account that was used on your device.
- ✅ After successful authorization, the system will offer to set a new method of protection or remove the lock.
What if the “Forgot Password” button does not appear?
It’s worth noting that newer versions of MIUI and Android have less and less of a method as security policies become stricter. However, on Redmi 5, which often runs on older versions of Android, the odds of success are still high, and if this doesn’t work, you’ll have to move on to more radical measures.
Hard Reset via Recovery Mode
The most versatile and reliable way to remove the screen lock is to perform a full reset, known as Hard Reset.This process returns the smartphone to factory status, removing all user data, applications and most importantly, a forgotten password. On Xiaomi Redmi 5, the recovery mode is entered by a combination of hardware buttons.
First, turn the device off completely. Then press Volume+ and Power at the same time. Hold them until the Mi logo appears on the screen, then the power button can be released, continuing to hold the volume button. In a few seconds, you will see the main Recovery menu, where the control is done by the volume buttons, and the choice is confirmed by the power button.
☑️ Checklist before reset
In the Recovery menu, select a language (usually English), then go to Wipe Data. You will be prompted to select Wipe All Data. Confirm the action by selecting Confirm. The system will warn that all data will be deleted. After completing the process, which takes a few minutes, select Back to Main Menu, and then Reboot → Reboot to System.
⚠️ Warning: Wipe All Data is irreversible, and all photos, contacts, messages and apps installed will be permanently deleted from the internal memory of the smartphone.
After the reboot, the smartphone will turn on as new and you will need to go through the initial setup.If the Internet and sync were turned on on on the device before the reset, your data can be automatically restored from Google's cloud backup or Mi Cloud.
Unlocking through Fastboot and Mi Unlock
If standard Recovery reset is not possible or the device is locked at the bootloader level, you can try the method of unlocking through Fastboot mode. This mode is designed for engineers and allows you to perform low-level operations with the device. To work with Fastboot, the Mi Unlock Tool utility and the corresponding drivers must be installed on the computer.
To enter Fastboot mode on Redmi 5, turn off your phone and then press the Volume and Power buttons simultaneously. The screen will show an image of a hare repairing an android and the inscription will appear on the screen "FASTBOOT". Connect the device to the computer through USB-Launch the Mi Unlock Tool and log in to your Mi Account (the same as on your phone if you have access, or any other if your phone has already been reset).
| Parameter | Description | Requirement |
|---|---|---|
| Entry mode | Fastboot | Buttons Loudness + Nutrition |
| Software | Mi Unlock Tool | Windows version |
| Account status | Tieted to the device | It is necessary for official unblocking |
| Waiting time | 7 to 360 hours. | Depends on Xiaomi's policy |
If you are allowed to unlock the bootloader, you can press the Unlock button. However, if the bootloader is locked, the system will require you to link the account in the phone settings (section "For developers" → "Mi Unlock status") and wait a certain time (usually 168 hours or 7 days), only after this period will the utility allow unlocking.
💡
Before attempting to unlock the bootloader, back up all important data to a cloud drive or computer, as the unlocking process automatically clears the device’s internal memory for security purposes.
Bypassing the Mi Account Lockdown (FRP)
Once you run Hard Reset or unlock the bootloader on Xiaomi Redmi 5, the FRP (Factory Reset Protection) system can work. The device will require you to enter the password from the Mi Account that was synced to the phone before the reset. This is a protection mechanism against theft, but it becomes a problem if you forget your account details.
The official solution is to restore access to your account through i.mi.com. Go to “Forgot your password?”, enter your email or phone number, and follow the password reset instructions. After you change your password, wait 24 hours before you try to enter your phone, as security servers need time to update the information.
If you lose your email or phone, it gets complicated, sometimes it helps to enter an activation code if it's been saved, and there are workarounds through special combinations in the settings menu or exploiting vulnerabilities in specific versions of MIUI, but these are often closed by security updates.
- 🌐 Try to restore your account through your browser on your PC at id.mi.com.
- ⏳ After changing the password, be sure to wait 24 hours before entering on the device.
- 📞 If the number is lost, contact the operator for recovery. SIM-map.
- 🛠 In extreme cases, it may be necessary to flash the device with a change in the region.
⚠️ Attention: Use of third-party programs to “hack" FRP It can cause a device (brick) to fail completely or malware to be installed. Be extremely careful with untested tools.
Firmware of the device as an extreme measure
If none of the software methods worked, or if the smartphone system is so damaged that it doesn't even boot into Recovery, the last option is complete flashing. There are many official and custom firmware for Redmi 5 (codenamed ros), which requires high accuracy and compliance with all the instructions.
You will need to download the official firmware from miui.com, the Mi Flash Tool utility and ADB/Fastboot drivers. The process involves putting your phone into Fastboot mode, connecting to a PC and running a firmware script. It is important to choose the correct firmware version (Global, China, Russia) and the firmware type (Clean All – full cleaning, Clean All and Lock – locking the bootloader).
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.imgUsing the Clean All command is guaranteed to remove all traces of old passwords and accounts, but also destroy all data. Once firmware is installed, the phone will be like a new one from the store, and it is the most time-consuming, but also the most effective way to bring the device back to life in difficult cases.
💡
Full Firmware is a “nuclear weapon” in the mobile world: it solves 99% of software problems, but requires technical knowledge and carries the risk of losing warranty.