How to unlock Xiaomi Redmi 6A: from password to bootloader (Step-by-step)

Xiaomi Redmi 6A remains one of the most popular budget smartphones even years after its release due to the reliability, simplicity and support of custom firmware. However, owners often face lock problems: a forgotten pattern lock, a blocked Mi Account, or the inability to unlock the bootloader to install alternative software. In this article, 5 current ways to unlock, taking into account the features of the Redmi 6A model (codename cactus).

It is important to understand that the methods vary depending on the type of lock:

  • πŸ”’ Screen locking (PIN, pattern lock, password)
  • πŸ“± Blocking your Mi Account (after resetting or buying a used phone)
  • πŸ”§ Locking the loader (for installation) TWRP ornamental)

Each case requires a different approach, from a simple reset via Recovery to using official Xiaomi tools or bypassing through ADB.

Before you start, check:

  • ⚑ Battery charge (at least 50% to avoid shutdown during the process)
  • πŸ”Œ Availability of original USB-cables (cheap cables may not transmit data)
  • πŸ’» Access to a Windows computer (for most methods)

Redmi 6A

MediaTek

πŸ“Š What kind of blockage did you encounter?
Forgot the screen password.
Phone requires Mi Account after reset
We need to unlock the bootloader.
Another problem.

1. unlock the screen without loss of data (if enabled) USB-debugging)

If Redmi 6A has been activated to debug USB (Settings β†’ About Phone β†’ MIUI β†’ 7 taps by build number β†’ For developers β†’ Debugging by USB), you can delete the file with the password via ADB. This method only works when you connect to a previously authorized computer.

Step-by-step:

  1. Connect your phone to your PC via USB (use the rear USB 2.0 port for stability).
  2. Open the command line (Win + R β†’ enter cmd).
  3. Enter the commands in turn: adb devices (to display your device) adb shell su rm /data/system/gesture.key rm /data/system/password.key rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboot

Once you reboot, the lock screen will disappear. Importantly, if the debugging hasn't been activated beforehand, this method won't work, move on to the next section.

Make sure USB debugging is enabled |Install Xiaomi drivers on PC| Download ADB Tools (platform-tools) |Connect your phone with the original cable-->

2.Reset via Recovery (data loss but no Mi Account)

If USB-debugging is not activated, and the phone is locked with a pattern lock or PIN-The only official way to do this is to reset hard through Recovery Mode. 6A This menu is available even without the unlocked bootloader, but after the reset, the phone will require you to enter your Mi Account data if it was previously linked.

How to get in to Recovery:

  1. Turn off the phone (press Power + Volume up for 10 seconds).
  2. Keep Power + Volume up until the Mi logo appears.
  3. From the menu, select Wipe Data β†’ Wipe All Data (manage volume buttons, confirmation – power button).

Once reset, the phone will reboot to the box-like state. If you previously linked your Mi Account, you will be asked to enter your login/password. You can't get around this without an official unlocker - read section 4.

What happens if Recovery does not open?
If after holding the buttons the phone vibrates, but the menu does not appear: 1. Check that the cable is not connected to charging / PC (sometimes this blocks the input). 2. Try to hold the buttons longer (up to 20 seconds). 3. On some firmwares you need to first pinch Volume up + Power, and after vibration release Power, holding Volume up.

3 Unblocking your Mi Account after reset (official way)

If Redmi 6A requires Mi Account details that you don’t remember or the phone is hand-held, it can only be officially unlocked through Xiaomi, and informal methods (like firmware via SP Flash Tool) on this model often lead to a hard brick, which is completely inoperable.

Official procedure:

  1. Go to account.xiaomi.com and try to restore access via email/phone.
  2. If your account is not yours, contact the previous owner for the data.
  3. When buying a used phone without account data, ask the seller for checks on unlocking (they can be obtained through the unlock service).

Cost and timing:

ServiceTermCost (2026)
Unblocking your Mi Account (via the service center)3-7 days1 500–3 000 β‚½
Official Loader Unlocker7-14 daysFree (but requires waiting)
Unofficial unlocking (risk of bricks)1-2 hours500–1 000 β‚½ (forum-wise)

⚠️ Attention: On Redmi 6A newer-stitched MIUI 12 attempts to flash the device through SP Flash Tool without authorization of the Mi Account leads to blocking Anti-Rollback.

4. Unlocking the bootloader for firmware (for experienced users)

If the goal is to install TWRP or custom firmware (like LineageOS), you will need to unlock the bootloader. On Redmi 6A, this is only possible through the official Mi Unlock Tool, but with a number of restrictions:

Requirements:

  • πŸ“± Linked and confirmed Mi Account (unblockable without it).
  • πŸ”— The phone should be in Fastboot mode (clamb Volume down). + Nutrition).
  • ⏳ Expect 7-360 hours (depending on account activity in the Xiaomi ecosystem).

Step-by-step process:

  1. Download Mi Unlock Tool (Windows version)
  2. Sign in to the tool under the same account as on the phone.
  3. Connect Redmi 6A in Fastboot mode (a screen with a rabbit and the words Fastboot).
  4. Press Unlock and wait until it is completed (it may take several attempts).

1. Use a different version of the tool (e.g. 5.5.224.24).

2. Connect the phone to another USB-port (preferably 2.0).

3. Disable antivirus and firewall on PC.-->

5. Alternative methods (at your own risk)

If the official methods have not worked, there are non-guaranteed workarounds that can both help and ultimately kill the phone, and should only be used if the device is already in a soft brick state (not turning on, but responding to a PC connection).

Ways for Advanced Users:

  • πŸ”§ Firmware through SP Flash Tool – requires authentication bypass file (available on forums such as 4PDA or XDA). Risk: Hard brick with error.
  • πŸ”„ Reverse to old firmware (for example, MIUI 10) via Fastboot – sometimes allows you to bypass the account lock.
  • πŸ“± Use exploit (e.g. DirtyCOW) to temporarily obtain root rights and delete lock files.

Example of a firmware command via Fastboot:

fastboot flash boot boot.img


fastboot flash recovery recovery.img




fastboot flash system system.img




fastboot erase userdata




fastboot reboot

⚠️ Attention: On Redmi 6A with a MediaTek Helio processor A22 Firmware that is incorrect preloader results in a complete loss of communication with the device. Always check the firmware files of the cactus model.

Frequent mistakes and their solutions

When you unlock Redmi 6A, users often face typical problems, and here are the most common ways to fix them:

Error: "This device is locked" in Fastboot

  • πŸ”Ή Make sure your Mi Account is confirmed (there is a linked phone number).
  • πŸ”Ή Try logging in to Mi Unlock Tool on another PC.
  • πŸ”Ή Wait 72 hours – sometimes Xiaomi blocks unlock after several failed attempts.

Error: "Invalid token" in the SP Flash Tool

  • πŸ”Ή Download the current authentication file for your firmware version.
  • πŸ”Ή Use LibUSB drivers instead of standard ones.
  • πŸ”Ή Try to stitch through MTK Bypass Tool (available on GitHub).

πŸ’‘

On Redmi 6A, you can't unlock the bootloader without being tied to your Mi Account, which is a hardware limitation of the MediaTek chip. All "circumvent" methods without an official tool risk turning the phone into a "brick".

Can I unlock Redmi 6A without losing data?
Yes, but only if it was on. USB-The debugging and the phone were previously connected to this PC, and otherwise, the data will be erased when reset via Recovery or firmware.
What to do if I forget my password from my Mi Account?
Restor access through the recovery page. If your account is not yours (the phone is purchased used), contact the previous owner or Xiaomi service center with a check for the purchase.
Why is Mi Unlock Tool showing "Waiting for 168 hours"?
This is a standard Xiaomi restriction for new accounts, which can be reduced to 72 or even 24 hours if the account is actively used (contact sync, purchases in the Mi Store, etc.).
Can I run Redmi 6A through TWRP without unlocking the bootloader?
No. On this model, TWRP requires an unlocked bootloader, and trying to flash custom recovery without unlocking will result in a bootloop.
What is Anti-Rollback and why does it block firmware?
Anti-Rollback is Xiaomi's protection against rollbacks on older firmware. On Redmi 6A, it activates when you try to flash a MIUI version older than the one originally installed.