Flash Official ROM A2 - Xiaomi Mi A2 / 6X Questions & Answers

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.

Related

Need Help in Unlocking Mi5

I request for Unlock, after 30 mins got SMS that I'm eligible for unlocking my device.
I tried on the Mi Unlock tool, got stuck at 50%, got the "Couldn't verify device" error.
Downloaded Mi5 Global Developer ROM tried to flash, got "Couldn't Verify Update" error
Downloaded Mi5 China Developer ROM and tried to flash with Mi Flash tool, got "error:FAILED(remote:device is locked, cannot erase)"
PS: My developer options doesn't have OEM UNLOCK option.
http://i.imgur.com/x2eqHyv.png
Please Help me.
You need to flash the china developer ROM in the edl mode. To get into edl:
Boot into fastboot and connect the phone to your PC. Then (assumimg you have adb and fastboot with drivers set up) type "fastboot oem edl" in the fastboot prompt. If you are in edl, the screen will be completely black and in the device manager, you should see Ports/ Qualcomm HS-USB QDloader 9008 (or something similar) . If you see it, click refresh in MiFlash and flash the china dev ROM. Then unlock your bootloader.
You can use the Global Beta version (developer version).
I also used that one and had the same problem.
Just wait another day and try again.
There seems to be some syncing between the different Mi sites (mic.om/miui.com/etc) and it not always is as quick as we want to.
Have already read about some people that had to wait a week for this.
For me it worked today, after i got the same error yesterday as you have.
Just try tomorrow and the day after that etc.
Davidkrch said:
You need to flash the china developer ROM in the edl mode. To get into edl:
Boot into fastboot and connect the phone to your PC. Then (assumimg you have adb and fastboot with drivers set up) type "fastboot oem edl" in the fastboot prompt. If you are in edl, the screen will be completely black and in the device manager, you should see Ports/ Qualcomm HS-USB QDloader 9008 (or something similar) . If you see it, click refresh in MiFlash and flash the china dev ROM. Then unlock your bootloader.
Click to expand...
Click to collapse
I tried getting into edl mode to flash China dev rom, but after entering the "fast boot OEM edl" command I get an error msg saying the phone needs to be unlocked before using edl
Sent from my MI 5 using XDA-Developers mobile app
elot01 said:
You can use the Global Beta version (developer version).
I also used that one and had the same problem.
Just wait another day and try again.
There seems to be some syncing between the different Mi sites (mic.om/miui.com/etc) and it not always is as quick as we want to.
Have already read about some people that had to wait a week for this.
For me it worked today, after i got the same error yesterday as you have.
Just try tomorrow and the day after that etc.
Click to expand...
Click to collapse
You flashed the developer rom via system update or fastboot?
Can you please give me the link to the file, because I'm facing "couldn't verify update" error always
Sent from my MI 5 using XDA-Developers mobile app
snbk97 said:
You flashed the developer rom via system update or fastboot?
Can you please give me the link to the file, because I'm facing "couldn't verify update" error always
Sent from my MI 5 using XDA-Developers mobile app
Click to expand...
Click to collapse
I used this version:
http://en.miui.com/download-299.html
And then the developer version off course.
snbk97 said:
I request for Unlock, after 30 mins got SMS that I'm eligible for unlocking my device.
I tried on the Mi Unlock tool, got stuck at 50%, got the "Couldn't verify device" error.
Downloaded Mi5 Global Developer ROM tried to flash, got "Couldn't Verify Update" error
Downloaded Mi5 China Developer ROM and tried to flash with Mi Flash tool, got "error:FAILED(remote:device is locked, cannot erase)"
PS: My developer options doesn't have OEM UNLOCK option.
http://i.imgur.com/x2eqHyv.png
Please Help me.
Click to expand...
Click to collapse
I had the same issue, couldn't Verify Device beyond 50%, but after reading the instructions given at MIUI website, problem solved.
Firstly, install a developer ROM. Then you'll have to boot it up normally, and login to Mi Cloud, using the same user ID that Xiaomi has given the permission to unlock device.
You'll then be able to use the Mi Unlock app to unlock, using the same user ID to login.

How to intall global rom with locked bootloader ?

Hi everyone,i have purchased xiaomi mi5 from AliExpress and i told the seller to not open the box,and thats what he did,he didnt open the box,so the phone came with stock Chinese stable miui 7.something,and when i updated,it updated directly to miui 8.1,no updated in between, straight to miui 8.1,but i want to install the global stable rom,the bootloader is locked,i have requested to unlock it but so far no news,i tried to boot in edl mode by holding the vol up,vol down and power and cable in at the same time and it boots in some mode but idk if its edl,as far as i know edl mode is with black screen with "Qualcomm HS-USB QDloader 9008" on the pc com ports,but in my case there is no such thing,and there is black and white phone with usb connect on the phone screen,but nothing on the pc,do i have problems with drivers or i dont enter edl at all ? and do any of you guys now any other method to install the global rom except the other one with the engineering cable ?, I really need your help guys please help me if you can,thank you in advance and have a great day
I've successfully updated my mi5 to global stable using the updater app even my bootloader is locked..however, when I got my mi5 2weeks it's on miui 8 global beta(dev rom) not chinese. Not sure if it will work on your device. Here's what I did:
1. Download global stable from xiaomi's official page
2. Reset the phone. (Settings > Additional settings > Back up & reset)
3. Transfer the zip file to phone (doesn't matter which directory)
4. Connect to a strong internet connection (this is important to verify the update package)
5. Open updater app, tap menu (upper right corner) then tap choose update package
6. Locate zip file and it will proceed with decryption process
Note: You need to be connected to a strong internet connection all through out the process or the verification and decryption will fail and get "can't verify update" error
Hope this helps. ?
Before and after, locked bootloader
viking_kong16 said:
Before and after, locked bootloader
Click to expand...
Click to collapse
I will try first what you tell me,if that doesn't work than i will try installing global beta if that works than global stable,thank you very much
No i didnt work with both beta and stable,now i will try to flash Chinese beta and after that i will try to install global beta or stable,i hope that works because i am out of ideas.
Screenshots:
Nope,nothing it didnt work unable to install global rom stable or beta,looks like i will wait for the bootloader unlock if any message comes at all i just hope they will let me unlock it,they definitely need to change the way bootloader is unlocked.
Coz you'r phone still has miui 7 (don't know in miui 8 coz never try it)..so i think you can try go into edl mode by adb command while in home screen.. "adb reboot edl" (don't forget to activate usb debugging in developer option first)
JJeamy said:
Coz you'r phone still has miui 7 (don't know in miui 8 coz never try it)..so i think you can try go into edl mode by adb command while in home screen.. "adb reboot edl" (don't forget to activate usb debugging in developer option first)
Click to expand...
Click to collapse
Thx but it didnt work,the phone just rebooted,but now i have another problem,i installed the chines beta rom and now i am unable to get back to chines stable, i have tried from mi pc suit,the updater app,restoring the phone and trying to change it,nothing work have no idea what to do now,its the latest chines beta rom on android 7.0,i have no idea why it dont want to go to stable,pls help anyone if you know how PLEASE.
vlatko98 said:
Thx but it didnt work,the phone just rebooted,but now i have another problem,i installed the chines beta rom and now i am unable to get back to chines stable, i have tried from mi pc suit,the updater app,restoring the phone and trying to change it,nothing work have no idea what to do now,its the latest chines beta rom on android 7.0,i have no idea why it dont want to go to stable,pls help anyone if you know how PLEASE.
Click to expand...
Click to collapse
Right now with my mi5 with xiaomi.eu 8.1.9.0 rom that's based 7.0..i've try it to go into edl mode through fastboot mode by command "fastboot oem edl", and it's work..you can try it..if your pc success detecting you mi5 as qualcom HS-USB then try flashing miui rom that you want with miflash tool.
Firstly "adb reboot bootloader" to go into fastboot mode..then type "fastboot oem edl"
Hope it's help.
JJeamy said:
Right now with my mi5 with xiaomi.eu 8.1.9.0 rom that's based 7.0..i've try it to go into edl mode through fastboot mode by command "fastboot oem edl", and it's work..you can try it..if your pc success detecting you mi5 as qualcom HS-USB then try flashing miui rom that you want with miflash tool.
Firstly "adb reboot bootloader" to go into fastboot mode..then type "fastboot oem edl"
Hope it's help.
Click to expand...
Click to collapse
thank you for trying to help me but that didnt work as well this is what it says:
"FAILED (remote: Need to unlock the device to use this command)
finished. total time: 0.014s"
is there any method like this one:https://youtu.be/hmdrj4uX7gY for usb type c cable,will this method work with usb type c,should i start cutting my cable ?
vlatko98 said:
is there any method like this one:https://youtu.be/hmdrj4uX7gY for usb type c cable,will this method work with usb type c,should i start cutting my cable ?
Click to expand...
Click to collapse
You don't need cutting you original cable..you can buy it like this one in aliexpress here , this already has converter too for usb type C
Sorry..i don't realize that fastboot oem edl just for unlocked bootloader..coz mine already unlocked, but i have some another way before you using deep flash cable to go into edl mode..but i can't testing it..coz mine already unlocked.
- I've read your first post about using hardware key to go into edl mode by pressing and hold vol up + vol down +(you said you're pressing power too, i think in this step you're wrong) then connect the usb cable..what i know..the right instruction is , pressing and hold vol up and down at the same time (without pressing power button)..then connect it via usb cable to your pc..then you can see in your device manager that success detecting as qualcom or not.
- In xiaomi redmi note 3 device you can go into edl mode through fastboot mode with command "fastboot reboot-edl", but this command only can apply with minimal adb that are already modified, you can download it from here
Are you sure @vlatko98 that your request to open bootloader is not granted? I made the request, waited for SMS for two weeks but nothing... So i navigated again to en.miui.com/unlock, logged in and I was able to download the mi unlock app. And the unlocking process was successfull.
If you havent, check if you can download unlock app and try to unlock your device with it.
How long ago have you made your request for unlock?
JJeamy said:
You don't need cutting you original cable..you can buy it like this one in aliexpress here , this already has converter too for usb type C
Sorry..i don't realize that fastboot oem edl just for unlocked bootloader..coz mine already unlocked, but i have some another way before you using deep flash cable to go into edl mode..but i can't testing it..coz mine already unlocked.
- I've read your first post about using hardware key to go into edl mode by pressing and hold vol up + vol down +(you said you're pressing power too, i think in this step you're wrong) then connect the usb cable..what i know..the right instruction is , pressing and hold vol up and down at the same time (without pressing power button)..then connect it via usb cable to your pc..then you can see in your device manager that success detecting as qualcom or not.
- In xiaomi redmi note 3 device you can go into edl mode through fastboot mode with command "fastboot reboot-edl", but this command only can apply with minimal adb that are already modified, you can download it from here
Click to expand...
Click to collapse
Sorry i didnt mention that i have tried with the vol buttons only as well,it didnt work,the phone boot up to recovery,same as holding the power button,soon i am trying with costume deep flash cable,there is no need to cut anything just to shourt ground and data from the usb connector that connects to the pc,i just dont understand why xiaomi if it plans to make global rom why not make it simple to change it,why users have to figure things out,we buy a phone to use it not to experiment with it,you hear me xiaomi ?
btw thx for helping me out.
Nbkdnssr said:
Are you sure @vlatko98 that your request to open bootloader is not granted? I made the request, waited for SMS for two weeks but nothing... So i navigated again to en.miui.com/unlock, logged in and I was able to download the mi unlock app. And the unlocking process was successfull.
If you havent, check if you can download unlock app and try to unlock your device with it.
How long ago have you made your request for unlock?
Click to expand...
Click to collapse
well thats where i am super unlucky,i recived an sms saying that my request to unlock is granted,and when i head over to unlock page there was nothing to download,just to apply for unlock again like the first time i applyed,but i downloaded mi unlock tool from other place,logged in and it says YOUR DEVICE IS NOT SUPPORT so i reapplyed at mi unlock last night, so i will see what will happen,yes i double check the sms it say approved,yes i login with the same account at mi unlock and account noomber from the sms matched with the account nomber from my account.
vlatko98 said:
well thats where i am super unlucky,i recived an sms saying that my request to unlock is granted,and when i head over to unlock page there was nothing to download,just to apply for unlock again like the first time i applyed,but i downloaded mi unlock tool from other place,logged in and it says YOUR DEVICE IS NOT SUPPORT so i reapplyed at mi unlock last night, so i will see what will happen,yes i double check the sms it say approved,yes i login with the same account at mi unlock and account noomber from the sms matched with the account nomber from my account.
Click to expand...
Click to collapse
If you already received sms that unlock already granted from xiaomi..there's another problem that sometimes your account not already correctly sync with xiaomi server..even already sync correctly still can't unlock flawlessly..
You can try following step and trying to unlock again and again..but just this time..just trying every day..if this day doesn't success too you can try it again tomorrow.
To make sure and minimize that everything is correctly:
- Make sure you're already at the latest china developer / beta rom..
- Enabling find device status at mi cloud in your phone..also just try login at i.mi.com (just this time try login with your acct number id) and activate find device too to make sure everything is sync correctly.
- Activate usb debugging and unlock in developer option in your phone..
- Trying unlock again with mi unlock..just this time try login with your acct number id too.
Hope it's help..and your phone can soon unlocked..
JJeamy said:
If you already received sms that unlock already granted from xiaomi..there's another problem that sometimes your account not already correctly sync with xiaomi server..even already sync correctly still can't unlock flawlessly..
You can try following step and trying to unlock again and again..but just this time..just trying every day..if this day doesn't success too you can try it again tomorrow.
To make sure and minimize that everything is correctly:
- Make sure you're already at the latest china developer / beta rom..
- Enabling find device status at mi cloud in your phone..also just try login at i.mi.com (just this time try login with your acct number id) and activate find device too to make sure everything is sync correctly.
- Activate usb debugging and unlock in developer option in your phone..
- Trying unlock again with mi unlock..just this time try login with your acct number id too.
Hope it's help..and your phone can soon unlocked..
Click to expand...
Click to collapse
i tried all you tell me,mi unlock still says “your device is not supported by mi unlock” but i dont understand why i was able to make another request at mi unlock website,like the first time i did that,i requested again 2 days ago,i will see what will happen now.
I received another SMS and unlocked the bootloader successfully and I installed global stable ROM, thanks for helping guys )))

Messed up via oem lock command - can't access recovery - any help appreciated!

Hi all,
A few days ago I installed a custom ROM, which broke my android pay. I tried to re-lock the bootloader to fix this via the fastboot oem lock command, and i'm now stuck in a bootloop.
I can get the phone to boot into fastboot mode, and it shows up as such when checking via command prompt. I also have a backup of the phone I made a few days ago. I've tried to unlock the phone using the fastboot oem unlock command, but get the following error:
FAILED (remote: Token verification failed, reboot the device)
finished. total time: 0.008s
I bought the phone second hand with an unlocked bootloader, if that makes a difference? I've set up a new Mi account and applied for an unlock code.
Does anyone have any tips on how to proceed? Thanks in advance!
Stupid thing to think relocking your bootloader would fix android pay while still on that custom rom, whe have hacks for that you know >> magisk14/15.2
Do you still have twrp? also try to flash stock images from xiaomi themselves, here.
that should at least get you booting again.
Hi,
Thanks for replying, i'll download the global stable version. Is it a case of sideloading this once complete? I still have TWRP installed if it makes a difference, I just can't reach it :/
Yes I do feel pretty stupid, and thanks for the link to magisk - hadn't heard of it until now but i'll definitely be using when/if I get my Mi back up and running. Is there anyway to unlock the bootloader other than the Mi Unlock app?
Thanks!
EDIT: Okay, so i tried flashing via the MiFlash tool and got the following error:
FAILED: Remote device is locked. Cannot erase.
Any idea of where to go from here?
So, I fixed it! In the off chance anyone is as unlucky/stupid/trigger happy as me, and finds themselves in teh same situation, here's the solution:
If you can't get it into EDL mode because you can't switch it off (mine kept rebooting), follow this video:
https://www.youtube.com/watch?v=ED96PJ-qYMM
It's in a foreign language but is clear enough - take the back off, unscrew the cover and short the pins he shows you after disconnecting the battery, then plug into your computer.
Your phone will pop up as a Qualcommdevice under the ports section of Device Manager. You should then be able to flash via MiFlash as per usual.
Phew, hairy there but sorted in the end. I'll now wait for the unlock code from Xiaomi, and do a bit more reading in future!
A much easier way to solve this problem
You don't have to follow any long tutorial. Nor do you have to open your phone up. Just power it into fastboot mode, download the mi unlock tool that you used the first time to unlock your bootloader and unlock your device once again. Then you can use miflash to flash the fastboot rom on your device and it won't throw up any errors. Once that's done, just reflash the custom recovery. Install the custom rom, use magisk for root and you're good to go. Safety net won't be tripped and android pay will still work. No need to rip your phone apart to fix it.

Please Help_After OTA Update Xiaomi Mi A2 died

On Saturday appeared an OTA update to do on my mi A2 but after installed and restarting it died. It does not enter recovery mode and the screen is always on with android one bootscreen logo.
PS: I never flash the phone and i never change anyting in the system of the phone.
The only response that i have in the phone is enter in it Fastboot menu. I read some threads and untill now i cant fix my phone.
I will try to explain what i do:
I've tried using this tool https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585.
I try option 3 (Unbrick/Revert to Stock/Force update and the program tell me to unlock the bootloader.
When i tried to unlock bootloader by option 1 and then 1, 2 and 3 ( Unlock flashing critical, unlock OEM , unlock flashing ) the programs says: Failed Unlock is not allowed.
Then i try the response 9 to this thread https://forum.xda-developers.com/mi-a2/help/impossible-flashing-xiaomi-mi-a2-t3837565 to try unlocked the bootloader
But i have the same response ( Flashing Unlock is not allowed )
I read and i try but i cant unbrick my phone, someone can help?? Thanks
We are in the same boat buddy, the same thing happened to the phone of my wife.
It *sounds* like the update failed, and normally that would mean it would switch the slot back to the one that was working and boot that.
But you've tried a bunch of options from some tool, I've no idea what it did, as the tool doesn't tell you what commands it's doing.
I'd suggest to go to fastboot and see if you can tell which slot is active, then switch it to the other slot, then do fastboot reboot and cross your fingers
I have the same problem (for other reasons, but exactly the same problem). You can also try "fastboot oem edl", but it did not work for me, so I suppose you have little chance for it to work.
I have been searching and it looks like there are some "deep flash cables" that can make the phone enter edl mode to flash it using mi flash tool. Maybe these could work for us. There is apparently other way to enter edl mode, but it requires opening the phone (that I do not want to do) to short two test points.
I cant enter revorymode only fastboot mode. But when in fastbootmode my connected pc cant even find the phone. Im going to return the phone.
I have the same problem, I have this edl cable but so far no luck.
Do not realy k Ow how to use.
Are you sure it was the OTA update that bricked your phone? That Treble system isn't just there for the kicks, its there to prevent serious issues like these.
I'm stucked on fastboot, I don't want to open my phone. Could anyone help us? I already tried a lot of things, my computer doesn't recognize my mobile when is on fastboot mode. I already tried to install a lot of drivers or try to use differents adbs.

PLEASE HELP - Device Bricked - edl waiting for device

Hello I have a Mi A2 with ONE.
I tried to install Mi6X following this guide:
Guide
I got to step 9:
9- Click Refresh on Mi Flash Then choose Clean all and click flash
Then I got this error:
Error oem edl miflash tool, ACK count don't match
Then I tryed instead to install Jasmine again, and I started getting this error:
Cannot receive hello packet,MiFlash is trying to reset status
And then I was stupid enough to unplug my phone
THE ACTUAL PROBLEM (rigth now)
1. My phone will start, then stay at Mi(mi.com) logo indefinitely.
2. I can't enter download mode, Vol + and power will bring me the Mi logo again and again.
3. Can enter Fastboot mode... BUT...
-Mi flash don't detect it
-miflash_unlock don't detect it
-edl.cmd, unlock auto, and unlock critical say "< waiting for device >"
Edit: I solved the problem using test point to enter EDL mode, then It connected and I could flash it.
our phones (mia2) are weird devices to be honest, mine was recently bricked after choosing the "reboot to bootloader" option in twrp. id recommend you to go to mi service center if your phone is still in warranty
Stoopid Dickhead said:
our phones (mia2) are weird devices to be honest, mine was recently bricked after choosing the "reboot to bootloader" option in twrp. id recommend you to go to mi service center if your phone is still in warranty
Click to expand...
Click to collapse
Thanks for the reply. But unfortunately I can't
That would be my first solution, but my Mi A2 is not in warranty anymore...
have you tried to install stock rom with fastboot?
Maharram said:
have you tried to install stock rom with fastboot?
Click to expand...
Click to collapse
Miflash won't detect the phone, it's like is not connected at all...
puerco-potter said:
Miflash won't detect the phone, it's like is not connected at all...
Click to expand...
Click to collapse
No im not talking about miflash im saying fastboot u can install stock rom with fastboot too you need payload bin dumper and ota flasher for that
Maharram said:
No im not talking about miflash im saying fastboot u can install stock rom with fastboot too you need payload bin dumper and ota flasher for that
Click to expand...
Click to collapse
Sorry, can you help me unsderstand a little.
I found this guide:
Guide
But none of my Roms (Jasmine or Wayne) have a file that's named payload.bin
I feel like I am missing something
Edit:
I found that ota updates are the ones with the payload.bin file followed the guide and everything, but fastboot bring almost the same error that EDL brings:
< Waiting for any device >
Can it be that my cable somehow magically from one conection to another stoped working or something? I asked a friend for his cable... Cs are not as common in this country yet.
puerco-potter said:
Sorry, can you help me unsderstand a little.
I found this guide:
Guide
But none of my Roms (Jasmine or Wayne) have a file that's named payload.bin
I feel like I am missing something
Edit:
I found that ota updates are the ones with the payload.bin file followed the guide and everything, but fastboot bring almost the same error that EDL brings:
< Waiting for any device >
Can it be that my cable somehow magically from one conection to another stoped working or something? I asked a friend for his cable... Cs are not as common in this country yet.
Click to expand...
Click to collapse
Have you enabled oem unlock ?
puerco-potter said:
Hello I have a Mi A2 with ONE.
I tried to install Mi6X following this guide:
Guide
I got to step 9:
9- Click Refresh on Mi Flash Then choose Clean all and click flash
Then I got this error:
Error oem edl miflash tool, ACK count don't match
Then I tryed instead to install Jasmine again, and I started getting this error:
Cannot receive hello packet,MiFlash is trying to reset status
And then I was stupid enough to unplug my phone
THE ACTUAL PROBLEM (rigth now)
1. My phone will start, then stay at Mi(mi.com) logo indefinitely.
2. I can't enter download mode, Vol + and power will bring me the Mi logo again and again.
3. Can enter Fastboot mode... BUT...
-Mi flash don't detect it
-miflash_unlock don't detect it
-edl.cmd, unlock auto, and unlock critical say "< waiting for device >"
Please help, I am really afraid my phone will die permanetly as I can't turn it off and I don't know if it will charge in it's current state.
Click to expand...
Click to collapse
Did you flash hex kernel? You know that phone on 6x miui rom will not boot if you havent flash custom kernel after miui?
Mi flash tool won't work with locked bootloader
Install adb drivers and write command
' abd oem edl '
If ur phones connects
Than u can use mi flash tool
Maharram said:
Have you enabled oem unlock ?
Click to expand...
Click to collapse
I followed this guide to unlock bootloader previous to the guide on flashing of the first post:
GUIDE
The .bat that you run there actually executes "fastboot oem unlock". I did that part without any problem, the phone screen asked for confirmation and everything fine. After succefully unlocking bootloader I followed the guide on flashing Miui 10.
Now even that "fastboot oem unlock" will show this message:
< waiting for any device >
Amnvlad said:
Mi flash tool won't work with locked bootloader
Install adb drivers and write command
' abd oem edl '
If ur phones connects
Than u can use mi flash tool
Click to expand...
Click to collapse
"adb oem edl" brings this error:
adb.exe: unknown command oem
"fastboot oem edl" brings this error:
< waiting for any device >
and
"adb reboot bootloader" brings this error:
error: no devices/emulators found
(tested everything with the phone in fastboot or the Mi logo)
mariosenta said:
Did you flash hex kernel? You know that phone on 6x miui rom will not boot if you havent flash custom kernel after miui?
Click to expand...
Click to collapse
I didn't, because I got an error when flashing Miui, never got to follow the rest of the guide because my phone won't be recognised by any program it seems...
Thanks you all for the help, I will try with another cable, and if that don't work I will test point this little one. I really don't want to open it... but It seems like fastboot won't connect no matter what...
puerco-potter said:
I followed this guide to unlock bootloader previous to the guide on flashing of the first post:
GUIDE
The .bat that you run there actually executes "fastboot oem unlock". I did that part without any problem, the phone screen asked for confirmation and everything fine. After succefully unlocking bootloader I followed the guide on flashing Miui 10.
Now even that "fastboot oem unlock" will show this message:
< waiting for any device >
Click to expand...
Click to collapse
Did you execute this line "fastboot flashing unlock_critical" after fastboot oem unlock?
mariosenta said:
Did you execute this line "fastboot flashing unlock_critical" after fastboot oem unlock?
Click to expand...
Click to collapse
Originally yes, after oem unlock, I ran flashing unlock_critical
puerco-potter said:
I followed this guide to unlock bootloader previous to the guide on flashing of the first post:
GUIDE
The .bat that you run there actually executes "fastboot oem unlock". I did that part without any problem, the phone screen asked for confirmation and everything fine. After succefully unlocking bootloader I followed the guide on flashing Miui 10.
Now even that "fastboot oem unlock" will show this message:
< waiting for any device >
Click to expand...
Click to collapse
You installed oreo on pie? Because Mi A2 has antiroll back projection if you downgrade your Android version then you lost your imei code
Maharram said:
You installed oreo on pie? Because Mi A2 has antiroll back projection if you downgrade your Android version then you lost your imei code
Click to expand...
Click to collapse
6x has antiroll back, a2 does not.
---------- Post added at 11:13 AM ---------- Previous post was at 11:12 AM ----------
[/COLOR]
puerco-potter said:
I didn't, because I got an error when flashing Miui, never got to follow the rest of the guide because my phone won't be recognised by any program it seems...
Thanks you all for the help, I will try with another cable, and if that don't work I will test point this little one. I really don't want to open it... but It seems like fastboot won't connect no matter what...
Click to expand...
Click to collapse
Please, keep us updated.
I had the same issues like you months ago. The only solution you buy a pentalobe 0.8mm for iphone, a small philips screw driver, and a tweezer. Flash your phone in EDL mode. You need to contact 2 pins. You can search the location of the pins, how to disassemble the phone by googling it. then just flash Mi A2 stock ROM first, then convert it to Mi 6X again. I
hasel17 said:
I had the same issues like you months ago. The only solution you buy a pentalobe 0.8mm for iphone, a small philips screw driver, and a tweezer. Flash your phone in EDL mode. You need to contact 2 pins. You can search the location of the pins, how to disassemble the phone by googling it. then just flash Mi A2 stock ROM first, then convert it to Mi 6X again. I
Click to expand...
Click to collapse
No need to convert, now we have miui for a2.
mariosenta said:
No need to convert, now we have miui for a2.
Click to expand...
Click to collapse
Where can I take a look at this? I am really interested.
The cable wasn't the issue, I am getting the tools to open it tonight.

Categories

Resources