Related
Hello all!
I recently bought a second hand Xiaomi MI A2 online however I found a problem.
The previous owner did a factory reset on it but I'm stuck in the initial set up configuration because it asks me for the google account credentials attached to the phone. I texted the previous owner but had no answer.
So I tried to flash the official ROM to bypass the issue but I get an error message from Xiaomi Flash Tool saying "remote: Flash is not allowed in Lock State".
I think this is happening for one of the following reasons:
The previous owner didn't enable USB Debugging (thing I can't do because I'm stuck in the set up configuration)
The bootloader is locked (and I can't unlock it because I don't have the credentials of the attached account)
Does anyone knows how can I solve this problem?
Thank you for your attention
Joaosacramento said:
Hello all!
I recently bought a second hand Xiaomi MI A2 online however I found a problem.
The previous owner did a factory reset on it but I'm stuck in the initial set up configuration because it asks me for the google account credentials attached to the phone. I texted the previous owner but had no answer.
So I tried to flash the official ROM to bypass the issue but I get an error message from Xiaomi Flash Tool saying "remote: Flash is not allowed in Lock State".
I think this is happening for one of the following reasons:
The previous owner didn't enable USB Debugging (thing I can't do because I'm stuck in the set up configuration)
The bootloader is locked (and I can't unlock it because I don't have the credentials of the attached account)
Does anyone knows how can I solve this problem?
Thank you for your attention
Click to expand...
Click to collapse
Maybe you can see/ask in this thread for mia2 toolkit (I'm not sure but you can ask there )
https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585
daitalos said:
Maybe you can see/ask in this thread for mia2 toolkit (I'm not sure but you can ask there )
https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585
Click to expand...
Click to collapse
Thank you, will give it a try!
EDIT: Not working, every time I try to execute the unlock I got an error message "remote: Flashing Unlock is not allowed"
Joaosacramento said:
Thank you, will give it a try!
EDIT: Not working, every time I try to execute the unlock I got an error message "remote: Flashing Unlock is not allowed"
Click to expand...
Click to collapse
(yes...normally, first you must enable "OEM unlocking" from developer option
_ https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-unlock-bootloader-xiaomi-t3831484
__but first for your problem with locked device, see here for FRP apk : https://www.google.gr/search?q=com.....69i57j0l5.14869j0j8&sourceid=chrome&ie=UTF-8
__and here frp mia2 : https://www.google.gr/search?q=frp+.....69i57j0l3.7035j0j8&sourceid=chrome&ie=UTF-8
first "unlock" your device & then you can unlock bootloader easy ....
sry for english
Just unlock bootloader(critical too) and use miflash
I also have a Mi A2 stuck in android logo screen can't can't boot into device developer options to unlock bootloader.
Fastboot oem unlock give me error flashing is not allowed.
Is there anyway around this?
You need to do an unlock of critical partitions - "fastboot flashing unlock_critical"
daitalos said:
(yes...normally, first you must enable "OEM unlocking" from developer option
_ https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-unlock-bootloader-xiaomi-t3831484
__but first for your problem with locked device, see here for FRP apk : https://www.google.gr/search?q=com.....69i57j0l5.14869j0j8&sourceid=chrome&ie=UTF-8
__and here frp mia2 : https://www.google.gr/search?q=frp+.....69i57j0l3.7035j0j8&sourceid=chrome&ie=UTF-8
first "unlock" your device & then you can unlock bootloader easy ....
sry for english
Click to expand...
Click to collapse
Hey! It worked, thank you very much!
Face_11 said:
I also have a Mi A2 stuck in android logo screen can't can't boot into device developer options to unlock bootloader.
Fastboot oem unlock give me error flashing is not allowed.
Is there anyway around this?
Click to expand...
Click to collapse
https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585
(or flash stock rom via mi flash tool/ fastboot files) : http://en.miui.com/download-353.html
follow / read fastboot quide : http://en.miui.com/a-234.html
daitalos said:
https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585
(or flash stock rom via mi flash tool/ fastboot files) : http://en.miui.com/download-353.html
follow / read fastboot quide : http://en.miui.com/a-234.html
Click to expand...
Click to collapse
Thanks. I've tried the MIFlash Tool and I get Error Flashing Not allowed in Lock State. I've also tried the MI A2 ToolKit and get the same message. Basically anything I try and do states device is locked or unable to run in Lock State.
Boot Loader is currently locked and I cannot access developer mode to enable OEM unlocking. Question I have is :
- Can I use EDL Cable to work around this or do EDL cables not longer work with Newer Xiaomi phones?
- If EDL cable doesn't work, is the tespoint method my only option.
thanks in advance
Face_11 said:
Thanks. I've tried the MIFlash Tool and I get Error Flashing Not allowed in Lock State. I've also tried the MI A2 ToolKit and get the same message. Basically anything I try and do states device is locked or unable to run in Lock State.
Boot Loader is currently locked and I cannot access developer mode to enable OEM unlocking. Question I have is :
- Can I use EDL Cable to work around this or do EDL cables not longer work with Newer Xiaomi phones?
- If EDL cable doesn't work, is the tespoint method my only option.
thanks in advance
Click to expand...
Click to collapse
yes it's difficult .... I understand
edl maybe work, but I'm not sure...maybe if you go to a repair shop is a better solution
(see & here : https://forum.xda-developers.com/mi-a2/help/edl-deep-flash-cable-t3828732 )
https://youtu.be/n_7RVmW2Rvs
https://forum.xda-developers.com/showpost.php?p=77327325&postcount=2
Gl
Face_11 said:
Thanks. I've tried the MIFlash Tool and I get Error Flashing Not allowed in Lock State. I've also tried the MI A2 ToolKit and get the same message. Basically anything I try and do states device is locked or unable to run in Lock State.
Boot Loader is currently locked and I cannot access developer mode to enable OEM unlocking. Question I have is :
- Can I use EDL Cable to work around this or do EDL cables not longer work with Newer Xiaomi phones?
- If EDL cable doesn't work, is the tespoint method my only option.
thanks in advance
Click to expand...
Click to collapse
I would try a wipe from the recovery but if that doesnt work then just test point the phone. It isnt that hard, I had to do it myself today because of a soft brick. You just need a T3 screwdriver really. Take out the 2 bottom screws. Take a razor and slide it under the corner of the display and lift it enough the get a credit card in there. Then just work around and you should be able to get the screen off. Take the small metal plate off just above the battery and disconnect the battery and the connector on the right. There will be the test points, short them out, connect the phone to the pc(you can stop shorting out the points when it gets detected) and you have like 10-15secs to start flashing the phone in miflash(obviously you need to have the drivers already set up).
I have same problem with xiaomi mi a2 which had bootloop. Was not able to start device at all so no oem unloco no developer options and no usb debug. It was possible only adb sideload and fastboot. Adb sideload did nothing. I was trying to flash with adb sideload but it stops at 47% with message 1.00 x. Did try several roms with same results. Then i tried fastboot options. Falied to unlock not allowed. Itsl was impossible to get even into phone to activate developer options so i can activate oem unlock and the rest. I tried edl mode which did flash but then i got error message in bootloader it failed to mount system etc. Then i tried mi x6 rom to convert phone to another which doesnt have usual recovery mode but a stripped oem recovery mode. Now when u go back to mi a2 rom its bricked so there is no option of adb at all now. I tried to use mi x6 mi assistant option but app wont recognize usb connection it shows try normal mode then switch. When activating mi assistant on phone it does recognize rom version from recovefy flash in mi assistant app but when it downloads update rom version it cant continue. With pixel you can do anything with adb and it is so easy but xiaomi sucks big time. You cant do anything. Fastboot flashing unlock critical and fastboot oem unlock gets error failed. Flashing not allowed. U tried diferent cables but no luck. So now what? Thats why i hate adb. On samsung odin you can do impossible possible. Even with sp tools on mtk. Even boxes works flawlessly but xiaomi system is just thr worse. It doesnt matter if you get soemthing lost there is always a solution to other phones.
After having device sit as a paper weight for a few months, i broke down and ordered a phone repair kit. Opened device up and flashed via test point method. Worked Flawless. Time to enable OEM unlock so i don't have to open it up again. Thanks to community for all the help.
Use cmd
- go to fastboot then "fastboot oem unlock"
- go to fastboot again "fastboot flashing unlock_critical"
Flash with mi flash
Done
Just stumbled upon this and while may be 18 months too late, here's the step by step process to flash ROM on MI A2 that's giving error "Flash is not allowed in Lock State":
1) switch off device
2) enter fastbood mode (press hold power+vol down few seconds)
3) connect device with laptop
4) install and open adb folder on laptop (https://forum.xda-developers.com/showthread.php?t=2588979)
5) within adb folder -- shift + right click = open powershell here
6) fastboot flashing unlock_critical
7) step #6 may be pointless if phone is bricked but do it anyway
8) fastboot oem edl
9) find and download latest stock rom for your device (FASTBOOT version). It'll be .tgz file
10) extract the image folder from within (would be the same name as .tgz file)
11) open miflash (coudln't find link but look it up, it's easy)
12 select the image folder you extracted in step #10
13) click refresh. device name appear means it's recognized
14) from bottom of mi flash tool select whatever you want. I do "clean all"
15) flash (top right mi flash tool)
Face_11 said:
Thanks. I've tried the MIFlash Tool and I get Error Flashing Not allowed in Lock State. I've also tried the MI A2 ToolKit and get the same message. Basically anything I try and do states device is locked or unable to run in Lock State.
Boot Loader is currently locked and I cannot access developer mode to enable OEM unlocking. Question I have is :
- Can I use EDL Cable to work around this or do EDL cables not longer work with Newer Xiaomi phones?
- If EDL cable doesn't work, is the tespoint method my only option.
thanks in advance
Click to expand...
Click to collapse
Flashing is not allowed in lock state
i got a error recently in my mi a2 no software is installed but locked.
when i try to flash from mi flash tool it says flashing is not allowed in lock state
when i try to unlock in cmd flashing is not allowed in lock state
is there any one to fix this
IamUmesh said:
i got a error recently in my mi a2 no software is installed but locked.
when i try to flash from mi flash tool it says flashing is not allowed in lock state
when i try to unlock in cmd flashing is not allowed in lock state
is there any one to fix this
Click to expand...
Click to collapse
you need to open phone with screwdriver & do the test point ..search for video on YouTube...then EDL deepflash state you can use miflash to put back OFFICIAL only rom to device.
I was using my mi a2 and it randomly freezed, then i restarted using power button, but he didn't turned on, now it is just black screen and i can't get into bootloader mode or turn the phone on.
Bootloader was locked, never tried to unlock.
I think it got stuck on EDL mode because it shows up 'qualcomm hs-usb qdloader 9008' on device manager on windows.
Already tried to use mi flash tool to flash the last ROM, it recognize the phone but fails every time.
Neither adb or fastboot recognizes the phone.
Some errors that i had using the tool:
Failed to open the SDCC Device slot 0 partition 0 (it shows up only on version 2019.11.15.0)
Cannot receive hello packet (when i get this error, i hold the power button for a few seconds then i try again only to get the error below)
Error when flashing storsec.mbn
Can someone help me?
UPDATE
I downloaded mi flash tool 2016.08.30.0 and i can successfuly flash the rom, but still got black screen with no response.
I ve little same issue. need help too.
I have Mi A2 runnig on android8.1
but it didnt update 9.0
so I try with twrp but fail no boot anymore.
I use miFlash tool. accdently I locked phone. flashed rom didnt boot.
now I ve just fastboot mode. or open 'android one' screen and then goes black.
I try EDL mode by test point inside phone.
flash with 2018 mi Flash tool but stuck in flashing...
flash with 2016 mi Flash tool write succesful flashed afte 6min. but not boot.
I read 2 days on forums. cant find anything to do.
is there any solution?
thanks
Hi, has anyone made any progress?
Theduardds said:
I was using my mi a2 and it randomly freezed, then i restarted using power button, but he didn't turned on, now it is just black screen and i can't get into bootloader mode or turn the phone on.
Bootloader was locked, never tried to unlock.
I think it got stuck on EDL mode because it shows up 'qualcomm hs-usb qdloader 9008' on device manager on windows.
Already tried to use mi flash tool to flash the last ROM, it recognize the phone but fails every time.
Neither adb or fastboot recognizes the phone.
Some errors that i had using the tool:
Failed to open the SDCC Device slot 0 partition 0 (it shows up only on version 2019.11.15.0)
Cannot receive hello packet (when i get this error, i hold the power button for a few seconds then i try again only to get the error below)
Error when flashing storsec.mbn
Can someone help me?
UPDATE
I downloaded mi flash tool 2016.08.30.0 and i can successfuly flash the rom, but still got black screen with no response.
Click to expand...
Click to collapse
A year ago i had the same issue kinda. The only thing that worked for me was flashing mi 6x stock rom and after some trial an error it flashed and it fixed. The only problem is i have a mi 6x forever. Basically download mi 6x stock rom. Try that mi flash tool and keep hard rebooting and click flash button right after it vibrates. If lucky sometime will work and flash. If nothing try older versions of mi flash tool. Good luck.
all of you have the same problem ... you bootloop into edl mode because you have ARB4 triggered ..that means the only stock you can flash in miflash is ARB4 rom ( latest most up to date )
you also need patched programmer file since flashing ARB4 requires miui account
the fix to this problem is documented everywhere and explained lots of times ...just read ..follow this guide and one-click tool to unbrick
next time read ......a little ..
https://miui.blog/mi-6x/unbrick-mi-6x-wayne/
Hey guys,
just received this phone from a friend and am trying to fix it.
I can boot into system, which crashes about 1sec after displaying the first welcome animation after the boot screen and just reboots then.
I can also boot into Recovery and Fastboot but the bootloader is LOCKED. To unlock it I would have to first add the account in developer settings, but I cant reach that screen at all.
What are my options here? Flashing official roms via MIFlash is not doing anything (4sec flash, green success message but no reboot, and no change) and I cant flash anything else due to the locked BL?!
Ordinary folk can't flash fastboot ROMs with a locked bootloader. It can only be done by EDL flashing, which requires an authorised account.
You need to open the back and use the test pin method to put the phone in EDL mode. The location of the pins are near the battery, a YouTube video will show you the exact location and which pins to bridge.
Despite numerous guides suggesting it's possible for anyone to EDL flash the phone using Qualcomm tools, I've never yet heard of anyone getting it to work. The only way to EDL flash is via an authorised account. You will need to ask on the K20 Pro telegram group for details of someone who has an authorised account. Depending on who you find, you'll need to pay between $20 - $40 US. They will then arrange a time with you when they can remote onto your PC and flash the phone for you, with their account.
I gave the same advice on here a couple of weeks ago and they found someone to do it for $22 fairly quickly.
[Bricked] TWRP doesn't mount flash drive, PC doesn't recognise in fastboot, TWRP doesn't work with MTP
I've wiped my phone, no realising TWRP doesn't actually work with MTP or a flash drive. I've been using the flash drive when it was booted, before the wipe. So the port is fine. Flashing a recovery via fastboot just leads to an infinite loop of...
forum.xda-developers.com
Yesterday I unlocked my phone with the official Xiaomi unlock tool, Then it wiped everything, after setting my phone up, I flashed TWRP (not for my device but for redmi k20, I thought 9T and K20 is the same) and now I'm stuck on fastboot, I tried power button + volume buttons but still stuck on fastboot, I tried adb but still stuck, I tried Reiboot for Android but still stuck. So I used XiaoMiTool V2 (unofficial) and selected 'my device is bricked' then it asked me to select what device am I using, I selected k20 bc I thought it's the same with redmi power, after downloading a rom for an hour, it tries to install but fails because it detects that it's not k20, so I closed it and rebooted my device, now my device only shows the charging battery icon, can't boot into fastboot, can't boot into anything, PC can't detect my phone including adb. Please help me (for free), I really need your help. Thanks!
Your mistake was booting a wrong twrp and then a wrong fastboot rom. You could have saved your device when it was in fastboot mod by flashing an official fastboot rom for your device. But now your device seems hopeless. I think you have no option but to send it to a service center.
In this Case, buy only from Trusted Places! Or Learn how to Flash properly.
If the bootloader is unlocked...
Flash vbmeta.img
Then flash the suitable recovery for 9 power... It might boot to recovery then
Hi i just oficialy unlocked bootloader, flashed twrp recovery boot and restarted phone. After that restart, phone got stuck in loop rebooting to MI logo. Recovery and Fastboot not loading when i press right buttons. Phone just vibrate and keep restarting. I had to dry off battery to turn it off becouse when i connect phone to cable it auto turn on and start restarting. I tryed also unplug battery and flash it by other rom but connection with pc is broken when phone still restarting every 5s. Is there any chance to save this phone from scrap? Thank you
Durien Daragoth said:
Hi i just oficialy unlocked bootloader, flashed twrp recovery boot and restarted phone. After that restart, phone got stuck in loop rebooting to MI logo. Recovery and Fastboot not loading when i press right buttons. Phone just vibrate and keep restarting. I had to dry off battery to turn it off becouse when i connect phone to cable it auto turn on and start restarting. I tryed also unplug battery and flash it by other rom but connection with pc is broken when phone still restarting every 5s. Is there any chance to save this phone from scrap? Thank you
Click to expand...
Click to collapse
You might want to take a look at this.
[GUIDE]How to reboot to EDL from fastboot
Most Qualcomm-based Android PDAs support emergency download (EDL) mode allowing to unbrick device, unlock bootloader or modify protected device parameters. If ADB interface is accessible, "adb reboot edl" can be used to reboot to EDL mode. Many...
forum.xda-developers.com
Obi_Wlan said:
You might want to take a look at this.
[GUIDE]How to reboot to EDL from fastboot
Most Qualcomm-based Android PDAs support emergency download (EDL) mode allowing to unbrick device, unlock bootloader or modify protected device parameters. If ADB interface is accessible, "adb reboot edl" can be used to reboot to EDL mode. Many...
forum.xda-developers.com
Click to expand...
Click to collapse
Thank but phone simply dont booting to fastboot mode.
Durien Daragoth said:
Thank but phone simply dont booting to fastboot mode.
Click to expand...
Click to collapse
You have to experiment with some button combinations. I ran into the same problem with a different phone two years ago. Read everything about this even if fastboot isn't working right now.
[GUIDE][TOOL] Reboot to EDL mode from FASTBOOT! No More "Test Point Method"! [kenzo]
[GUIDE][TOOL] Reboot to EDL mode from FASTBOOT! No More "Test Point Method"! [kenzo] Reboot to EDL mode from FASTBOOT! No more Test Point Method needed ;) Technical Details: Redmi Note 3 support rebooting to EDL in Android Bootloader aboot...
forum.xda-developers.com
Service centre will be your best bet
Durien Daragoth said:
Hi i just oficialy unlocked bootloader, flashed twrp recovery boot and restarted phone. After that restart, phone got stuck in loop rebooting to MI logo. Recovery and Fastboot not loading when i press right buttons. Phone just vibrate and keep restarting. I had to dry off battery to turn it off becouse when i connect phone to cable it auto turn on and start restarting. I tryed also unplug battery and flash it by other rom but connection with pc is broken when phone still restarting every 5s. Is there any chance to save this phone from scrap? Thank you
Click to expand...
Click to collapse
first let's go, download the fastboot stock version of the ROM then download Miflash, unzip the rom on your main disk twice, now on your cell phone you will press the power off button and at the same time the fastboot button (you must have messed up the file boot so it doesn't turn on) and play Miflash also on C disk, open Miflash on mobile in fastboot mode and select ROM folder don't forget to put the option to just clean and not lock, when the process is finished you wait for the phone to turn on
Player__y said:
first let's go, download the fastboot stock version of the ROM then download Miflash, unzip the rom on your main disk twice, now on your cell phone you will press the power off button and at the same time the fastboot button (you must have messed up the file boot so it doesn't turn on) and play Miflash also on C disk, open Miflash on mobile in fastboot mode and select ROM folder don't forget to put the option to just clean and not lock, when the process is finished you wait for the phone to turn on
Click to expand...
Click to collapse
If you have any, let me know on discord, šššš¦šš#2028
Thx but phone dont booting to fastboot mode so i cant flash boot.img i tryed now SP Flash too in linux and still same errors becouse phone disconecting too fast. I think technician service will be solution..
Dont use The daanm Sp flash Tool , Its for mediatek devices, USE Miflash, and Its impossible a phone dont boot in fastboot mode, try again, pls hold The button
I have both Mi flash and SP flash tool
Without fastboot you cant do much...
in Miflash it dont do anything even device it dont see on COM3
in SP flash too it react but with errors becouse of disconecting
phone dont boot right becouse both A and B boot images are corrupted.
Does your screen at boot turn red? I've done everything on my cell phone, several things have happened to me and not once did fastboot have a problem, because fastboot is a totally different place to boot, there is only this possibility if you used commands in adb to remove or do something in fastboot that made it useless, it's impossible to happen this in the way you said
yes i did adb commands in fastboot becouse i instaled recovery and this all happend after reboot
no problem doing things in adb, I said in the sense that you deleted fastboot in adb but that didn't happen by the way you said
Turn off your phone.
Press and hold the Power + Volume Down buttons together and immediately connect the device to the PC. You need to time it perfectly.
It will automatically boot into EDL mode, and LED lights may blink.
Download QPST Flash Tool and install your device's firmware using QFIL(comes included in QPST).
I suggest you to read everything about it online.
Obi_Wlan said:
Turn off your phone.
Press and hold the Power + Volume Down buttons together and immediately connect the device to the PC. You need to time it perfectly.
It will automatically boot into EDL mode, and LED lights may blink.
Download QPST Flash Tool and install your device's firmware using QFIL(comes included in QPST).
I suggest you to read everything about it online.
Click to expand...
Click to collapse
I tryed but not succes. It just booting every 5s nowhere. Cant get to EDL mode sorry. And correct turn off phone isnt possible i have to unplug battery flex cable but i also tryed. Only possible state where it dont restarting is when battery is unpluged and i connect phone on cable with pc and pressing volume down+power. But connection to COM3 is only 2s.
Well, in that case you need to short the test points on your motherboard and plug the phone into your PC at the same time.
Watch several videos related to it on YouTube first.
Wait, is your phone Redmi Note 11 or 11s?
I will try the point test. I have Redmin Note 11s.
Ahhhh...you posted it on Note 11 forum.
Can't help you mate. Things are more complicated in mediatek devices.
Still, this thread might help a little. Good luck.
(Guide) How to fix a hard bricked Redmi Note 9 (Merlin) (Hard Brick)
A how-to guide of restoring a completely bricked Redmi Note 9 Hi, In this guide, I will teach you how to fix a hard-bricked Redmi Note 9 (merlin) and bring it back to its original state. How does a hard-bricked Redmi Note 9 look like? it's stuck...
forum.xda-developers.com
Now i have bit progress with python im able to hold COM3 port connection around 60s. But when i start SP Flash Tool it will always make error. STATUS_BROM_CMD_STARTCMD_FAIL (0xC0060001) and STATUS_ERR (0xC0010001) , STATUS_BROM_CMD_FAIL
I finally managed to connect device for longer time cca 1 min with MTKMETAUtilityV49 and it helped me also disable auhorized connection for SP Flash tool V5. By this i formated whole disc except bootloader. Now phone dont self restarting so it is prepared for instal fresh rom. I think this will be again problem becouse i geting this error after few seconds of flashing: STATUS_SEC_IMG_TOO_LARGE