How to flash Xiaomi Redmi 4X through PC: full instructions with nuances

Why do you need to use Redmi 4X and when you need it?

Xiaomi Redmi 4X (codenamed santoni) is still popular with users due to its reliability and low price, but over time, even it starts to โ€œbrakeโ€, discharge in a few hours or give out errors in the operation of applications, firmware through a PC is one way to restore the device to its former functionality or even improve it.

The main reasons for reflashing are to upgrade to a newer version of MIUI (if official updates have stopped), install custom firmware like LineageOS or Pixel Experience, remove viruses after unsuccessful root-right experiments, and restore the brick after a failure. It is important to understand that the procedure carries risks - from data loss to complete failure of the phone if the sequence of actions is disrupted.

This guide is suitable for Redmi owners. 4X based on the Snapdragon processor 435 (model 2/3/4 If your device has a different hardware or brand (e.g. Redmi Note) 4X), The algorithm may differ. Clarify the device code name in the settings (Settings) โ†’ The phone. โ†’ Version. MIUI) โ€” It must match the santoni.

๐Ÿ“Š You've been using Xiaomi before?
Yes, repeatedly.
Yeah, but I don't remember how.
No, it's gonna be my first time.
I prefer official updates.

Preparation for firmware: what to do before the start

The first and most important step is backing up data. PC firmware wipes out the phone's internal memory in 99% of cases, including photos, contacts and messages. Use Mi Cloud, Google Photos or physical copying to your computer.

  • ๐Ÿ“ฑ Contact (export to) VCF-File via the "Contact" applicationยป)
  • ๐Ÿ“ธ Photos and videos (check folders) DCIM and Pictures)
  • ๐Ÿ”‘ Logins and passwords (save from the browser or password manager)
  • ๐ŸŽฎ Save games (use a cloud or root manager if there is root)

Next, check the battery power, it must be at least 60%. If the phone runs out during firmware, it can lead to the inability to recover without service equipment (EDL-Prepare for the regime:

  • ๐Ÿ–ฅ๏ธ Computer on Windows 7/10/11 (64-bit preferably)
  • ๐Ÿ”Œ Original. USB-cable (faulty cable is a common cause of errors)
  • ๐Ÿ› ๏ธ Drivers for Xiaomi (install Mi) PC Suite or Qualcomm Drivers Package)
  • ๐Ÿ“ Firmware (official or custom, in.tgz or.zip format)

โš ๏ธ Note: If you are flashing a phone with a locked bootloader, you will first need to unlock it through the Mi Unlock Tool. Without this step, installing firmware through Fastboot will end up with an anti-rollback error.

Make sure your phone model is Redmi. 4X (santoni)|Download the correct firmware version for your modification|Install Qualcomm drivers and ADB|Disable the antivirus (it can block MiFlash)|Connect the phone to the back. USB-PC port (front ports are often unstable)-->

Firmware selection: official MIUI vs custom builds

The type of firmware depends on the capabilities of the phone after installation. Xiaomiโ€™s official MIUI versions provide stability, but may contain unnecessary apps and limitations. Custom firmware (like LineageOS or HavocOS) offer more freedom, but require experience in setting up.

Type of firmwarePlusesConsComplexity of installation
Official MIUI (Fastboot)Stable operation, OTG support, all camera featuresAdvertising in system applications, limited settingsโญโญ (easily)
Official MIUI (Recovery)Retains user data (sometimes)Not all versions are available in this format.โญโญ (easily)
LineageOS/Pixel ExperienceClean Android, no ads, regular updatesNFC or dual camera may not workโญโญโญโญ (difficult)
Xiaomi.euMIUI without advertising, advanced settingsThere is no Russian language in some versions.โญโญโญ (middle-of-the-road)

For beginners, it is recommended to start with the official Fastboot firmware. It can be downloaded from en.miui.com (choose the santoni version). Look for custom firmware on the 4PDA or XDA Developers forums, but check user reviews - some builds may contain errors.

โš ๏ธ Attention: Firmware for Redmi 4X Redmi Note 4X (The code name mido is incompatible! If you install the wrong version, you'll get a brick.

๐Ÿ’ก

If you choose custom firmware, look at the Android version at its core. For Redmi 4X, Android 10 (Q) is considered the most stable, and Android 11 and later can work with bugs.

Unlocking the bootloader: a mandatory step before the firmware

All Xiaomi smartphones have a bootloader by default, a security measure that prevents unofficial software from being installed. To flash the phone through a PC, the bootloader needs to be unlocked. The procedure takes 3 to 7 days due to the Mi Account verification.

Unlocking algorithm:

  1. Link your phone to your Mi Account in settings (Settings โ†’ Xiaomi Account).
  2. Enable USB debugging and OEM unlocking in Settings โ†’ About Phone โ†’ MIUI version (7 times tap on version, then return to Additional โ†’ For developers).
  3. Download Mi Unlock Tool from the official website.
  4. Launch the utility on your PC, log in to the same Mi Account and connect your phone in Fastboot mode (click Volume Down + Power).
  5. If you see a message saying "Wait 168 hours", you have to wait 7 days.

Once you've successfully unlocked it, the phone will reboot with the data clearing, and now you can start the firmware. If you don't unlock it, check:

  • ๐Ÿ”— Is your Mi Account linked to your phone (sometimes you need to re-link)
  • ๐Ÿ”„ Is the Mi Unlock Tool Updated to the Latest Version?
  • ๐Ÿ“ก Is the Internet connection stable (the program checks the online account)
What to do if Mi Unlock Tool gives you a "Couldn't unlock" error
The error is often due to the phone not being linked to the Mi Account for 7 days.Try: 1. Re-assign the account in the phone settings. 2. Wait 24 hours and try again. 3. Use another one. USB-If nothing helps, your account may be blocked for frequent attempts to unlock (Xiaomi restriction).

Firmware through MiFlash: step-by-step instructions

The most reliable way to flash Redmi 4X is to use MiFlash, which works with official firmware in.tgz format and is suitable for recovery of bricks.

  1. Download and unpack the firmware into a folder without Cyrillic characters (for example, C:\santoni_fastboot).
  2. Install drivers for Fastboot (if you haven't done it before).
  3. Run MiFlash on behalf of the administrator.

Once the firmware is successful, the phone will restart. It can take up to 15 minutes to launch the first one -- don't interrupt. If MiFlash comes up with an error, check:

  • ๐Ÿ“ Is the firmware properly unpacked (there must be files) images\boot.img, system.img etc.)
  • ๐Ÿ”Œ Is the phone connected to the back? USB-Ports (front ports are often unstable)
  • ๐Ÿ›ก๏ธ Is the antivirus disabled (it can block entry to system partitions)

โš ๏ธ Warning: If the phone has been stuck on the Mi logo for more than 20 minutes after firmware, try to go to Recovery (click Volume Up). + Power) and reset (Wipe Data). If this doesn't work, re-scan with the Clean All option in MiFlash.

๐Ÿ’ก

MiFlash is the most reliable method for the Redmi 4X, but requires an unlocked bootloader. If the phone doesn't turn on (the "brick"), this method often helps to restore it.

Fastboot Firmware: An Alternative Method

If MiFlash doesn't work for some reason, you can manually run your phone through Fastboot commands, which requires you to know the console commands, but you have more control over the process.

  • ๐Ÿ–ฅ๏ธ Established ADB Fastboot (download Platform Tools from Google)
  • ๐Ÿ“ Unpacked firmware in the folder with Fastboot
  • ๐Ÿ”ง Patience โ€“ the process takes longer than in MiFlash

Instructions:

  1. Open the command prompt in the firmware folder (click Shift + right mouse button โ†’ Open the PowerShell window here).
  2. Connect your phone in Fastboot mode (as described above).
  3. Check the connection command: fastboot devices must display the serial number of the device.
  4. Sweep through each section separately (example for boot.img): Fastboot flash boot boot.img Repeat for all files from the image folder (except userdata.img, if you do not want to lose data).
  5. Clear the cache: fastboot erase cache
  6. Reboot the phone: fastboot reboot

This method is useful if you only need to flash through individual partitions (for example, replace boot.img to get root), but it is more time-consuming and can cause errors when you skip steps.

๐Ÿ’ก

If you are running custom recovery (e.g. TWRP), use fastboot flash recovery twrp.img. But remember: you canโ€™t install official MIUI updates after that, which will result in a stock recovery replacement.

Frequent mistakes and their solutions

Even with the correct following of the instructions, errors can occur, and here are the most common ones and ways to fix them:

Mistake.Reason.Decision
anti-rollbackTrying to stream an older version of MIUIUse firmware with the same or newer build date
device not foundDrivers are not installed or the cable is faultyReinstall the drivers, try another one. USB-port
The phone does not turn on after the firmwareIncorrectly selected firmware or interrupted processRepeat the firmware with the Clean All option in MiFlash
invalid sparse fileFirmware file damagedDownload the firmware again and check the checksum (MD5)

If the phone after a failed firmware does not respond to buttons and is not determined by the computer, try to transfer it to the computer. EDL-The mode (emergency loading:

  1. Turn off the phone.
  2. Hold the Loud up. + Loud down and plug in. USB-cable.
  3. If the Qualcomm 9008 drivers are installed, the phone will be identified as QDLoader 9008.
  4. Use MiFlash or QFil to recover.

โš ๏ธ Attention: EDL-If that doesn't work, you'll need a programmer or a service center. Don't trust the "masters" who promise to restore in 5 minutes - it can be a scam.

FAQ: Answers to Frequent Questions

Can I flash Redmi 4X without unlocking the bootloader?
No, official firmware via Fastboot requires an unlocked bootloader.The only way to get around this is to use Recovery firmware (.zip format), but it updates the system without full cleaning, which can lead to errors.
How to return the official firmware after custom?
Download the official Fastboot firmware from Xiaomi and run through MiFlash with the Clean All option. After that, the bootloader will lock again, and you will need to re-unblock to install custom firmware.
Will IMEI be lost after the firmware?
Official firmware retains IMEI, but if custom builds are installed incorrectly, it can fly off, and you can restore it through the engineering menu (#4636##) or specialized utilities like ChimeraTool (requires root).
Can I roll back the MIUI version to an older version?
Technically, yes, but Xiaomi uses an Anti-Rollback mechanism that blocks rollbacks on versions older than a certain date, so if you try to do that, the phone will turn into a brick.
How to check if the bootloader is unlocked?
Turn off your phone and press Volume Down + Power. If you see Unlocked under the hare logo, the bootloader is unlocked. If there's no sign or it says Locked, you need to unlock.