How to unlock Xiaomi Redmi 4X: everything from resetting your password to bypassing your Mi Account

Xiaomi Redmi 4X

santoni

Mi Account

Xiaomi

Redmi 4X

MIUI

The main difficulty is to find a method that will work in your case, for example, a reset via Recovery will delete all data, and bypassing Mi Account may require soldering or special cable. MIUI 12) and put them from the simplest to the most radical. If you're not sure about your skills, on Redmi. 4X firmware-old MIUI 9.6 bypassing the account through EDL-The mode is only possible with an authorized Xiaomi account.

Before you start, check:

  • πŸ”‹ Battery charge of at least 50% (when unlocked via Fastboot, the phone should not turn off).
  • πŸ“₯ Availability of original USB-cables (cheap cables often don't transmit data to Fastboot).
  • πŸ’» Windows computer 7/10/11 (c ADB Or Mi Flash Tool).
πŸ“Š What type of lock on your Xiaomi Redmi 4X?
pattern lock/PIN
Mi Account after reset
Factory Lockdown (FRP)
Another option

1. unlocking the pattern lock or PIN-code without loss of data

If you have forgotten the pattern lock or PIN-code, but remember the data from the Mi Account attached to the phone, use the built-in reset function through the account. 4X s MIUI 8-12 and does not require a PC connection.

Algorithm of action:

  1. On the lock screen, enter the wrong key 5 times in a row until the message β€œForgot the password?” appears.
  2. Click on this caption and select "Restore via Mi Account".
  3. Enter the username and password from the Xiaomi account associated with the device.
  4. Follow the system instructions to create a new lock key.

⚠️ Note: If your phone is not connected to the Internet (for example, via Wi-Fi or mobile network), the recovery option via Mi Account may not be available. β†’ ##4636## β†’ "Network testing").

If you don’t remember the Mi Account data, but your phone has been synced to Google, try an alternative way:

  • πŸ“± Enter the wrong password 5 times, then click "Forgot the password?".
  • πŸ”‘ Select β€œRestore via Google” (if the option is active).
  • πŸ”— Enter the login and password from Gmail that was added to the device.

πŸ’‘

If there is no recovery option via Google, check if sync has been enabled in your account settings. On Redmi 4X with MIUI 8, this feature is disabled by default.

2.Reset to factory settings via Recovery Mode

If the previous method didn't work or you don't remember the data from your accounts, the only reliable way to unlock your phone is to hard-reset it through Recovery, which will delete all data, including photos, contacts and apps, but is guaranteed to unlock the device.

Step instructions:

  1. Turn off the phone with a long press of the power button.
  2. Press Volume Up (+) + Power button at the same time and hold for 10-15 seconds until the Mi logo appears.
  3. Release the buttons - you will be taken to the Recovery menu (navigation is carried out by volume buttons, the choice is by the power button).
  4. Select "Wipe Data" β†’ "Wipe All Data" β†’ "Confirm".
  5. Once the reset is complete, go back to the main menu and select "Reboot" β†’ "Reboot to System".

⚠️ Note: Some of the Redmi firmware 4X Mi Account lock can be activated after reset via Recovery (even if it was not previously), this is due to Xiaomi's security policy for devices with a mobile device. MIUI 9+. If the phone requested a login and password from the account after the reboot, go to the section about bypassing Mi Account.

What happens if the Recovery Mode does not open?
If you press Volume Up + Power, the phone vibrates and restarts, then the recovery partition is damaged, in which case unlocking is possible only through Fastboot or EDL (see the following sections).

Advantages and disadvantages of the method:

PlusesCons
It works on any firmware.Deletes all user data
No need for PC or special programsCan activate the Mi Account lock
Takes less than 5 minutes.It will not help if the Bootloader is blocked.

3. Unlock via Fastboot (if USB debugging is enabled)

If the phone previously had USB debugging enabled (Settings β†’ About Phone β†’ MIUI Version β†’ 7 times press to unlock the developer options), you can unlock Redmi 4X through the ADB command. This method saves data, but requires preliminary preparation.

What you need:

  • πŸ–₯️ A computer with installed Xiaomi drivers and ADB Tools.
  • πŸ”Œ Original. USB-cable (important for stable data transmission).
  • πŸ“± Included debugging by USB on the phone (even if it is blocked).

Step-by-step:

  1. Connect your phone to your PC via USB.
  2. Open the command prompt (Win + R β†’ enter cmd) and execute the commands: adb devices If the device appears in the list, move to the next step. If not, install the drivers or try another cable.
  3. Enter the commands to delete lock files: 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 reboottings.

After the reboot, the phone will be unlocked, and the old pattern lock or PIN-If the commands don't work, try the alternative:

adb shell am start -n com.android.settings/.ChooseLockGeneric

β˜‘οΈ Preparing for Unlocking via Fastboot

Done: 0 / 4

4.Backpassing Mi Account lock after reset

If the phone requires a username and password from Mi Account after resetting via Recovery and you don’t remember them, one of the following methods will be required: Redmi 4X is vulnerable to EDL-bypassing (Emergency Download Mode), but this requires an authorized Xiaomi account or special equipment.

⚠️ Note: Since 2020, Xiaomi has tightened its security policy, and bypassing Mi Account on official firmware has become almost impossible without authorization. 4X work MIUI 11+, The only legal way is to contact the service center with proof of purchase.

Ways of bypassing (for firmware up to MIUI 10):

  • πŸ”§ Through EDL Mi Flash Tool (requires an authorized Xiaomi account): Download Mi Flash Tool and firmware for Redmi 4X (For example, fastboot firmware from Xiaomi. EDL-Mode (close the Test Point contacts on the board or use the adb reboot edl command if debugging is enabled). Connect your phone to your PC, open the Mi Flash Tool and run the device with the "Clean All" option".
  • πŸ”Œ Through Deep Flash cable (for power users): A 300 kW resistor cable allows you to transfer your phone to a mobile phone. EDL You can then flash the modified firmware without checking the Mi Account.