Forgot the password from Xiaomi Mi A6 (also known as Mi 6A) and canβt unlock your phone? This situation is familiar to many β according to statistics, one in five users has at least once experienced a smartphone lock. Fortunately, there are several proven ways to bypass the lock for the Mi A6, and not all of them require a complete data reset.
Xiaomi Mi A6 (codename cactus) stands out among other smartphones of the brand in that it runs on pure Android One without the branded shell MIUI. This simultaneously simplifies and complicates the unlocking process: on the one hand, there is no binding to the Mi Account, on the other β standard methods for MIUI do not work here. In this article, we will look at 5 current ways of unlocking, including methods with and without data storage.
Before you start unlocking, make sure that the problem is not a hardware failure: If the phone does not respond to charging, does not vibrate when you press buttons, or the screen remains black despite the connection to the PC, this may indicate a breakdown of the display plume or a battery failure, in which case, unlocking software methods is useless.
If the phone is responding to a connection to a computer (defined as a device in Device Manager) but the screen is locked, go to the instructions below. Let's start with the safest ways that do not lead to data loss.
1. Unlock through Google account (Android 7-8) only
The Xiaomi Mi A6 was originally shipped with Android 7.1 Nougat and later received an update to Android 8.1 Oreo. These versions of the OS run the standard unlock mechanism through a Google account if Smart Lock or synchronization was previously enabled.
To take advantage of this method:
- Enter the wrong password/pattern lock 5 times in a row and the screen will show a message saying "Device locked. Try again in 30 seconds."
- At the bottom of the screen, tap the button "Forgot Password?" (or "Forgot pattern?" for English localization).
- Enter the login and password from the Google account that was linked to the phone.
- Follow the instructions on the screen to create a new password or pattern lock.
β οΈ Note: This method only works if:
- π± The phone is connected to the Internet (via Wi-Fi or mobile network).
- π The device previously enabled synchronization with Google.
- π The smartphone was not reset to factory settings after the last authorization.
If the button "Forgot your password?" does not appear, it means:
- π The phone is disabled sync with Google.
- π‘ No Internet connection (check if the network indicator is on).
- π§ The device has been upgraded to custom firmware (unofficial).
2 Unlocking through ADB (without data loss)
The Android Debug Bridge (ADB) method is suitable if the Mi A6 has previously been enabled to debug over USB.This is the only way to get around the lock without a data reset, but it requires pre-preparedness.
What you'll need:
- π» Computer with installed Xiaomi drivers and package ADB Tools.
- π USB-cable (preferably original).
- π± Phone with a battery charge of at least 30%.
Step-by-step:
- Connect the Mi A6 to your computer via USB.
- Open the command line (Win + R β enter cmd β Enter).
- Enter the command to check the connection: adb devices If the device is determined (the serial number will appear), move on. If not, install the drivers or try another cable.
- Delete the password file with the command: adb shell rm /data/system/gesture.key or PIN-code: adb shell rm /data/system/password.key
- Reboot your phone: adb reboot
Once you reboot, the lock will be reset, and this only works if the USB debugging has been enabled before the phone locks, and if not, move on to the next method.
Install ADB Tools on PC| Download the Xiaomi | Connect the phone with the original cable | Check the battery charge (>30%) | Open the command line on behalf of the administrator-->
3. Recovery Mode reset (data loss)
If previous methods didnβt work, itβs hard to reset through recovery mode, which will remove all data from your phone, including photos, contacts and apps, but will return access to the device.
How to Sign In to Recovery Mode on Xiaomi Mi A6:
- Turn off the phone (press the power button for 10 seconds).
- Press the Power button + Volume up at the same time and hold for 10-15 seconds.
- When the Mi logo appears, release the buttons.
In the Recovery menu, use volume buttons for navigation and power button for selection.
- Select Wipe Data β Wipe All Data (or Factory Reset)
- Confirm the action by choosing Confirm.
- After reset, select Reboot system now.
β οΈ Note: On some versions of the Mi A6 After the reset, you may need to enter data from the last synchronized Google account (protection) FRP). If you donβt remember your password, youβll need to use additional tools to bypass it. FRP (described in section 5).
What if the phone needs an old PIN after resetting?
4 Unlocking via Fastboot (advanced method)
If a standard Recovery reset didnβt help (for example, due to a βNo commandβ error or a requirement to enter a password after a reset), you can use Fastboot mode.
Tools required:
- π» PC with Fastboot installed and Xiaomi drivers.
- π Cable USB (preferably original).
- π Firmware file for Mi A6 (You can download from the official Xiaomi website).
Step-by-step:
- Turn off your phone and turn it into Fastboot: Press the Power Button + Volume down for 10 seconds. When the image of a rabbit in a hat appears, connect the phone to your PC.
Fastboot
fastboot devicesMake sure the device is identified (serial number should appear).
fastboot oem unlockNote:
Mi A6
Xiaomi
filename.zip
fastboot flash all filename.zipfastboot rebootβ οΈ Note: Fastboot firmware completely erases all data, including internal memory. If you need to save files, try the method with the first ADB (section).
π‘
If the fastboot oem unlock command gives an error, try first unlocking the bootloader through the official Mi Unlock Tool app.
FRP (Google Account Verification) bypassing FRP
Once reset via Recovery or Fastboot, the Xiaomi Mi A6 may require data input from the last Google account that was synced to the device.This is Factory Reset Protection (FRP) protection, and you can bypass it in several ways.
Method 1: Through Wi-Fi settings (powered by Android 7-8):
- On the account check screen, tap on the email input field.
- In the keyboard that appears, press and hold @, then select "Keyboard Settings".
- Go to "Additional Settings" β "Resettings" β "Resetting keyboard settings".
- Go back and try adding a new Google account.
π‘
If none of the methods worked, there may be a hardware problem (e.g., a damaged memory chip), in which case only the service center will help.