Forgot a graphical password on Xiaomi Redmi 4X – how to reset without losing data?

Why is Redmi 4X blocked after incorrectly entering a password?

Xiaomi Redmi 4X automatically locks after 5 failed attempts to enter the pattern lock – this is a standard security feature of MIUI. The system does this to prevent unauthorized access to personal data. However, if you forget the combination, such protection becomes a problem.

The Redmi 4X (codenamed santoni) has several unlocking options, but their effectiveness depends on:

  • πŸ”„ Versions MIUI (The old silk works by using the ADB)
  • πŸ”‹ Battery level (at a discharge below 20%, the reset may be interrupted)
  • πŸ“± Having a linked Mi Account (without it, Hard Reset is inevitable)
  • πŸ’Ύ Important data on the phone (if there was no backup, some methods will lead to their loss)

Important: If the phone is asking PIN-code SIM-The card after the reset is a separate lock of the operator, not the graphical password. USSD-Request 111 or call in support.

πŸ“Š How often do you forget passwords on your devices?
Often, once a month.
Sometimes, every six months.
I used to forget, now I use a password manager.
Never forget.

Method 1: Unlock with Mi Account (if the phone is tied)

The safest method is to use an official Xiaomi account, which works if:

  • πŸ“§ You remember the login (email/phone) and password from Mi Account
  • 🌐 The phone has access to mobile Internet or Wi-Fi.
  • πŸ”’ Find Device has been activated in the settings

Instructions:

  1. On the locked screen, tap Forgot your password? (if the inscription does not appear, enter the key 5 times in a row).
  2. Select Sign in via Mi Account and enter the details.
  3. Confirm unlocking via SMS or email (if two-factor authentication is enabled).
  4. Set a new graphical password or disable the lock.

Limitations of the method:

  • ❌ Does not work on firmware with disabled Xiaomi services (custom) ROM).
  • ❌ If the phone is not connected to the network, authorization is impossible.
  • ❌ After 3 failed attempts to log in to the account, the device will be blocked for 24 hours.

πŸ’‘

If you don’t remember the password from Mi Account, try to restore it through account.xiaomi.com. Use the linked email or phone number.

Method 2: Recovery Mode (Hard Reset)

This method will delete all data on your phone, including photos, contacts and apps, and only use it if other methods have not worked or there is no important information on the Redmi 4X.

Step-by-step:

β˜‘οΈ Preparation for Hard Reset

Done: 0 / 4
  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. In the Recovery menu, select a language (if there is one) and go to Wipe Data β†’ Wipe All Data.
  4. Confirm the action by swipe or press Yes.
  5. After reset, select Reboot β†’ Reboot to System.

If the Recovery menu is in Chinese:

Russian translationChinese characterLatin transliteration
Clear the dataQΔ«ngchΓΊ shΓΉjΓΉ
Reboot the systemChΓ³ngqǐ xΓ¬tΗ’ng
ConfirmQuèrèn
CancellationQΗ”xiāo
What happens if the Recovery Mode does not open?
If, after pressing, the volume+ + Power the phone vibrates but does not load the menu, try: 1. Connect the charger and repeat the combination. 2. Use the button Volume down (-) instead of up (on some firmware). 3. Hold the buttons for 20-30 seconds until the Fastboot logo appears (robot with a gear).

Method 3: Password bypass through ADB (only MIUI before version 10)

This method only works on older versions of MIUI (up to the 10th inclusive) and requires pre-activation of debugging over USB. If you haven't turned it on in advance, it's useless.

What you need:

  • πŸ–₯️ Computer with Windows/Linux/macOS
  • πŸ”Œ USB-cable (original, without damage)
  • πŸ“¦ Installed Xiaomi drivers and tool ADB

Instructions:

  1. Connect Redmi 4X to your PC and open the command line (Win + R β†’ enter cmd).
  2. Enter the commands in order: adb shell su 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 the reboot, the graphical password will be reset.

πŸ’‘

If after completing the commands, the phone is stuck on startup the Mi logo, reset via Recovery Mode (Method 2).

Method 4: Unlocking via Fastboot (for advanced users)

This method is suitable if:

  • βœ… You have access to Fastboot Mode (robot with a gear).
  • βœ… The phone has unlocked the bootloader (Bootloader).
  • βœ… You are ready for possible data loss.

Algorithm of action:

  1. Turn off the phone and press Volume Down (-) + Power to log into the Fastboot.
  2. Connect Redmi 4X to your PC and check for device detection by command: fastboot devices
  3. Run reset: fastboot erase userdata fastboot erase cache fastboot reboot

⚠️ Note: If the bootloader is locked, it must be unlocked through the official Mi Unlock Tool before reset.The process takes up to 720 hours (30 days) of waiting on new Xiaomi accounts.

Method 5: Contact Xiaomi Service Center

If independent attempts are unsuccessful, you can contact an authorized service center.

  • πŸ” The phone has enabled data encryption (File-Based Encryption).
  • πŸ“± Device for warranty (self-dumping can cancel it).
  • πŸ’° You need data from your phone (the service may try to extract it).

What to bring with you:

  • πŸ“„ Passport (to confirm possession).
  • πŸ›’ Check or box from the phone (if any).
  • πŸ”Œ Charger (in the service can check the performance).

The cost of unlocking in 2026:

Type of serviceTime limit for implementationCost (β‚½)
Resetting password without saving data1-2 hours800–1 500
Resetting with attempted data recovery1-3 days2 500–5 000
Unlocking Bootloader + firmware3-5 days3 000–6 000

Frequent Mistakes and How to Avoid Them

When trying to reset a password, users often face typical problems:

  1. Phone is not included in Recovery: ⚠️ Note: Some of the Redmi firmware 4X The combination of buttons to enter Recovery may be different.+ + The food is not working, try the volume.+ + Loudness- + Nutrition.
  2. ADB does not see the device: Solution: Install Xiaomi drivers manually through Device Manager (select β€œUpdate Driver” β†’ β€œFollow Search on This Computer” β†’ specify the driver folder).
  3. After reset, the phone asks for the old password: This means that the data has not been completely erased. Repeat Wipe Data in Recovery or run the fastboot erase userdata command again.

πŸ’‘

If Redmi 4X starts to brake after unlocking, reset to factory settings again and do not restore data from the backup - it may contain corrupted files.

Can I unlock Redmi 4X without losing data?
Yes, but only if: πŸ”“ You've got debugging on. USB and have access to ADB (Method 3). πŸ“§ The phone is linked to Mi Account and connected to the Internet (Method 1.
What to do if you forget your Mi Account password?
Restore it through the official website: Go to account.xiaomi.com. Click Forgot Password?. Enter email or phone linked to your account. Follow the instructions in the letter or SMS. If you do not have access to email/phone, contact Xiaomi with documents confirming the purchase of the phone.
How to find out the MIUI version on a locked phone?
There are two ways: When connecting to a PC via ADB, execute the command: adb shell getprop ro.miui.ui.version.name Log in Fastboot Mode and watch the version in the MIUI bar (if it appears).
Can I unlock Redmi 4X through my Google Account?
No. Since MIUI 9, Xiaomi has removed the ability to unlock through a Google account, a method that only worked on very old firmware versions (until 2017).
After resetting, the phone asks to enter a password from SIM-What do you do?
This is not related to Redmi’s graphical password. 4X. You need to enter PIN-code SIM-card (usually listed on the plastic card holder) if you forget PIN, contact the operator (MTS, Beeline, MegaFon, Tele2) with a passport. PIN wrongly 3 times, SIM-The card will be blocked – it will be required PUK-code (in the contract or the operator).