Xiaomi A2 (codename jasmine_sprout) β popular 2018 However, many owners face locking problems: a forgotten pattern lock tied to Mi Account after a reset or a locked bootloader when trying to firmware. 2026 Unlocking methods, including official tools from Xiaomi and workarounds for power users.
It is important to understand that procedures vary depending on the type of lock. For example, removing a graphical password does not require unlocking the bootloader, whereas deleting the Mi Account after a hard reset is often associated with working through a hard reset. EDL-We'll look at all scenarios, from simple to complex, with risks and tools.
1. Unlocking of the pattern lock (PIN, password)
If you forget your pattern lock or password on the Xiaomi A2, there are several ways to get back access without losing data, the most reliable is using the associated Mi Account (if it was added to the system).
Algorithm of action:
- π On the lock screen, enter the wrong password / key 5 times in a row. the button Forgot the password will appear?.
- π§ Click on it and select the recovery option via email or phone number linked to your account.
- π Follow the instructions in the letter/SMS password-setting.
If the Mi Account is not tied or you donβt remember the data from it, you will have to do a hard reset via Recovery Mode.
β οΈ Attention: On Xiaomi A2 firmware MIUI 12+ After hard reset, you may need to enter data from the previous Mi Account. If you do not remember them, use the methods in the Mi Account section.
2. Delete Mi Account after reset (FRP)
Factory Reset Protection (FRP)
FRP (Factory Reset Protection) is a factory reset protection that is activated if the device has been linked to Mi Account. After hard reset, the system requires you to enter the username / password from this account. If you do not remember the data or bought the phone "with hand", there are several ways to bypass.
The official way is to contact Xiaomiβs support team with proof of purchase (check, box with IMEI). Unofficial methods require PCs and special utilities:
| Method | Required. | Difficulty | The risk of bricks |
|---|---|---|---|
| SP Flash Tool + Auth file | PC, firmware, authorization file | ββββ | High-pitched |
| EDL-regimen (9008) | PC, cable, MiFlash utility | βββββ | Very tall. |
| Fastboot teams | PC, unlocked bootloader | ββ | Low. |
| Bypassing ADB | PC, USB debugging | βββ | Medium. |
The most reliable way for beginners is to use SP Flash Tool with an authorization file (auth_agent.bin). Step-by-step instruction:
Download firmware for jasmine_sprout (For example, with Xiaomi Firmware Updater)
Install MediaTek drivers (for A2 Snapdragon 660 chipset, but you need universal drivers)
Download SP Flash Tool and authorization file (can be found on 4PDA forums)
Connect your phone in Fastboot mode (clamb Volume down) + Nutrition)-->
Further in SP Flash Tool select the downloaded firmware, specify the path to auth_agent.bin And then you run the firmware. Once you reboot, the Mi Account will be deleted.
β οΈ Note: Using unofficial authorization files may result in blocking IMEI. Check before the firmware. MD5-hash file to match the original.
3. Unlocking the bootloader (Bootloader)
The blocked bootloader on the Xiaomi A2 does not allow you to install custom firmware, obtain root rights or flash the device through Fastboot. The official way to unlock is through the Mi Unlock Tool utility, but it has limitations:
- π Requires a tied Mi Account (at least 30 days older).
- π± The device should be enabled debugging by USB and account binding is permitted.
- β³ Waiting. SMS-The code can take up to 720 hours (30 days) on the first unlock.
Step-by-step:
- Download Mi Unlock Tool (version no lower than 5.5.224.30).
- Turn on your phone: Settings β About Phone β MIUI Version (7 times tap) Settings β Additional β For Developers β Unlock OEM and Debug over USB
- Attach Mi Account to Settings β Accounts β Mi Account.
- Connect your phone to your PC in Fastboot mode (clamp Volume Down + Power).
- Launch the Mi Unlock Tool, log in to your account and follow the instructions.
If the utility gives you an error called "Couldn't unlock" or "Device not connected", check:
- π Cable USB (Better to use the original).
- π₯οΈ Qualcomm drivers HS-USB QDLoader 9008 (install via DriverPack).
- β³ Wait 30 days if your account is new.
π‘
If the Mi Unlock Tool doesnβt see the device, try running it on behalf of the administrator or using version 3.5.1128.43 (on Windows 7/10).
4. Alternative Unlocking Methods (for experienced)
If the official methods don't work, you can use workarounds, which are suitable for cases where:
- π bootloader is blocked and Mi Unlock Tool does not help.
- π± The device does not turn on (brick after a failed firmware).
- π§ You need to get customized recovery (TWRP).
Method 1: Unlocking through EDL (9008)
EDL (Emergency Download Mode) allows you to stitch the device around the locked bootloader. Xiaomi A2 will need:
- π§ Cable USB Type-C (preferably with a shorter EDL).
- π» MiFlash or QFil utility.
- π Firmware in.mbn or.elf format.
Instructions:
- Turn your phone into EDL mode: Turn off the device β Press <Loud up> + <Loud down> β Connect the cable to your PC If the phone is not defined as Qualcomm HS-USB QDLoader 9008, use short (close contacts 1-8 on the board).
- In MiFlash, select firmware and press Flash.
- Wait until the end (10-15 minutes).
β οΈ Attention: Firmware through EDL log-free (auth_agent.bin) It may lead to a blockage. IMEI. Xiaomi. A2 This is only corrected by soldering the chip. EEPROM.
Method 2: Install TWRP without unlocking the bootloader
For some versions of MIUI on Xiaomi A2, there is an exploit that allows you to temporarily get root through DirtyCOW. This allows you to install TWRP and flash Magisk:
How does exploit DirtyCOW work?
Instructions:
- Download. TWRP for jasmine_sprout.
- Connect your phone to a PC with USB debugging enabled.
- Run exploit (such as cowpat or dircow).
- In temporary root access, do: adb push twrp.img /sdcard/ adb shell su dd if=/sdcard/twrp.img of=/dev/block/bootdevice/by-name/recovery
- Reboot to TWRP (clamb Volume Up + Power).
5 Unlocking after the brick
If the Xiaomi A2 does not turn on (black screen, logo getting stuck, "This device is locked"), there is likely a firmware error, and you can restore the device via Fastboot or EDL.
Symptoms and solutions:
| Problem. | Reason. | Decision |
|---|---|---|
| Hanging on the Mi logo | Boot or system damaged. | Swipe stock firmware through Fastboot |
| Black screen, no reaction. | Damaged by uboot or aboot | Switch through EDL with authorization |
| Error "Device is corrupted" | Incompatible firmware | Install the correct version MIUI for jasmine_sprout |
| Not defined by PC | Damaged. USB-port | Check the cable, reinstall the Qualcomm driver |
To recover via Fastboot:
- Download stock firmware for Xiaomi A2 (for example, jasmine_sprout_global_images_V12.0.3.0.QDIMIXM_20210310.0000.00_10.0_global).
- Unpack the archive and move the files to the folder from fastboot.
- Connect your phone in Fastboot mode.
- Run the command: fastboot flash boot.img fastboot flash system.img fastboot flash vendor.img fastboot reboot
π‘
If the phone boots after firmware but there is no network, check the IMEI command *#06#. If the IMEI is missing, restore it via the SN Writer Tool or contact the service center.
6. Frequent errors and their solutions
When unlocking the Xiaomi A2, users often encounter common errors, and here are the most common ways to fix them:
- π "Couldn't unlock" error in Mi Unlock Tool (<30 days), the phone is not tied to the account, debugging is not included USB. Solution: wait. 30 Check the developerβs settings, link the account again.
- π± The phone is not determined in Fastboot/EDL Causes: faulty cable, no drivers, damaged USB-Solution: Use the original cable, install the drivers manually, check the port on the phone.
- β‘ "Flash is not allowed in Lock State" Error Reasons: Locked bootloader, trying to flash custom recovery Solution: unlock the bootloader through Mi Unlock Tool or use EDL.
- π After the firmware disappeared IMEI Reasons: firmware without authorization file, damaged modem partition. IMEI through SN Writer Tool or contact the service.
On the Xiaomi A2 with MIUI 12.5+ firmware, Anti-Rollback (ARB) protection can be triggered after unlocking the bootloader. This means that you can not roll back on older versions of MIUI - the device will lock forever.
7. Video instructions and useful links
For clarity, we recommend to read the video instructions:
- π₯ Unlock the bootloader on Xiaomi A2 (Mi Unlock Tool)
- π₯ Bypassing Mi Account through SP Flash Tool
- π₯ Recovery IMEI post-fix
Useful resources:
- π§ XDA-Developers: Xiaomi section A2 β custom-fix, TWRP, exploit.
- π Xiaomi Firmware Updater β current stock firmware.
- π οΈ 4PDA: Xiaomi A2 β Discussions, instructions in Russian.