Introduction: Why the smartphone is blocked and what to do
Forgotten password on Xiaomi Mi 4X β It's a situation that even experienced users face, and the reasons are trivial: infrequent use of the device, change of device. PIN-In 80% of cases, the problem is solved without contacting the service center, but it is important to act carefully - wrong actions can lead to complete loss of data or "bricking" of the phone.
Xiaomi MIUI-based smartphones have several layers of protection, and the unlock method depends on which features were activated in advance. For example, if you previously linked your Mi Account account and remember your username / password, the process will take 5 minutes. If not, you will need to reset via Fastboot or Recovery, which will automatically delete all data from internal memory. In this article, we will discuss all the current ways to unlock for the Xiaomi Mi 4X, including bypassing FRP (Factory Reset Protection) after reset.
Before you start, answer yourself 3 questions:
- πΉ Is the phone linked to a Mi Account? (if so, the method) β1 β2 is perfect)
- πΉ Is debugging on? USB? (If yes, you can bypass the lock without losing data)
- πΉ Is there a backup? (if not, the reset will result in the removal of photos, contacts, and messages)
Method 1: Unlocking with Mi Account (official method)
The safest and most recommended way for Xiaomi is to use a tied Mi Account, which works even if you donβt remember the lock screen password, but remember the login details. The algorithm works on 95% of Mi 4X devices if:
- π± The phone is connected to the Internet (Wi-Fi or mobile data)
- π Mi Account was tied before being blocked
- π Find Device is active in the settings
Step-by-step:
- On the locked screen, tap the Forgot Password button (usually appears after 5 failed attempts to enter).
- Select Unblock via Mi Account.
- Enter the email or phone number associated with the account and the password.
- Confirm the unlock through SMS-code (will come to the tied number).
- Set a new password or pattern lock.
Check your internet connection
Make sure you remember the email/password from your Mi Account.
Have your hand on it. SIM-card with a linked number (for SMS-code)
Charge your phone at least 30% (to avoid shutdown)
-->
What if you don't have a "Forgot Password" button? Some MIUI firmwares have a hidden password button.
- Enter any password 5 times in a row until the Repeat message appears in 30 seconds.
- At the bottom of the screen will appear button Forgot the password? β click on it.
β οΈ Warning: If, after unlocking through Mi Account, the phone requires you to enter the old password, it is a firmware bug. Solution: reset via Recovery. β4), but pre-untie the Mi Account in the security settings.
Method 2: Bypassing the lock via Find Device
Xiaomiβs Find Device feature allows you not only to track your phone, but also to unlock it remotely, which works even if you donβt have physical access to your smartphone (for example, itβs lost or stolen), the main condition is that the device must be connected to the Internet and have a Mi Account tied.
Instructions:
- Go to i.mi.com from a computer or other phone.
- Sign in with the same account as the blocked Mi 4X.
- Select your device (Xiaomi Mi 4X) from the menu.
- Click Unlock Device (the option may be called Unlock in English).
- Confirm the action via SMS or email.
And then the phone unlocks, and you can set a new password, and the important thing is, if the device has been turned off or discharged, the command will only work once it's turned on and connected to the network.
What to do if the βFind deviceβ function is disabled?
Limitations of the method:
- π« Does not work on phones with custom firmware (for example, LineageOS).
- π« If two-factor authentication is enabled on the device, access to the backup code will be required.
- π« Once unlocked, you may need to re-authorize some apps (such as WhatsApp or banking services).
Method 3: Unlock via ADB (if USB debugging is enabled)
The method is for advanced users who have previously activated USB Debugging in the developer settings, allowing you to delete a password file (gesture.key or password.key) without completely resetting.
What you need:
- π₯οΈ A computer with installed Xiaomi drivers and ADB Tools.
- π USB-cable (preferably original).
- β‘ Phone with a charge of at least 50%.
Step-by-step:
- Connect the Mi 4X to your computer via USB.
- Open the command line (Win + R β enter cmd).
- Enter the commands in turn: adb devices (should appear your device) adb shell su rm /data/system/gesture.key For PIN-Use the code: rm /data/system/password.key
- Reboot the phone: reboot
Once you reboot, the lock screen will disappear. Importantly, if USB debugging wasn't enabled in advance, this method won't work -- you'll need to reset via Fastboot.
β οΈ Note: On some versions MIUI (particularly 12+) If you delete gesture.key, your phone doesn't unlock, try removing the entire directory: rm -r /data/system/locksettings* But it can cause a system crash! recommend first backup through adb backup.
π‘
If you have a "Permission denied" error after the su command, you don't have root permissions on your phone, and you can't get around the ADB lock, so use other methods.
Method 4: Hard Recovery Reset (will delete all data)
If previous methods didnβt work, the radical way is to reset to factory settings via Recovery Mode, which will delete all data (photos, messages, apps), but return access to the phone, the method works on 100% of Xiaomi Mi 4X devices, regardless of the firmware version.
Instructions:
- Turn off the phone with a long press on the power button.
- Press the Power button + Volume up at the same time and hold for 10-15 seconds until the Mi logo appears.
- Release the buttons β you will be taken to the Recovery menu (management is carried out by the volume and power buttons).
- Select the Wipe Data option β Wipe All Data.
- Confirm the action by choosing Confirm.
- After reset, select Reboot to reboot.
The phone will turn on in the βout of the boxβ state, and you will need to go through the initial setup, including the binding of the Mi Account (if it was previously).
| Action. | The result | Note |
|---|---|---|
| Wipe Data | Deletion of all user data | Data recovery after resetting is not possible |
| Wipe Cache | Cleaning up the app cache | It does not delete personal files, but can solve problems with hanging. |
| Reboot to Bootloader | Going to Fastboot Mode | Needed to Firmware or Unlock the bootloader |
β οΈ Note: Phones with a locked bootloader (Bootloader) after reset may be asked to enter data from the previous account Mi (FRP-To get around it, use a method. β5.
Method 5: Factory Reset Protection (FRP) bypasses after resetting
If you reset your phone with Recovery and ask for a login/password from your old Mi Account, it's FRP-blocking, which is available on all Xiaomi smartphones with MIUI 8 and newer, and you can get around it in two ways:
Option 1: Through an official account
- π§ Enter the email and password from the Mi Account that was tied before the reset.
- π± If you do not remember the data, restore access through account.xiaomi.com.
Option 2: Through bypass (PC required)
This will require:
- π₯οΈ Programme Mi FRP Unlock Tool (you can download from the forums) 4PDA or XDA Developers).
- π USB-Xiaomi cable and drivers.
- β‘ Disabled antivirus (it can block the tools to bypass) FRP).
Algorithm:
- Connect your phone to your PC in Fastboot mode (clip Power + Volume down).
- Start the Mi FRP Unlock Tool and select the Mi 4X model.
- Follow the instructions of the program (usually you need to enter the command fastboot oem frp-unlock).
- After a successful bypass, restart the phone.
π‘
Bypassing FRP is a violation of Xiaomiβs security policy, and use it only on your device, and on other peopleβs phones (like those bought by hand), it can be considered a hack.
Method 6: Contact Xiaomi Service Center
If all of these methods did not help, or you are afraid to damage the phone by self-manipulation, contact the official service center of Xiaomi.
- π Check or warranty card (proof of possession).
- π Passport (for proof of identity).
- π° Payment for the service (from 1000 to 3 000 rubles, depending on the region).
What the service does:
- If necessary, reflash the device to the latest version of MIUI.
The run time is 1 to 3 days, and the advantage is that the phone is not bricked and all functions are functional, and the disadvantage is that it costs a lot more than unlocking it yourself.
β οΈ Warning: Unofficial service centers may offer "unlock in 5 minutes" at a low price, often using illegal methods (such as firmware with a remote Mi Account), which leads to the loss of the service. IMEI or problems with updates. Only contact authorized centers!
Frequent Mistakes and How to Avoid Them
When unlocking on their own, users often make critical errors that exacerbate the problem.
| Mistake. | Effects of consequences | How to avoid |
|---|---|---|
| Interrupting the firmware process | "Overheading" of the phone (not included) | Use a laptop with a charged battery or UPS |
| Use of informal firmware | Loss of IMEI, network problems | Download the software only from the official website |
| Resetting without detachment Mi Account | FRP-blocking after restarting | Delete your account in Settings β Accounts before reset |
Tips for the future:
- π Use biometric unlocking (fingerprint or face) as a backup method.
- π± Regularly back up through Settings β Additionally. β Backup.
- π§ Link your Mi Account to two emails and a phone number for security.