Why TWRP on Redmi 6 is not a luxury, but a necessity for enthusiasts
Owners of Xiaomi Redmi 6 (codenamed cereus) sooner or later face the limitations of standard recovery from MIUI. Whether you want to install custom firmware like LineageOS or Pixel Experience, get root rights through Magisk, or just make a full backup system before experimenting β without TWRP Recovery, these tasks become almost impossible. But here lies the catch: the installation procedure on Redmi 6 has its pitfalls, which are often missed in the general instructions.
This article is not just a retelling of standard steps. We will discuss the unique problems Redmi 6 has with locking the bootloader through Mi Account, features of the chipset Medatek Helio P22 and compatibility of TWRP versions. You will learn how to get around the error Invalid sparse file format at header, why some TWRP builds do not see internal memory, and what to do if after firmware the device is stuck on the Mi logo. Ready?
Preparation of the device: what to do before installing the TWRP
The first rule of successful firmware is to not miss the preparation stage. On Redmi 6, this is especially critical because of the hardware platform.
- π± Version. MIUI: Install the latest official firmware through Settings β The phone. β System update. Redmi 6 is a branch. MIUI 12.5 (Android 9) Older versions may conflict with new builds TWRP.
- π Unlocked bootloader: Without this step, install TWRP Use the official Mi Unlock Tool (you can download it from Xiaomi) and note that it takes 72 hours to link your Mi Account to your device!
- πΎ Backup: Save data from internal memory to PC or cloud. TWRP does not erase user files, but reset to factory settings after unlocking the bootloader is mandatory.
- π₯οΈ Drivers and tools: Install ADB/Fastboot Drivers (for example, through Minimal) ADB and Fastboot) and check the fastboot devices commands in the terminal.
Pay special attention to the bootloader unlock item. On Redmi 6, a Couldn't unlock error often occurs even after waiting 72 hours.
β οΈ If the Mi Unlock Tool is 50% or 99% error, try connecting the phone to another one. USB-port (preferably) USB 2.0 on the back of your PC, disable the antivirus and launch the tool on behalf of the administrator. β Additionally. β Options are included for developers OEM-unlocking and debugging USB.
Selecting the Right TWRP Version for Redmi 6 (cereus)
Not all TWRP builds are equally useful. For Xiaomi Redmi 6 with Medatek Helio P22 chipset and 720Γ1440 screen resolution, only specially adapted versions are suitable. TeamWinβs official website does not always contain current builds for this device, so we recommend you to consult trusted sources:
- π Official forum XDA: Theme [OFFICIAL] TWRP for Xiaomi Redmi 6 (Look for versions marked unofficial by the developer brunof1980.
- π 4PDA: Xiaomi Redmi 6 Branch. Pay attention to user reviews about the stability of a particular build.
- π GitHub: Repositories marked cereus-twrp. Example: brunof1980/cereus-twrp.
Key criteria for choosing a version:
| Parameter | Recommended value | Why is it important? |
|---|---|---|
| Android version | 9.0 (Pie) | Android 8.1 builds may not work properly with new MIUI 12.5 cores |
| Type of assembly | unofficial from brunof1980 | The official versions often do not support the f2fs encryption used in Redmi 6. |
| Assembly date | Not older than 2023 | Older versions may not support newer super and vendor sections |
| File size | ~30-40 MB | Files less than 20MB are usually stripped down and do not contain critical drivers. |
Before downloading, check the hash amount of the file (for example, through 7-Zip or certutil-hashfile in Windows). For Redmi 6, current builds usually have MD5 of the form a1b2c3d4e5f6... (check on the forums).
π‘
If the screen turns black after TWRP, but the backlight works -- it probably doesn't support your version of the kernel. Try an alternative version marked no-dm-verity.
Step-by-step: Install TWRP via Fastboot
Now, the most important step is the recovery firmware, and we'll use the Fastboot method, because it's the most reliable method for Redmi 6. We'll look at the SP Flash Tool alternative in the next section.
Download recovery.img (compatibility checked)| Phone charged at least 70% |Fastboot mode enabled (Power buttons + Volume down) |PC sees device by command fastboot devices |All antivirus and firewalls disabled
-->
Installation steps:
- Connect Redmi 6 to your PC in Fastboot mode (hold Power + Volume Down when turned on). The screen should display the Fastboot logo with the rabbit in its cap.
- Place the recovery.img file (renamed from the downloaded archive) in the folder from fastboot.exe (for example, C:\platform-tools\).
- Open the command prompt in this folder (Shift + right mouse button β Open PowerShell window here) and execute the command: fastboot flash recovery.img If FAILED error appears (remote: 'Not allowed in Lock State'), then the bootloader is not unlocked (see section above).
- After successful firmware, donβt restart the device right away! First, perform: fastboot boot recovery.img This will temporarily boot TWRP, allowing you to bypass the automatic rewriting of stock MIUI.
- From the TWRP menu, select Wipe β Format Data (enter yes for confirmation) to remove encryption and prevent logo getting stuck.
- Reboot to the system via Reboot β System. The first boot can take up to 10 minutes.
β οΈ Note: If after rebooting TWRP It is gone, and instead of it, the stock recaveri again - then the protection mechanism worked. MIUI. Solution: Repeat the step 4 (downloading via fastboot boot, then in TWRP install a zip file with Magisk or Disable_Dm-Verity_ForceEncrypt (jump on XDA). This will turn off automatic rewriting.
Alternative method: Firmware TWRP via SP Flash Tool
If fastboot fails to work (for example, because of a damaged boot partition), you can use the SP Flash Tool, a tool for firmware on devices on Medatek, which is more risky, but sometimes the only possible method.
You'll need:
- π Scatter file for Redmi 6 (can be extracted from official firmware via MTK Droid Tools).
- π₯οΈ SP Flash Tool (version 5.2 or later) can be downloaded from the official website.
- π Medatek Drivers: Install MTK USB Drivers (e.g., via Auto Installer from Brom).
Instructions:
- Launch the SP Flash Tool and download scatter.txt via the Choose button.
- In the section list, uncheck all check boxes except RECOVERY. Specify the path to the recovery.img file.
- Switch to the Options tab and select Download Only (not Firmware Upgrade!).
- Turn off Redmi 6, connect it to your PC without pressing buttons. Tool should automatically identify the device and start firmware.
- After the green circle appears, turn off your phone and boot to TWRP with Power + Volume Up.
β οΈ Attention: If SP Flash Tool is an error S_LA_SECURITY_LVL, Solution: Use Bypass utlits for Medatek (for example, use Secure Boot protection, MTK Bypass) or contact the service center to disable protection through EDL.
What to do if SP Flash Tool doesn't see the phone?
Solving common problems after installing TWRP
Even if the firmware is successful, Redmi 6 often has specific bugs, and here are the most common ways to fix them:
| Problem. | Reason. | Decision |
|---|---|---|
| TWRP does not see internal memory | Encryption f2fs or a damaged data partition | In TWRP, run Wipe β Format Data β Yes. If it doesnβt work, run the stock firmware through Mi Flash and re-install TWRP. |
| Hanging on the Mi logo after rebooting | Dm-verity or forceencrypt activated | V TWRP zip file Disable_Dm-Verity_ForceEncrypt, then reboot. |
| Error E: Unable to mount /data | A damaged file system or an incompatible version of TWRP | Try another build. TWRP Or manually format the partition via adb shell. make_ext4fs /dev/block/mmcblk0pXX (Check the section number in mtk-partitions). |
| Touch buttons in TWRP do not work | Incorrect drivers touchscreen in the Assembly | Use the build marked touch-fixed or connect OTG-mouse. |
After installation TWRP phone stopped charging or is not determined by PC, check the integrity of the usb partition. In rare cases, the firmware recovery can damage USB-Solution: run the stock firmware through EDL (You need an authorized Xiaomi account).
π‘
On Redmi 6, after installing TWRP, be sure to turn off automatic MIUI update in Settings β About Phone β System Update β Three Points β Update Settings. Otherwise, the next update will reset your custom Recovery!
What to do after installing TWRP: Next steps
Oh, yeah, TWRP's been successfully installed, but that's only half the story.
- π¦ Make a full backup: On the menu TWRP Select Backup and select Boot, System, Data, EFS. Save the backup on SD-card.
- π Install Magisk for root rights: Download the latest version of Magisk (e.g., download the latest version of Magisk, Magisk-v26.4.zip) and run through Install β Select Storage.
- π± Swipe custom firmware: For Redmi 6, LineageOS 16 (Android 9) or Havoc-OS are popular. β Advanced Wipe (tag Dalvik, Cache, System, Data).
- π roll back to the stock MIUI: If something goes wrong, download the official firmware for cereus from Xiaomiβs website and run through Install. β Install Image (select file) flash_all_except_storage.bat data retention).
Remember: after obtaining root rights, some functions will stop working:
- π³ Google Pay and banking apps (due to SafetyNet) Solution: Hide root via MagiskHide or the Universal SafetyNet Fix module.
- π‘ OTA-update MIUI. You will have to update manually through TWRP.
- π Encryption of data. After formatting data into TWRP encryption is permanently shut down.