How to unlock bootloader when stuck in Fastboot mode?

My bootloader is locked, and I can’t unlock the bootloader because I can’t get out of Fastboot mode. I can’t recover my device now. (Xiaomi Mi A3)
Does anyone know how to unlock a bootloader when it is in this state?

fastboot oem device-info
(bootloader) Verity mode: true
(bootloader) Device unlocked: false
(bootloader) Device critical unlocked: false
(bootloader) Charger screen enabled: false
OKAY [ 0.007s]
finished. total time: 0.008s

Trying to flash recovery (fastboot flash recovery twrp.img
target reported max download size of 804261888 bytes
sending ‘recovery’ (4560 KB)…
OKAY [ 0.108s]
writing ‘recovery’…
FAILED (remote: Flashing is not allowed in Lock State)
finished. total time: 0.114s

I got suggested to modify the devcfg binary and flip the lock bit and reflash through EDL but I have no clue how to do this, any other ideas or anyone familiar with it?

1 Like

Did you set up a Mi Account with the phone? If so you can use EDL mode and the Mi Flash Tool to go back to stock. But you need to have a verified Mi Account for it to be allowed.

1 Like

I don’t think so sadly.

2 Likes

If u power down your device take your usb type c if it’s plugged in unplug it .
With phone off push volume up and volume down at the same time while plugging in your type c cable

1 Like

Mi flash tool may ask u to create an account

If u don’t have one

1 Like

Whats the password?

2 Likes

What password??

1 Like

Ilovejackingoff is the password max said

3 Likes

LMAO that is awesome!
I was just about to say that I bet the zip is password protected.

2 Likes

Oh ic

1 Like

Here try this one

Sorry I’m not sure why it’s like that

1 Like

Thank you, I will try this out tomorrow

2 Likes

Ok good did u get everything installed ok??

1 Like

Hey, do I didn’t yet.
I had some issues in real life but I took care of them lol
I installed the flash tool… what now? I totally forgot everything to do with the phone

1 Like

I’m using Mi Unlock to unlock the bootloader, but when trying to unlock it has an error.

2 Likes

U should to be able to just push unlockat the bottom

1 Like

But I must have oem unlock on in developers option

1 Like

What do you mean?

2 Likes

If u open up your settings go to about device find build number tap it 7 times to turn on dev options then once in dev option scroll down to oem unlock turn it on then use miflash to unlock the booloader

1 Like

It’s… hard bricked.
It doesn’t go further than the fastboot screen

1 Like