Installing TWRP on Xiaomi Redmi 6A: a complete guide to unlocking the bootloader

The Xiaomi Redmi 6A (codename cactus) is still a popular budget smartphone among custom firmware enthusiasts. TWRP Recovery provides access to root rights, NANDroid backups, custom ROM firmware (like LineageOS or Pixel Experience) and a host of other features, but the process has nuances, from unlocking the bootloader to choosing the right version of TWRP for your device revision.

In this guide, we will take the entire process through the steps from preparation to final validation, and focus on common errors (such as anti-rollback or invalid image format) that often occur on the Redmi 6A due to the features of the MIUI firmware. If you are a beginner, don’t skip sections about backup and bootloader version validation, this will save you hours of recovery.

1. Device Preparation: What to Do Before Installing TWRP

Before you start firmware, make sure your Redmi 6A is ready to be manipulated.Missing this stage can result in a device blink (total inoperability) or data loss.

First, check the MIUI version and build number in the Settings β†’ About Phone menu. It is critical for Redmi 6A to know the board revision (e.g. V9.6.1.0.ODBCNFD or V10.2.3.0.ODBCNXM), as some versions of TWRP are incompatible with new firmware due to Xiaomi’s policy of blocking legacy backpacks through the anti-rollback mechanism.

  • πŸ“± Make a backup of all important data (photos, contacts, SMS). Use Mi Cloud, Google Drive, or physical copying on PC.
  • πŸ”‹ Charge the battery to at least 70%. interruption of the process due to battery discharge can cause damage to the boot partition.
  • πŸ”§ Install drivers for Xiaomi on PC. Download Mi Unlock Tool and Android SDK Platform Tools (for fastboot and adb).
  • πŸ” Check the model through the command fastboot getvar product – should display cactus.

If you’ve been updating Redmi 6A via OTA, you may have a firmware with a locked bootloader installed on your device (even if it’s been unlocked before), which will require re-unblocking – more on that in the next section.

πŸ“Š You have already unlocked the bootloader on your Xiaomi?
Yeah, long ago.
Yeah, but I don't remember how.
No, I'm just going to.
I don't know what that is.

2. Unlock the bootloader: bypassing the restrictions of Xiaomi

Xiaomi blocks the bootloader on all devices by default. To install TWRP, it must be unlocked through the official Mi Unlock Tool. The process can take from a few minutes to 720 hours (30 days) - it all depends on Xiaomi's policy and the status of your Mi Account.

Important: Xiaomi has tightened the requirements since 2023, and now unlocking requires:

  1. Link the device to your Mi Account in the Settings menu β†’ Xiaomi Account β†’ Mi Cloud β†’ Find the device.
  2. Enable OEM Unlock in Settings β†’ Additional β†’ For developers (if no point, activate Developer Mode by pressing the MIUI Version 7 times).
  3. Connect your device to the Internet via a mobile network (Wi-Fi may not work).

After preparation:

  1. Turn off your phone and press Power + Volume Down to log into Fastboot.
  2. Connect Redmi 6A to your PC and start the Mi Unlock Tool.
  3. Sign in with the same Mi Account as you do on your phone.
  4. Press Unlock and wait until it is completed (it may be necessary to try again in a few days).

⚠️ Warning: If the Mi Unlock Tool gives you an error "Couldn't unlock. Current account is different from the account info on the device," check that the phone and tool use ONE account.

πŸ’‘

If you're dragging it out, try using fastboot oem device-info -- if Device unlocked: false, you're still locked. Try it every 24 hours.

3.Selecting a TWRP version for Redmi 6A (cactus)

Not all TWRP builds are compatible with Redmi 6A. Using the wrong version can lead to a soft breeze (the device only loads in fastboot) or partition mounting errors.

TWRP versionCompatibility with MIUISupport for section A/BDownload link
3.6.2_9-0MIUI 10–12No.Official website
3.7.0_12-0MIUI 12–14 (with patch)Yes.XDA Developers
3.5.2_9-0 (obsolete)Only MIUI 9-10No.Not recommended

For most users, the best choice is β€” 3.6.2_9-0. If you MIUI 13/14, You will need an additional patch to bypass anti-rollback (instructions in the section) 5).

Download the.img file and rename it twrp.img for convenience. We also recommend downloading OrangeFox Recovery (an alternative to TWRP) - it works better with new versions of MIUI on Redmi 6A.

What is anti-rollback and why does it interfere with TWRP installation?
Anti-rollback is a firmware rollback protection mechanism implemented by Xiaomi in MIUI 10+. If you are trying to flash the TWRP assembled for the older version of MIUI onto a device with a new firmware, the bootloader blocks the process and can blink the phone. To get around this, you either need to use a patched backup or roll back to a compatible version of MIUI (risky!).

4. Install TWRP via Fastboot: step-by-step instruction

Now, let's get to the firmware. You're going to need:

  • πŸ–₯️ PC ADB and Fastboot (from Android) SDK).
  • πŸ“± Redmi 6A with unlocked loader and enabled debugging USB.
  • πŸ”— File. twrp.img fastboot.

Open the command line in the fastboot folder and execute commands in order:

adb reboot bootloader


fastboot flash recovery twrp.img




fastboot boot twrp.img

The last command temporarily loads TWRP without firmware into the permanent memory, which is important because MIUI can overwrite the Recovery on the first boot, to lock the TWRP, after entering the Recovery:

  1. Go to Mount β†’ Enable MTP (to see your phone files on your PC).
  2. Copy the file to your phone. disable_miui_anti_rollback.zip (if necessary).
  3. In TWRP, select Install β†’ Select file β†’ Scroll to the right.
  4. Reboot to Recovery (Reboot β†’ Recovery)

Device in Fastboot mode|Drivers. ADB/Fastboot fixed|File. twrp.img fastboot|Battery charged. >50%|Backup copy of data created-->

⚠️ Note: If after the firmware TWRP The phone is loaded into the stock recavator, so MIUI I re-recorded it. In this case, repeat the command fastboot boot. twrp.img And pass right through disable_miui_anti_rollback.zip, if you use MIUI 11+.

5. Solve errors in installing TWRP on Redmi 6A

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

  • 🚫 Mistake. FAILED (remote: 'Flashing is not allowed in Lock State' - Repeat the process with the Mi Unlock Tool.
  • πŸ”„ Cyclical loading in TWRP Delete the file. /data/.twrp via File Manager in the same way TWRP, then reboot.
  • πŸ”Œ Device is not defined in fastboot Check drivers (use 15 Seconds) ADB Installer) or change USB-cable.
  • πŸ“± Black screen after firmware Try to pinch the Power + Volume Up 10-15 seconds for forced reboot.

If TWRP is successfully installed but not partitioned (Data, System), you probably have MIUI 12+ with File-Based Encryption (FBE) encryption.

  1. In TWRP, go to Wipe β†’ Format Data (this will delete all data!).
  2. Reboot to the recavery and check the mounting.
  3. If it didn't help, go ahead. disable_forceencrypt.zip.

πŸ’‘

On Redmi 6A with MIUI 13/14, be sure to use TWRP version 3.7.0+ with an anti-rollback patch. Older versions of the cover lead to a blink!

6. Additional settings after installing TWRP

After successful firmware, it is recommended to perform several actions for stable operation:

  • πŸ” Create a backup NANDroid: In TWRP Select Backup and mark Boot, Data, System. Save backup to SD-card.
  • πŸ”„ Turn off automatic update of the recovery: MIUI Go to Settings. β†’ The phone. β†’ Updating the system β†’ Three points. β†’ Settings and disable Auto Update.
  • πŸ›‘οΈ Install Magisk for root rights: Download the latest version Magisk.zip from GitHub and run through Install to TWRP.

If you plan to flash custom firmware (like Havoc-OS or ArrowOS), first check its compatibility with your Redmi 6A revision. Some ROMs require vendor and firmware firmware to be firmware separately.

To check the functionality of the root rights after installing Magisk, use the command:

adb shell su

If you have permission requests on your phone, everything is set up correctly.

7.How to return stock Recovery (if necessary)

If you need to return the original recovery (for example, for warranty repairs), download stock recovery.img for your version of MIUI from the Xiaomi Firmware Updater website.

Write it through fastboot:

fastboot flash recovery stock_recovery.img


fastboot reboot

Please note that after this:

  • Re-unlock the bootloader to install TWRP.
  • If you have been stitching custom firmware, returning to the drain recavery can result in a hang on the MI logo (a complete reset is needed).

⚠️ Note: On some versions MIUI 14 Returning to the drain Recovery automatically blocks the loader. To avoid this, run the fastboot flash boot command before the firmware. stock_boot.img (where stock_boot.img β€” Original boot from your firmware).

Frequently Asked Questions (FAQ)

❓ Can we determine TWRP on the Redmi 6A loader-free?
No. Xiaomi blocks the entry to recovery and boot sections on the locked bootloader. Any attempts to circumvent this software (for example, through exploits) lead to the device's brilliance. The only official way is the Mi Unlock Tool.
❓ Why After Installation TWRP phone not loaded into the system?
This is due to: Incompatibility of the version TWRP yours MIUI (You need to flash another version of the data partition damage (try Format Data in the data partition). TWRP). No anti-rollback patch on new firmware.Solution: boot into TWRP (fastboot boot twrp.img) and sew disable_miui_anti_rollback.zip, then reboot.
❓ How to update TWRP on the Redmi 6A?
The update is done in the same way as the original installation: Download the new version of twrp.img. Download to the current TWRP. Transfer the new twrp.img to your phone. In TWRP, select Install β†’ Install Image β†’ Select twrp.img β†’ Recovery. Reboot to Recovery. Don't upgrade TWRP via fastboot flash recovery over the old version - this can lead to conflicts.
❓ Does Google Pay work after installation? TWRP Magisk?
Not if you have activated root rights. Google Pay and other banking applications (e.g. SberBank Online) block work on devices with unlocked bootloader or root access. Solutions: Use MagiskHide (built into Magisk 20.4+) and add Google Pay to the list of hidden apps. Sweep through Universal SafetyNet Fix in Magisk. Return stock receptacles and boot.img (but lose the root).
❓ Can I stitch it? TWRP on the Redmi 6A through ADB Sideload?
Technically, yes, but it's not recommended. Firmware via adb sideload can lead to partition mounting errors, as TWRP must be installed in the recovery section via fastboot. If you don't have access to a PC, use alternative methods (like the Flashify app), but the risk of errors is higher.