How to unlock Xiaomi Redmi 5 if you forget your graphical password: all ways of 2026

Forgot the pattern lock on Xiaomi Redmi 5 and can't unlock your phone? The situation is familiar to many: you put a simple pattern for convenience, and a month later your fingers draw it on the machine until you make a mistake 5 times in a row. The system locks the device, suggesting you enter a Mi Account you don't remember, or gives you no options at all. In this article, all the current ways to unlock Redmi 5 (including Redmi 5A models, Redmi 5 Plus), from the safest to the radical, with explanations of when to use.

We won't advise "just reset to factory settings" -- this is the extreme case that erases all data -- instead, we'll figure out how to get around lockdown with minimal loss using Xiaomi's official and non-obvious features. Importantly, not all methods work on custom firmware or if the phone was bought by hand with a tied account, and in such cases, you may need to contact a service center.

Before you start, check:

  • ๐Ÿ”‹ Battery level (minimum 30% โ€“ when unlocked via Fastboot, the phone should not turn off).
  • ๐Ÿ“ถ Backup (if backup is done via Mi Cloud or locally).
  • ๐Ÿ“ฑ Phone model (on the box or under the battery โ€“ Redmi 5 has modifications with different processors, which affects the choice of firmware).
๐Ÿ“Š How often do you forget passwords on your devices?
Frequently (once a month)
Sometimes (once every six months)
Nearby (only after discharge)
Never forget.

1 Unlocking through Mi Account (official method)

If Redmi 5 had a Mi Account attached (even if you don't remember the password), this is the easiest way to retrieve access. Xiaomi allows you to reset the pattern lock through the web interface, but there are nuances:

โœ… When it comes to the phone, it's connected to the Internet (Wi-Fi or mobile), you remember. email/Phone from Mi Account or you can restore access to it.

โŒ It doesn't work if:

  • ๐Ÿšซ The account was not tied to the phone.
  • ๐Ÿšซ The device is bought from hand and tied to someone elseโ€™s account (proof of purchase required to unlock through Xiaomi).
  • ๐Ÿšซ The phone has custom firmware (for example, LineageOS), which removed Mi services.

Step-by-step:

  1. On the lock screen, tap Forgot Password? (or Forgot pattern?).
  2. Choose Restore through Mi Account.
  3. Enter the email/phone associated with your account. If you don't remember, go to account.xiaomi.com and restore access via SMS or backup email.
  4. After successful authorization, the system will prompt you to create a new pattern lock or PIN-code.

๐Ÿ’ก

If your phone is not connected to the internet, but you have access to it. SIM-You can insert it into another device, activate the data transfer, and return it to Redmi 5.

โš ๏ธ Note: If you are trying to sign in, Xiaomi requires confirmation through SMS, a the phone number in the account is outdated, contact support.xiaomi.com with proof of ownership of the device (check, box with a box of data). IMEI). Without this, unlocking can take up to 30 days.

2. Reset the pattern lock via Recovery (without loss of data)

This method works if Redmi 5 debugging is enabled. USB (USB Debugging) and access to a PC, which allows you to delete a password file without erasing user data. MIUI rootless.

What you need:

  • ๐Ÿ–ฅ๏ธ Computer with installed Xiaomi drivers (you can download on the official website).
  • ๐Ÿ“ฒ USB-cable (original or qualitative analogue).
  • ๐Ÿ› ๏ธ Programme ADB (is part of Android SDK).

Instructions:

  1. Connect Redmi 5 to your PC via USB.
  2. Open the command line (Win + R โ†’ enter cmd) and execute: adb shell rm /data/system/gesture.key rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboot
  3. After rebooting, the pattern lock will be reset.

Install Xiaomi drivers on PC| Download Android SDK Platform Tools|Enable USB debugging on your phone (if you had access)|Connect your phone to your PC with the original cable-->

โš ๏ธ Attention: If debugging is on USB If it wasn't enabled in advance, it won't work. In that case, go to the way with Fastboot (Section 3). MIUI The gesture.key file may be called differently (e.g. password.key for the username). PIN-code).

3. Unlock via Fastboot (full reset)

If previous methods didn't work, the radical way is to reset through Fastboot mode, which erases all data on the phone, but it's guaranteed to unlock the device, and it's suitable for Redmi 5 on any firmware, including custom ones.

Step-by-step:

  1. Turn off your phone. Press Volume down + Power for 10 seconds until the Fastboot logo appears.
  2. Connect your phone to your PC and open the command line in the folder with ADB.
  3. Run the command to check the connection: fastboot devices should appear serial number of the device.
  4. Run full reset: fastboot erase userdata fastboot erase cache fastboot reboot

Once rebooted, the phone will be like new โ€“ you will need to set up from scratch. If Redmi 5 was tied to Mi Account, after reset, you may need to enter a login / password (FRP protection).

Unlocking methodPC requiredData retainedIt works without a Mi Account.Difficulty
Through the Mi Account.โŒ No.โœ… Yes.โŒ No.โญ
ADB (delete gesture.key)โœ… Yes.โœ… Yes.โœ… Yes.โญโญโญ
Fastboot (full reset)โœ… Yes.โŒ No.โœ… Yes.โญโญ
Recovery Mode (wipe)โŒ No.โŒ No.โœ… Yes.โญโญ
Service centreโŒ No.โœ… Yes, perhaps)โœ… Yes.โญโญโญโญ

๐Ÿ’ก

Fastboot reset is the only reliable way to unlock Redmi 5 if you have forgotten both the pattern lock and the Mi Account data. However, it completely erases user files, so use it only as a last resort.

4 Unlocking through Recovery Mode (Fastboot alternative)

If you don't have access to a PC, you can try resetting directly through the Recovery menu, which also erases data, but doesn't require a computer connection.

How to get in to Recovery:

  1. Turn off Redmi 5.
  2. Press Volume Up + Meals for 10-15 seconds until the menu appears in English.
  3. Use volume buttons for navigation and power button for selection.

Further action:

  • ๐Ÿ“ฑ Choose Wipe Data โ†’ Wipe All Data (complete reset).
  • ๐Ÿ”„ After completion, select Reboot.
  • ๐Ÿ” If after rebooting the phone requires you to enter Mi Account, use the data from your account or restore access through the site.

โš ๏ธ Note: Some versions of Redmi 5 (especially custom firmware) may have Recovery menus in Chinese, so look for characters that match "Wipe Data" and "Reboot" and a mistake in selecting a item can cause system damage!

5 Unlocking through Xiaomi Service Center

If all independent attempts failed, you can contact the official Xiaomi service center.

  • ๐Ÿ”’ Phone bought from hands and tied to someone else's Mi Account.
  • ๐Ÿ“ฑ The device is in a Hard Brick state (not even included in the Fastboot).
  • ๐Ÿ›ก๏ธ The phone has a beta version installed. MIUI plug-in.

What will be required:

  • ๐Ÿ“„ Check or warranty card (proof of purchase).
  • ๐Ÿ†” Phone box (it is indicated on it) IMEI, check-in).
  • ๐Ÿ’ณ Payment for the service (unblocking without a guarantee will cost 1-3 thousand rubles, depending on the region).

โณ Time: 1 day to 2 weeks (if proof of ownership from the previous owner is required).

What to do if the phone is bought from hands and blocked by someone elseโ€™s Mi Account?
If the seller has not untied his account, the official service center can help only if there is evidence of purchase (contract, money transfer, correspondence). Without them, unlocking is possible only through the "gray" services, but it is risky: - An informal firmware with backdoors can be installed. - The phone can remain in the IMEI blacklist. - The guarantee is canceled. It is better to require the seller to delete the account remotely (via account.xiaomi.com) or return the money.

6. Alternative methods (for experienced users)

If you're familiar with Android devices, you can try more sophisticated ways, and they'll work for Redmi 5 with an unlocked bootloader or root rights.

Method 1: Firmware with Mi Flash Tool

  • ๐Ÿ–ฅ๏ธ Download the official firmware for Redmi 5 from Xiaomi website.
  • ๐Ÿ› ๏ธ Install the Mi Flash Tool and drivers.
  • ๐Ÿ“ฑ Transfer your phone to Fastboot mode and flash the stock MIUI Data Cleaning (Clean All).

Method 2: Delete passwords via TWRP

  • ๐Ÿ”ง Install custom Recovery TWRP (requires an unlocked loader).
  • ๐Ÿ“ Through TWRP delete files: /data/system/gesture.key /data/system/locksettings.db
  • ๐Ÿ”„ Reboot the phone.

โš ๏ธ Note: Unofficial firmware and manipulation with TWRP This can lead to: - Loss of warranty. - Damage IMEI (Mi Account block for suspicious activity. Use these methods only if you understand the risks!

Frequent Mistakes and How to Avoid Them

When you unlock Redmi 5, users often face typical problems, and here's how to prevent them:

Error 1: Phone is not detected in Fastboot

  • ๐Ÿ”Œ Check it out. USB-cable (use the original cable).
  • ๐Ÿ–ฅ๏ธ Install Qualcomm or MediaTek drivers (depending on the processor of your Redmi 5 model).
  • ๐Ÿ”„ Restart your PC and phone.

Error 2: After reset requires an old Mi Account

  • ๐Ÿ“ง Restoring access to your account via account.xiaomi.com.
  • ๐Ÿ“ž If the phone number in your account is outdated, contact support with proof of purchase.

Error 3: Cannot log in to Recovery

  • ๐Ÿ”‹ Charge your phone to at least 50% (a discharged battery may interrupt the process).
  • ๐Ÿ•’ Hold the buttons Volume up + Food for at least 15 seconds.

๐Ÿ’ก

If the phone is unstable after unlocking (it spontaneously restarts, does not catch the network), reset again through Fastboot or run the stock firmware, this will eliminate possible errors that occurred during manipulation.

FAQ: Answers to Frequent Questions

Can I unlock Redmi 5 without losing data?
Yes, but only if: ๐Ÿ”“ The phone's debugging on. USB and access to the PC (method with the ADB). ๐Ÿ“ง The phone is linked to the Mi Account, and you remember the login details. In all other cases, the data will be erased.
What to do if you forget your Mi Account password and your pattern lock?
Restore your account via account.xiaomi.com: Click Forgot password?. Select recovery via email or SMS (if the number is tied). If you don't have access to email/phone, contact support with proof of purchase. If the account is not yours (handheld), contact the seller to untie the device.
Why does the phone ask for a password after reset via Fastboot?
It's protection. FRP (Factory Reset Protection: This works if the phone has a Mi Account attached to it, to remove the request: ๐Ÿ“ง Enter data from your Xiaomi account. ๐Ÿ”ง If your account is not yours, ask the seller to untie the device via account.xiaomi.com.
Can I unlock Redmi 5 through the Engineering Menu?
No. The engineering menu (#4636###) does not contain features to reset the pattern lock. Use the methods in this article: Mi Account, ADB, Fastboot or Recovery to unlock it.
How much does it cost to unlock in the service center?
The cost depends on the reason for the lock: ๐Ÿ’ฐ Reset pattern lock (without reference to Mi Account): 500-1500 rubles. ๐Ÿ’ฐ Unlocking someone elseโ€™s Mi Account (with proof of purchase): 2000โ€“5000 rubles. ๐Ÿ’ฐ Recovery after the "brick" (if the phone is not turned on): from 3000 rubles. Official service centers Xiaomi charge a fixed fee (check on the website mi.com).