Xiaomi Redmi 5 is one of the brand's most popular budget smartphones, released in 2017 but still in active use, PIN-Unlocking a device can be a daunting task, as in this article we will discuss all the current ways to open Redmi 5 β from standard methods to advanced technical solutions, including bypassing the lock without losing data (where possible).
It is important to understand that unlock methods depend on the type of protection: it can be a graphical password, digital. PIN-Some of the ways you need to connect to a PC, some of the ways you need to connect to a computer, others work directly on your phone. MIUI Redmi 5 that affect the unlocking process (e.g., Fastboot mode and Recovery reset restrictions).
If you're not sure about your technical skills, you should go to a service center, but most of the techniques you're describing can be done yourself, so you have to follow the instructions and not skip the steps.
1 Unblocking through Xiaomi account (Mi Account)
The easiest way to unlock Redmi 5 is to use a tied Mi Account.
- π Device connected to the Internet (Wi-Fi or mobile network).
- π§ Remember the username (email or phone) and password from the Xiaomi account.
- π On the lock screen there is a button "Forgot your password?" (appears after 5 failed attempts to enter).
Instructions:
- On the lock screen, enter the wrong password / pattern lock 5 times in a row.
- The message will appear βForgot the password?β β click on it.
- Enter the username and password from the Mi Account associated with the device.
- Confirm unlocking via SMS or email (if two-factor authentication is enabled).
If the "Forgot Password?" button doesn't appear, try connecting to another Wi-Fi network (sometimes the problem is router restrictions) and check if access to your Mi Account is disabled in the security settings (this may have happened after a reset or firmware).
β οΈ Note: If you have previously changed your Mi Account password but havenβt updated it on your phone, unlocking through your account may not work.
2.Reset to factory settings via Recovery Mode
If you don't remember the data from your Mi Account or it doesn't fit, the only reliable way to unlock it is to hard-reset it through Recovery mode, which will remove all data from your device, including photos, contacts and apps, but will return access to your phone.
How to Sign In to Recovery on Redmi 5:
- Turn off your smartphone (press the power button for 10 seconds).
- Press the power button and the volume button at the same time.
- Hold them until the Mi logo and the Recovery menu appear.
In the Recovery menu, use volume buttons for navigation and power button for selection.
- π Choose a language (usually English or English ).
- π Find the Wipe Data (or Clear Data).
- ποΈ Confirm the reset by selecting Wipe All Data.
- π After completion, select Reboot to restart.
β οΈ Note: On some versions MIUI Redmi 5 may need to re-authorize your Mi Account after a reset (even if you donβt remember it) and this is due to the Mi Cloud Activation Lock feature).
βοΈ Preparing for resetting through Recovery
3. Unlock through ADB (for power users)
If Redmi 5 is included in the debugging USB (USB Debugging, you can try unlocking the device through ADB (Android Debug Bridge is free of data loss:
- π You previously connected your phone to your PC and allowed debugging.
- π₯οΈ The computer has Xiaomi drivers installed and ADB.
- π± The device is determined in the system (check in Device Manager).
Instructions:
- Connect Redmi 5 to your PC via USB-cable.
- Open the command line (Win + R β enter cmd).
- Enter the command to check the connection: adb devices If the device is displayed, go further.
- Delete the password file (for the pattern lock or PIN): adb shell rm /data/system/gesture.key or for PIN: adb shell rm /data/system/password.key
- Reboot your phone: adb reboot
After the reboot, the lock screen should disappear. If not, repeat the steps or try an alternative command:
adb shell rm /data/system/locksettings.dblocksettings.db
π‘
If the adb device command doesnβt show the device, try reinstalling Xiaomi drivers or using another one. USB-cable (preferably original).
4. Firmware via Mi Flash (to delete Mi Account)
If, after resetting via Recovery, the phone requires authorization to a Mi Account that you don't remember, the only way out is to completely flash through the Mi Flash Tool.This method deletes all data, including account binding, but requires:
- π» Windows computer (7/10/11).
- π Original. USB-cables (low-quality cables can interrupt firmware).
- π¦ Fastboot firmware for Redmi 5 (download only from the official Xiaomi website or trusted sources like xiaomifirmware.com).
Step-by-step:
- Download and install the Mi Flash Tool.
- Download Fastboot firmware for Redmi 5 (Rosy model for global version or vincent for Chinese).
- Unpack the firmware in a folder without Cyrillic characters (for example, C:\Redmi5_Fastboot).
- Turn off your phone and press the power button + volume reduction to enter the Fastboot (the image of a rabbit in a hat will appear).
- Connect your phone to your PC, open Mi Flash and press Refresh β the device must be determined.
- Select the firmware folder, select Clean All mode (full clean) and press Flash.
| Firmware mode | Description | Effects of consequences |
|---|---|---|
| Clean All | Complete cleaning and firmware | Delete all data, including Mi Account |
| Clean All and Lock | Firmware with loader lock | You may need to unlock the Bootloader. |
| Save User Data | Firmware without data cleaning | Does not delete Mi Account, is suitable for updates |
β οΈ Note: Firmware through Mi Flash resets DRM-This could lead to problems with Widevine. L1 (Lower quality streaming on Netflix, Disney+ In order to recover the keys, you will need an official firmware through the OTA post-unlock.
What if Mi Flash canβt see the device?
5. Bypassing locks through service codes (for some versions of MIUI)
On older versions of MIUI (before MIUI 10), there was a way to bypass the lock through service codes. For Redmi 5, this doesn't always work, but you can try:
- On the lock screen, dial the emergency call (emergency call button).
- Enter the code ##3646633# or ##4636##
- If the engineering menu opens, go to Connectivity β Wi-Fi and connect to the network.
- Return to the lock screen and try unlocking through Mi Account (see section 1).
On newer versions of MIUI, these codes are usually locked, but if you have old firmware, the method may work, and sometimes entering ##7780## to reset settings (but not data) helps.
If the service codes donβt work, try another way β downloading in Safe Mode:
- Press the power button before the off menu appears.
- Hold your finger to turn off power - a suggestion will appear to go to Safe Mode.
- In Safe Mode, try to remove the lock app (if itβs third-party) or reset your password through settings.
6. Alternative methods: programs and services
If the standard methods did not work, you can use third-party programs, but be careful: many of them require payment or contain malware.
- π Mi Account Unlock Tool β a utility for removing the binding to the account (does not work on all versions) MIUI).
- π οΈ SP Flash Tool - an alternative to Mi Flash for firmware through MTK-chips (but Redmi 5 on Qualcomm Snapdragon 450, so it's not always suitable).
- π Official Xiaomi service β if the phone is tied to the account, but you do not remember the data, you can contact the support with proof of purchase (check, box).
Examples of Mi Account Unlock Tool:
- Download the program from a trusted source (for example, forum.xda-developers.com).
- Connect your phone in Fastboot mode.
- Run the utility and follow the instructions (usually you need to enter the deviceβs IMEI).
- Once completed, restart the phone.
β οΈ Note: Using unofficial programs can lead to blocking IMEI or turning your phone into a brick. Always check the reviews and reputation of the source before downloading.
π‘
Before using third-party software, try all official unlock methods.Most problems with Redmi 5 are solved via Recovery or Mi Flash without risking the device.
7 What should I do if nothing helps?
If all of these methods fail, there are two options:
- Contact the Xiaomi service center - official partners can unlock the device by serial number (purchase confirmation is required).
Before the service visit:
- π Take with you the documents on the phone (check, warranty card, box).
- π’ Find out. IMEI Devices (printed on or under a battery).
- π Check if you have an authorized Xiaomi service in your city (list at mi.com).
If your phone is locked due to theft or loss, it is not possible to unlock through the service, which is against Xiaomiβs policy, in which case it is better to purchase a new device.