Xiaomi Redmi 4X remains a popular smartphone even years after its release, but many users are faced with the problem of a forgotten password. Standard reset via Recovery erases all data β photos, messages, contacts. However, there are legal methods of unlocking without losing information, if you remember the attached Mi Account or are willing to use technical tools like ADB and Fastboot.
In this article, we will discuss 5 proven ways to reset the password to Redmi 4X (codename santoni) with data storage. Importantly, not all methods are suitable for firmware based on MIUI 12+ - there Xiaomi has tightened protection. We will specify the limitations for each option and warn against common errors that can permanently lock the bootloader.
If you're not sure about your technical skills, you should go to a service center, but for experienced users, our instructions will help you get back to your phone without losing any money.
1 Unlocking through Mi Account (official method)
The safest method is to use a linked Mi Account, which works if:
- π± The phone is connected to the Internet (Wi-Fi or mobile network).
- π Remember the username and password from Xiaomi account.
- π Find Device has been activated in the settings.
Instructions:
- On the lock screen, tap Forgot your password? (if available).
- Choose Restore through Mi Account.
- Enter your email/phone and password from your account.
- Confirm the unlock via SMS or email.
If the option Forgot the password? is not displayed, try:
- Reboot the phone.
- Connect to another Wi-Fi network (sometimes the lock is triggered due to operator restrictions).
- Use the web version of Mi Account to send an unblock command.
β οΈ Note: If you have previously changed your Mi Account password, you may have a 72-hour lock to unlock your device, in which case you will have to wait or use alternative methods.
2. Password reset via Fastboot (without data loss)
This method is suitable for Redmi 4X with bootloader unlocked. If you previously unlocked it through Mi Unlock Tool, you can reset your password without erasing data. Importantly, on MIUI 11 and later, this method may not work due to the increased protection.
What you need:
- π» Computer with Windows/Linux.
- π Cable USB (original, undamaged).
- π οΈ Utilities. ADB and Fastboot (download from Android site).
- π File. twrp-3.5.2_9-0-santoni.img (version TWRP for Redmi 4X).
Step-by-step:
- Turn off the phone. Press Volume down + Power to enter the Fastboot.
- Connect your phone to your PC and check the connection with the command: fastboot devices must display the serial number of the device.
- Download the timeline. TWRP: fastboot boot twrp-3.5.2_9-0-santoni.img
- In TWRP, go to Advanced β File Manager.
- Delete files: /data/system/gesture.key /data/system/locksettings.db /data/system/locksettings.db-wal /data/system/locksettings.db-shm
- Reset the phone. The password will be reset.
β οΈ Note: If after deleting files, the phone is fixated on downloading, go back to the TWRP And do the Wipe. β Format Data (This will result in data loss!).
Download Platform Tools and unpack to the root of the C:| disk
Install Xiaomi drivers (via Mi Flash Tool)|
Check the MIUI version in the phone settings |
Download the correct version of TWRP for santoni|
Disable the antivirus (it can block fastboot)-->
3. Use of ADB (for debugging mode only)
If it's Redmi. 4X The debugging mode was activated. USB (USB Debugging, you can reset your password through ADB It works even on newer versions. MIUI, but requires pre-configuration.
Conditions:
- π§ Regime. USB Debugging is activated in Settings β The phone. β Version. MIUI (7 times tap to unlock the developer options).
- π» Computer with administrator rights.
- π The phone must be connected to the PC and confirm trust (pop-up Allow debugging?).
Instructions:
- Connect your phone to your PC and open the command line in the folder with ADB.
- Check the connection: Adb devices must display device status.
- Delete the password files: adb shell rm /data/system/gesture.key adb shell rm /data/system/locksettings.db*
- Reboot your phone: adb reboot
If the rm command doesnβt work, try:
adb shell
su
mount -o rw,remount /data
rm /data/system/gesture.key
rm /data/system/locksettings.db*
rebootπ‘
If ADB Can't see the device, try changing it. USB-port (better to use port) 2.0) or disable driver signatures in Windows via bcdedit /set nointegritychecks on (requires PC reboot).
Password bypass through Safe Mode (limited functionality)
Safe Mode allows you to temporarily disable third-party applications, including screen blockers from third-party developers (such as AppLock).This method does not always work for a standard MIUI password, but it is worth trying.
How to log in to Safe Mode:
- On the lock screen, press the Power button before the turn off menu appears.
- Slip and hold the option to turn off (a suggestion will appear to go to safe mode).
- Confirm transition. The phone will reboot with Safe Mode at the bottom of the screen.
If the password is reset:
- π± Install a new one. PIN/password.
- π Restart your phone to normal mode.
If the password is left:
- π§ Try to remove blocking apps through Settings β Annexes.
- π Install an alternative launcher (like Nova Launcher) via Google Play and try accessing the settings.
β οΈ Warning: Many features are disabled in Safe Mode, including mobile internet and some system applications. Do not delete system files - this can lead to a device blink.
5. Hardware reset via test points (for power users)
If software methods fail, then hardware resets through test points, which requires disassembling the phone and is only suitable for users with soldering experience, with the advantage of bypassing bootloader locks and storing data when executed correctly.
What you need:
- π§ A set of screwdrivers for dismantling Redmi 4X (T3, T4).
- π΅οΈββοΈ Multimeter or tweezers for closing contacts.
- π» PC with Mi Flash Tool installed and firmware for santoni.
- π Power supply (e.g., charger with USB-cable).
Step-by-step:
- Turn off your phone and remove the back cover (carefully so you donβt damage the plumes!).
- Find test points on the motherboard (for the Redmi 4X, these are two pins next to the battery connector signed by TP).
- Connect your phone to your PC via USB without a battery.
- Close the test points with tweezers for 5-10 seconds. The phone should be defined in the Mi Flash Tool as COM-port.
- Swipe your phone through the Mi Flash Tool with the Clean All and Lock option (this will delete the password, but save the data in the /data partition with the correct firmware).
| Method | Data retention | Difficulty | Requires unlocking bootloader | It works at MIUI 12+. |
|---|---|---|---|---|
| Mi Account | β Yes. | ββ | β No. | β Yes. |
| Fastboot + TWRP | β Yes. | ββββ | β Yes. | β No. |
| ADB | β Yes. | βββ | β No. | β Yes (if it was on). USB Debugging) |
| Safe Mode | β Yes. | β | β No. | β Partially. |
| Test points. | β οΈ Partially. | βββββ | β No. | β Yes. |
What do you do if nothing helps?
Frequent Mistakes and How to Avoid Them
Many users make critical mistakes when trying to reset a password, which leads to a complete lock of the phone.
- Use of informal firmware: firmware through uncertified sources (e.g, 4PDA) It may lead to a blockage. IMEI Or bootloop. Always check. MD5-hash.
- Test points are not correctly closed, if you close the wrong contacts, the phone may stop turning on. On the Redmi 4X board, the test points are located next to the battery contacts, which are easily confused with the ground points.
- Deletion of system files in TWRP. Delete files like /data/system/users/0/settings_global.xml It can cause system settings to fail. Always back up before you change.
How to minimize the risks:
- π Before any manipulations, check the battery charge (at least 50%).
- π§ Use the original. USB-cable (cheap cables can interrupt the connection).
- π Download firmware only from official sources: Official website MIUI Xiaomi Firmware Updater (for stable versions).
π‘
If after resetting the password, the phone requires the entry of the old PIN-Encryption code, which means that File-Based Encryption was activated (FBE). In this case, the data cannot be restored - you will have to do a complete reset.