Xiaomi Redmi 4
MIUI
Android
Many Redmi 4 owners (codenamed prada) have trouble updating their firmware on their own, from errors when unlocking the bootloader to the device's "brick." In this article, we'll look at all the steps from preparation to final setup, and how to avoid common mistakes.
Before you start, consider that flashing will void the warranty (if it still works) and can lead to data loss. If you're not sure about yourself, you'd better see a specialist. But if you're willing to take risks, follow the instructions carefully: every step is important.
1. Firmware Preparation: What to Do Before Starting
The first and most important step is to prepare the device and the computer, and neglecting this step often leads to errors like ERROR: failed to load auth certificate or the inability to connect to the smartphone via Fastboot.
Redmi 4 has several modifications:
- π± Redmi 4 (2/16 GB - markw (Snapdragon) 430)
- π± Redmi 4X (3/32 GB - santoni (Snapdragon) 435)
- π± Redmi 4A (2/16 GB - rolex (Snapdragon) 425)
Check your model in Settings β About Phone β Model or under the battery (on the sticker). firmware for santoni will not work for prada - it will lead to a "brick"!
Next, check:
- π Battery charge β at least 60% (better than 100%).
- πΎ Backup of data (photos, contacts, SMS) via Mi Cloud or Google Account.
- π₯οΈ On the PC must be installed drivers Mi Phone Manager (download from the official site Xiaomi).
- π Cable USB Type-C (original or qualitative analogue).
If you plan to install custom firmware (for example, LineageOS), you will additionally need:
- π Unlocked bootloader (bootloader).
- π οΈ Established custom recaveri TWRP.
- π¦ Archive with firmware and GApps (if you need Google services).
β οΈ Warning: If your Redmi 4 was bought in China, check if it supports global firmware.Some Chinese versions (CN) There are restrictions on the installation of Global ROM.
βοΈ Checklist before firmware
2 Unlock the bootloader on Redmi 4
By default, the bootloader on all Xiaomi smartphones is locked, a security measure that prevents the installation of unofficial software, you have to unlock the device to flash it, the process takes 3 to 7 days (due to checking the Mi Account).
Instructions for unlocking:
- Connect your device to your Mi Account: Go to Settings β Mi Account β Sign in. Enter your account details (if not, sign up). Activate Device Search and Sync.
Mi Unlock Tool
official website
Mi
Fastboot
Hardware: turn off your smartphone β press the Power button + Volume down for 10 seconds.
Software: Enter adb reboot bootloader in the terminalMi Unlock Tool
Unlock
Once you successfully unlock, you'll see Unlocked at the bottom of the Fastboot screen, and you can now install custom Recovery or flash the device through Fastboot.
β οΈ Attention: Unlocking the bootloader resets all data on the device! don't miss the backup step.
What if the Mi Unlock Tool canβt see the device?
3. firmware selection: official MIUI vs custom builds
Redmi 4 can be used in two types of firmware:
- Official (MIUI): stable and weekly versions from Xiaomi.
- Custom: LineageOS, Pixel Experience, Havoc-OS and others.
π‘
If you choose custom firmware, pay attention to the Android version. For Redmi 4, Android 10 is considered the most stable (newer versions can slow down due to weak iron).
4. Install firmware via Fastboot (for official MIUI)
The most reliable way to flash an official MIUI is through Fastboot mode, which requires an archive with.tgz firmware and the Mi Flash Tool.
Step-by-step:
- Download and unpack the firmware (for example, prada_global_images_V12.5.8.0.RAMCNXM_20221010.0000.00_10.0_global_1234567890.tgz).
- Install the Mi Flash Tool (included in the Mi Unlock Tool).
- Transfer your phone to Fastboot (as described above).
- Connect your smartphone to your PC and start the Mi Flash Tool.
- In the program, click Select and specify the path to the unpacked folder with firmware.
- Select firmware mode: Clean all - clean (recommended); Clean all and lock - clean + lock bootloader (if you need to return the warranty); Save user data - save data (does not always work correctly).
Flash
Once the firmware is successful, the phone will automatically restart. The first run can take up to 15 minutes - don't interrupt the process!
β οΈ If the Mi Flash Tool is making an error 0x80070002, Check the path to the firmware folder (no Cyrillic characters) and try running the program on behalf of the administrator.
π‘
Use Clean All mode to avoid conflicts between old and new system files, which prevents most errors after firmware.
5. Install custom firmware through TWRP
To install informal firmware (for example, LineageOS) you will need custom TWRP recavers. This method is more flexible, but also more risky - an error can lead to a "brick".
Installation steps:
- Download TWRP for your model: For prada: official website. For santoni: here.
Fastboot
TWRP
fastboot flash recovery twrp-3.7.0_9-0-prada.img
fastboot boot twrp-3.7.0_9-0-prada.imgTWRP
Backup β Select sections β Swipe to Backup
lineage-17.1-20260510-UNOFFICIAL-santoni.zip
GApps
TWRP
Wipe β Advanced Wipe
- Dalvik / ART Cache
- System
- Data
- Cache
- Press Install, select the firmware archive, and confirm installation. Repeat for GApps.
- After completion, press Reboot System.
The first launch of custom firmware can take up to 20 minutes, and if the device has been stuck on the logo for more than 30 minutes, something has gone wrong, and you need to repeat the process.
How to return a standard recap after TWRP?
Typical errors and their solutions
Even with the exact following of the instructions, there can be problems.
Error 1: Device not defined in Fastboot
- π Check the cable and port USB (Try another port on the PC).
- π₯οΈ Install drivers manually through Device Manager (select Android Bootloader Interface).
- π Reinstall the Mi Flash Tool or ADB.
Error 2: Firmware through the Mi Flash Tool ends with error 0x8007010b
- π Check the integrity of the archive with firmware (unpack and compare hashes).
- π Try another version of the Mi Flash Tool (e.g. 2018340 instead of 20200710).
- π Make sure the bootloader is unlocked (Fastboot must say Unlocked).
Error 3: After firmware, the phone bootloop (cyclical reboot)
- π Come back in TWRP (clamp down on power. + Increased volume when loading).
- π§Ή Run the Wipe. β Format Data (enter yes to confirm).
- π¦ Refresh the firmware.
Error 4: No network after firmware
- πΆ Check if the firmware supports your modem model (for example, santoni requires firmware with a scalable device). modem.img for Snapdragon 435).
- π§ B Settings β SIM-Maps and mobile networks select network mode manually (e.g, LTE).
- π Refuse the modem section through Fastboot: fastboot flash modem NON-HLOS.bin
π‘
If you have lost your IMEI after the firmware, restore it using the engineering menu (#4636##) or the SN Write Tool (requires NVRAM backup).
7.Optimization and customization after firmware
After successfully installing a new firmware, it is recommended to follow several steps to improve performance:
For the official MIUI:
- π Turn off animation: Activate Developer Mode (7 taps by Assembly Number in Settings) β About the phone. Go to Settings. β Additionally. β For developers, set the scale of the animation window, the scale of the animation transition and the scale of the duration of the animator on the Off..
- ποΈ Clear the app cache in Settings β Annexes β Clear the cache.
- π Calibrate the battery: Charge the phone to 100%. Turn off the charger and use until full discharge. Repeat the cycle 2-3 once.
For custom firmware (LineageOS, Pixel Experience):
- π Set up root rights (if needed): Install Magisk through TWRP. Activate in the Root Access Developer Settings.
- π― Optimize the kernel: Install Kernel Adiutor or FrancoKernel. select Battery or Balanced profile.
- π Update Google Services: Settings β Annexes β Google Play Services β Update
If you notice a battery overheating or rapid battery drain after firmware, check the background processes in Settings β Battery β Battery Use. Often unoptimized applications or synchronization services are to blame.
8.How to return a standard firmware (rollback)
If custom firmware was unstable or you want to return the warranty, you can roll back to the standard MIUI.
Method 1: Fastboot (recommended)
- Download the official firmware for your model (for example, prada_global_images_V12.5.3.0.RAMCNXM).
- Unpack the archive and launch the Mi Flash Tool.
- Select Clean All and Lock mode (this will block the bootloader back).
- Switch the device and wait for the reboot.
Method 2: TWRP (if the bootloader is unlocked)
- Download the archive with the official firmware in.zip format (for example, with Xiaomi Firmware Updater).
- Move it to your smartphone.
- In TWRP, run Wipe β Advanced Wipe (select System, Data, Cache).
- Install the archive through Install.
β οΈ Note: If you block the bootloader after rolling back to standard firmware, all data will be erased, and the ability to install custom firmware will disappear before a new unlock (which will take another 7 days).
π‘
Before rolling back to standard firmware, make a data backup via TWRP or Mi Cloud β after blocking the bootloader, data recovery will not be possible.