Xiaomi Redmi 6A (codename cactus) remains a popular budget smartphone even years after its release. However, over time, its performance may decline due to outdated software, and official updates from Xiaomi have long ceased. Firmware through the computer is the only way to install the current version of MIUI or custom firmware like LineageOS. In this guide, we will analyze the entire process from preparation to final configuration, taking into account the typical errors and nuances for the Redmi 6A.
It's important to understand that PC firmware isn't just an "air update," which requires unlocking the bootloader, working with Fastboot and EDL modes, and using specialized tools like MiFlash or SP Flash Tool. If you've never experienced this kind of manipulation, we recommend you to carefully study every step: an error in unlocking or selecting a firmware can turn your phone into a "brick."
This article is relevant for the Redmi 6A based on the MediaTek Helio A22 processor (models with the prefix MTK in the name). If your device is equipped with a Qualcomm Snapdragon chipset, the firmware process will be different β specify the details in the comments.
1. Firmware Preparation: What to Do Before Starting
Before you start firmware, make sure all the prerequisites are met, which minimizes the risks of crashes and data loss.
- π± Save important data: contacts, photos, messages. The firmware will reset your phone to factory settings. Use Mi Cloud, Google Photos or physical backup on your PC.
- π Charge the battery to at least 60%. interruption of the process due to battery discharge can damage system files.
- π₯οΈ Install drivers for Redmi 6A Without them, the computer will not recognize the device in Fastboot modes or EDL.
- π Download the right firmware. 6A Only files marked cactus (codename of the model) are suitable).
Special attention is paid to the choice of firmware version. Official MIUI builds for Redmi 6A are available at en.miui.com. For custom firmware (such as LineageOS or Pixel Experience), check compatibility on the XDA Developers or 4PDA forums.
β οΈ Warning: Firmware of unofficial (custom) versions of the software will void the Xiaomi warranty and may lead to unstable operation of the device.
If you plan to unlock the bootloader, register your Mi Account and link your phone to it, a mandatory step to get permission to unlock through the Mi Unlock Tool.
2 Unlock the bootloader on the Redmi 6A
The bootloader on all Xiaomi smartphones is locked by default, a security measure that prevents uncertified software from being installed. To flash Redmi 6A through your computer, you need to unlock it.
The process consists of three stages:
- Linking your Mi Account to your device (via Settings β Xiaomi Account).
- Getting permission to unlock through the Xiaomi website (can take up to 72 hours).
- Direct unlocking with the Mi Unlock Tool.
Detailed instructions:
- Activate Developer Mode: Go to Settings β About Phone and click on MIUI Version 7 times.
- Return to Settings β Additional β Developer and enable options: Debugging over USB OEM Unlock (may not be available on some versions of MIUI).
Connect the phone to the PC, confirm the debugging permission.
Mi Unlock Tool
official website
Mi Account
Fastboot
Loudness down + Nutrition
Unlock
β οΈ Warning: Once the bootloader is unlocked, the smartphone will reset to factory settings!
If the utility gives you a "Couldn't unlock" error, check:
- π Connection to USB (Try another cable or port).
- β³ Is it 72 hours since you linked your account (this is Xiaomiβs requirement for new devices).
- π± Mi Unlock Tool compatibility with your firmware (sometimes you need to roll back to an older version) MIUI).
What if the Mi Unlock Tool canβt see the device?
3. firmware selection for Redmi 6A
The correct firmware choice is critical to the stability of the device after installation. There are three types of firmware available for the Redmi 6A:
| Type of firmware | Advantages | Deficiencies | Recommendation |
|---|---|---|---|
| Official MIUI | Stability, OTG support, all camera features work. | An outdated version of Android, a lot of bloatware. | For beginners and those who value reliability. |
| LineageOS (Pixel Experience) | Up-to-date Android, no advertising, more customization. | The fingerprint sensor, NFC or camera may not work. | For experienced users who are ready for bugs. |
| Port from other devices | Unique features (for example, MIUI 14 on old iron). | High risk of "bricking", low stability. | Just for experiments! |
For official firmware, download files with the.tgz or.zip extension from Xiaomi. Look for custom firmware on XDA Developers or 4PDA, paying attention to:
- π Assembly date (up-to-date versions are released every 1-2 months).
- π User reviews (check if there are any critical bugs).
- π± Compatibility with cactus (codename Redmi) 6A).
Important: The firmware for Redmi 6 (codename cereus) is not suitable for Redmi 6A! Installing incompatible software will damage the system partition.
An example of the correct firmware file name: cactus_global_images_V12.0.2.0.QCMCNXM_20210913.0000.00_10.0_global_1d5a0b3b7a.tgz,
where:
cactus
V12.0.2.0.QCMCNXM
10.0
π‘
Before downloading the firmware, check its checksum (MD5) to avoid installation errors due to corrupted files. Compare the hash to what is listed on the donor site.
4. Install firmware via MiFlash (for official versions)
MiFlash is Xiaomiβs official Fastboot firmware utility, which supports Redmi 6A and allows you to install both global and Chinese versions of MIUI.
Step-by-step:
βοΈ Preparing for firmware through MiFlash
- Unpack the downloaded archive with firmware in a folder (for example, C:\cactus_firmware\). Inside should be an image folder with.img files.
- Run MiFlash on behalf of the administrator.
- Connect the Redmi 6A turned off to the PC, holding Volume Down + Power to log into Fastboot.
- In MiFlash, click Select and specify the path to the folder with the unpacked firmware.
- Select firmware mode: Clean all - complete cleaning (recommended for changing the version of MIUI); Clean all and lock - cleaning + lock bootloader (only for official firmware!); Save user data - saving user data (not always stable).
Refresh
Redmi 6A
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!
β οΈ Note: If MiFlash gives you a "flash not done" error, check: Correct firmware (should be for cactus). File integrity (re-download archive and check MD5). Connection to USB (Use the original cable).
π‘
When you run your firmware through MiFlash, always choose Clean all mode if you move from one version of MIUI to another, which will prevent system file conflicts.
5. Firmware via SP Flash Tool (for MediaTek-based firmware)
Redmi 6A on the MediaTek Helio A22 processor can be flashed using the SP Flash Tool, a method suitable for recovering the device after serious failures (for example, if the phone does not turn on or is stuck on the logo).
You'll need:
- π₯οΈ Utility. SP Flash Tool (version 5.2 or later).
- π Firmware in scatter-file format (file) MT6761_Android_scatter.txt).
- π MediaTek Preloader Drivers (manually installed).
Instructions:
- Unpack the firmware and find the file MT6761_Android_scatter.txt.
- Launch the SP Flash Tool, press Choose and specify the path to scatter-file.
- In the list of files, uncheck all items except: preloader (if you are flashing due to download problems), recovery and boot (required for any firmware). system and vendor (main sections of the software).
No push of the buttons
SP Flash Tool
Download
Download OK
Warning: Firmware preloader via SP Flash Tool can lead to a full brick if the process is interrupted.
How to get out of the βbrickβ mode after a failed firmware?
6. Install custom firmware (TWRP + ADB)
Unofficial firmware (like LineageOS or HavocOS) will require custom TWRP recavers, which are more flexible but also more risky.
Steps:
- Download the latest version TWRP for Redmi 6A (file twrp-3.7.0_9-0-cactus.img) from twrp.me.
- Move the file to the folder with ADB (for example, C:\platform-tools\).
- Connect your phone in Fastboot mode and execute the command: fastboot flash recovery twrp-3.7.0_9-0-cactus.img
- Boot to TWRP: Keep Volume Up + Power on when turned on.
- In TWRP, run Wipe β Format Data (enter yes for confirmation).
- Transfer a custom firmware file (e.g. lineage-18.1-20230510-UNOFFICIAL-cactus.zip) to your phone via MTP or ADB Sideload.
- Install the firmware through Install β Select a file β Swipe to Confirm Flash.
- After installation, swipe Magisk (if root is needed) and restart.
The first launch of custom firmware can take up to 20 minutes. If the phone has been stuck on the logo for longer than 30 minutes, repeat the installation.
π‘
Before installing custom firmware, check it for GApps (Google services). If they are not available, download a separate package (such as Open GApps) and run it after the main firmware.
7.Typical errors and their solutions
Even with strict adherence to the instructions, errors can occur.
| Mistake. | Reason. | Decision |
|---|---|---|
| Invalid sparse file format at header (in SP Flash Tool) | A damaged firmware file or incompatible version of the tool. | Download the firmware again, use the SP Flash Tool 5.2. |
| This device is locked (in MiFlash) | The bootloader is not unlocked or locked after firmware is installed. | Repeat unlocking through the Mi Unlock Tool. |
| The phone does not turn on after the firmware | Incompatible firmware or interrupted process. | Try flashing through EDL (requires an authorized Xiaomi account). |
| E: Unknown command [log] (on TWRP) | Damaged recovery section. | Re-sweep TWRP through Fastboot. |
If the IMEI is missing after the firmware or the mobile network is not working, restore it using the engineering menu:
- Enter the dialer: ##4636##.
- Go to Phone Information β Settings β Turn on the radio (if available).
- Use the SN Write Tool to rewrite IMEI (requires a backup of the original IMEI!).
Try another PC or USB 2.0 port (on some laptops, USB 3.0 is incompatible with Fastboot).