In order to fulfill the basic functions of our service, the user hereby agrees to allow Xiaomi to collect, process and use personal information which shall include but not be limited to written threads, pictures, comments, replies in the Xiaomi Community, and relevant data types listed in Xiaomi's Private Policy. By selecting "Agree", you agree to Xiaomi's Private Policy and Content Policy .
Agree

Mi A3

[Q&A] How to authenticate my mi account for flashing brick phone in EDL mode??

2019-11-09 13:10:17

17,479 19

Rookie Bunny

Felpzinh Author |

#4

Abycho_LG replied at 2019-11-10 03:03:28
Hi,
Weird ...., enter fastboot mode and using fastboot utility, type in:
fastboot getvar product

product: laurel_sprout

Have the factory stock rom, I did not try to pass any rom

Already tried everything through Cmd commands trying to use fastboot but always the error. I believe it is because of my locked OEM.

2019-11-11 04:16:38
Reply Report

Rookie Bunny

Felpzinh Author |

#5

J C Paul replied at 2019-11-10 06:23:56
Hello,
In simple terms, you can't utilize Mi Account on Mi A3 since it has Android One skin. Head to your nearest service centre...

I didn't need to login with Mi account when I got the device but I need this authorized account just to flash rom stock through MI Flash. When I try to pass an error appears that my account is not allowed to do so. I have seen that there are people charging to log in with such special accounts but I think this is absurd. And there are no authorized Xiaomi centers near my area.
2019-11-11 04:22:48
Reply Report

Rookie Bunny

Felpzinh Author |

#7

Abycho_LG replied at 2019-11-11 05:12:11
If the OEM unlocking (Developer options) is disabled, you need to enter the EDL mode to flash. Can you show the latest MiFlash log?

I tested again and the same error persists. I am not allowed to perform the flash. Following are two logs from the last flash:

[21:01:25  COM3]:MiFlash 2019.10.30.0
[21:01:26  COM3]:flash in thread name:COM3,id:9
[21:01:26  COM3]:sw in images
[21:01:26  COM3]:flash in thread name:COM3,id:9
[21:01:26  COM3]:[COM3]:start flash.
[21:01:26  COM3]:received hello packet
[21:01:26  COM3]:programmertype: 0
[21:01:26  COM3]:vboytest:C:\MiA3\laurel_sprout_global_images_V10.3.4.0.PFQMIXM_9.0\images
[21:01:26  COM3]:download programmer file: System.String[]
[21:01:26  COM3]:download programmer C:\MiA3\laurel_sprout_global_images_V10.3.4.0.PFQMIXM_9.0\images\prog_firehose_ddr.elf
[21:01:34  COM3]:Send done packet
[21:01:34  COM3]:file C:\MiA3\laurel_sprout_global_images_V10.3.4.0.PFQMIXM_9.0\images\prog_firehose_ddr.elf transferred successfully
[21:01:36  COM3]:send nop command
[21:01:36  COM3]:send command:?xml version="1.0" ?datanop verbose="0"  value="ping"//data
[21:01:36  COM3]:get response from target
[21:01:36  COM3]:resdump:?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Binary build date: May 22 2019 @ 17:10:49" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Binary build date: May 22 2019 @ 17:10:49
" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Chip serial num: 3287872256 (0xc3f8f300)" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Supported Functions (14):" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: program" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: read" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: nop" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: patch" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: configure" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: setbootablestoragedrive" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: erase" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: power" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: firmwarewrite" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: getstorageinfo" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: benchmark" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: emmc" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: ufs" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: fixgpt" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: End of supported functions 14" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Calling handler for nop" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Binary build date: May 22 2019 @ 17:10:49
" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Chip serial num: 3287872256 (0xc3f8f300)" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Supported Functions (14):" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: program" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: read" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: nop" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: patch" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: configure" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: setbootablestoragedrive" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: erase" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: power" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: firmwarewrite" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: getstorageinfo" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: benchmark" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: emmc" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: ufs" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: fixgpt" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: End of supported functions 14" //data?xml version="1.0" encoding="UTF-8" ?
data
response value="ACK" rawmode="false" //data


[21:01:36  COM3]:send configure command
[21:01:36  COM3]:send command:?xml version="1.0" ?dataconfigure verbose="0" AlwaysValidate="0"  ZlpAwareHost="1"  MaxPayloadSizeToTargetInBytes="1048576" MemoryName="ufs" SkipStorageInit="0"//data
[21:01:36  COM3]:get response from target
[21:01:36  COM3]:resdump:?xml version="1.0" encoding="UTF-8" ?
data
log value="ERROR: Only nop and sig tag can be recevied before authentication." //data?xml version="1.0" encoding="UTF-8" ?
data
response value="NAK" rawmode="false" //data


[21:01:37  COM3]:flashSuccess False
[21:01:37  COM3]:isFactory False CheckCPUID False
[21:01:37  COM3]:before:flashSuccess is False set IsUpdate:True set IsDone True
[21:01:37  COM3]:after:flashSuccess is False set IsUpdate:false set IsDone true
[21:01:37  COM3]:no Binary dump
[21:01:37  COM3]:no Binary dump
[21:01:38  COM3]:no Binary dump
[21:01:38  COM3]:edl authentication
[21:01:38  COM3]:GetUserInfo
[21:02:02  COM3]:AuthFlash
[21:02:02  COM3]:need edl authentication.
[21:02:02  COM3]:authentication edl.
[21:02:02  COM3]:send command:?xml version="1.0" ?data sig TargetName="req" verbose="1"//data
[21:02:02  COM3]:get response from target
[21:02:02  COM3]:resdump:?xml version="1.0" encoding="UTF-8" ?
data
sig TargetName="blob" value="AQAAAIoBAAAA8_jDg283G73vJ3IIx7MxKVi2kg" //data?xml version="1.0" encoding="UTF-8" ?
data
response value="ACK" rawmode="false" //data


[21:02:02  COM3]:origin:AQAAAIoBAAAA8_jDg283G73vJ3IIx7MxKVi2kg
[21:02:02  COM3]:SignEdl
[21:02:12  COM3]:authentication failed result -6
[21:02:12  COM3]:System.Exception: authentication failed A operação foi concluída com êxito
   em XiaoMiFlash.code.bl.SerialPortDevice.dlAuth()
   em XiaoMiFlash.code.bl.SerialPortDevice.ConfigureDDR(Int32 intSectorSize, Int32 buffer_sectors, String ddrType, Int32 m_iSkipStorageInit)
   em XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash()     em XiaoMiFlash.code.bl.SerialPortDevice.dlAuth()
   em XiaoMiFlash.code.bl.SerialPortDevice.ConfigureDDR(Int32 intSectorSize, Int32 buffer_sectors, String ddrType, Int32 m_iSkipStorageInit)
   em XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash()
[21:02:12  COM3]:no provision exit:COM3
[21:02:12  COM3]:flashSuccess False
[21:02:12  COM3]:isFactory False CheckCPUID False
[21:02:12  COM3]:before:flashSuccess is False set IsUpdate:True set IsDone True
[21:02:12  COM3]:after:flashSuccess is False set IsUpdate:false set IsDone true

And the other "Result"
[21:01:37]:3    COM3     11,069546s     [21:01:36  COM3]:resdump:?xml version="1.0" encoding="UTF-8" ?
data
log value="ERROR: Only nop and sig tag can be recevied before authentication." //data?xml version="1.0" encoding="UTF-8" ?
data
response value="NAK" rawmode="false" //data


[21:02:12]:3    COM3     46,5137005s     [21:02:12  COM3]:System.Exception: authentication failed A operação foi concluída com êxito
   em XiaoMiFlash.code.bl.SerialPortDevice.dlAuth()
   em XiaoMiFlash.code.bl.SerialPortDevice.ConfigureDDR(Int32 intSectorSize, Int32 buffer_sectors, String ddrType, Int32 m_iSkipStorageInit)
   em XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash()     em XiaoMiFlash.code.bl.SerialPortDevice.dlAuth()
   em XiaoMiFlash.code.bl.SerialPortDevice.ConfigureDDR(Int32 intSectorSize, Int32 buffer_sectors, String ddrType, Int32 m_iSkipStorageInit)
   em XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash()

What appears after I try:



2019-11-12 08:19:32
Reply Report

Rookie Bunny

Felpzinh Author |

#10

yougotmehere replied at 2019-11-12 01:21:17
Since Mid of 2018 EDL flash can only be done through an authorised EDL account. This was implemented to prevent misuse of Illegal rom flashing on Chinese devices to be able to sell them overseas. Xiaomi doesn't give EDL authorisations anymore. However, i wonder, how did you brick the device? Did you lock the device on a custom firmware?

Wow. The worst news I could have. He blocked alone friend.  It had not a week of use, had not even thought to flash any rom. I simply put it on to load (the load should be close to 1%) and when I went to look, about half an hour later, the screen was black and couldn't do anything. I turned it off and from then on the screen does not come out of the "Android One" which is the first screen of the MIA3 after turning on. So I was looking for flash to stock rom to try to unlock usage, because so far I'm not sure if the problem is Rom. I'm seeing that the only alternative left for me is to pay someone who has these authorized accounts to just log in so I can flash the rom and find out if this is really the problem.
2019-11-12 23:07:52
Reply Report

Rookie Bunny

Felpzinh Author |

#11

Abycho_LG replied at 2019-11-12 08:12:34
Uninstall all the MI Flash tools that are on the PC and install the version you can download from https://c.mi.com/oc/miuidownload/detail?guide=2, step 1. Try flashing the V10.3.4.0.PFQMIXM ROM again. Setup the MiFlash with "clean all" at bottom - right.

I had tried to use this version, but I think it does not support EDL mode, only fastboot mode. Tried here again and gives error: "can not found programmer file."
2019-11-12 23:44:08
Reply Report

Rookie Bunny

Felpzinh Author |

#12

Abycho_LG replied at 2019-11-12 08:12:34
Uninstall all the MI Flash tools that are on the PC and install the version you can download from https://c.mi.com/oc/miuidownload/detail?guide=2, step 1. Try flashing the V10.3.4.0.PFQMIXM ROM again. Setup the MiFlash with "clean all" at bottom - right.


In fastboot mode the message appears:

[12:45:08]:0    c3f8f300b5d4     2,0063445s     [12:45:08  c3f8f300b5d4]:error:FAILED (remote: Flashing is not allowed in Lock State)
2019-11-12 23:47:40
Reply Report

Rookie Bunny

Felpzinh Author |

#14

Abycho_LG replied at 2019-11-12 14:42:07
Can show the MiFlash log with the EDL attempt?

It doesn't even start spinning ..
I tried several times and the last one was in fastboot mode

[12:28:26]:0    COM3     0,499749s     can not found programmer file.
[12:29:23]:0    COM3     0,5107057s     can not found programmer file.
[12:31:48]:0    COM3     0,5092355s     can not found programmer file.
[12:32:20]:0    COM3     9,4586366s     Referência de objeto não definida para uma instância de um objeto.
[12:32:50]:0    COM3     0,5102804s     can not found programmer file.
[12:45:08]:0    c3f8f300b5d4     2,0063445s     [12:45:08  c3f8f300b5d4]:error:FAILED (remote: Flashing is not allowed in Lock State)
2019-11-13 12:22:17
Reply Report

Rookie Bunny

Felpzinh Author |

#18

How to authenticate my mi account for flashing brick phone in EDL mode??

Abycho_LG replied at 2019-11-13 05:52:45
The path for the select field is c:\laurel_sprout_global_images_V10.3.4.0.PFQMIXM_9.0\

Don't run  in this version friend..
I tried several times..

In the newest version of MIflash:


[03:35:38  COM3]:MiFlash 2019.10.30.0
[03:35:38  COM3]:flash in thread name:COM3,id:17
[03:35:38  COM3]:sw in images
[03:35:38  COM3]:flash in thread name:COM3,id:17
[03:35:38  COM3]:[COM3]:start flash.
[03:35:38  COM3]:received hello packet
[03:35:38  COM3]:programmertype: 0
[03:35:38  COM3]:vboytest:C:\MiA3\laurel_sprout_global_images_V10.3.4.0.PFQMIXM_9.0\images
[03:35:38  COM3]:download programmer file: System.String[]
[03:35:38  COM3]:download programmer C:\MiA3\laurel_sprout_global_images_V10.3.4.0.PFQMIXM_9.0\images\prog_firehose_ddr.elf
[03:35:45  COM3]:Send done packet
[03:35:45  COM3]:file C:\MiA3\laurel_sprout_global_images_V10.3.4.0.PFQMIXM_9.0\images\prog_firehose_ddr.elf transferred successfully
[03:35:47  COM3]:send nop command
[03:35:47  COM3]:send command:?xml version="1.0" ?datanop verbose="0"  value="ping"//data
[03:35:47  COM3]:get response from target
[03:35:47  COM3]:resdump:?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Binary build date: May 22 2019 @ 17:10:49" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Binary build date: May 22 2019 @ 17:10:49
" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Chip serial num: 3287872256 (0xc3f8f300)" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Supported Functions (14):" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: program" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: read" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: nop" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: patch" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: configure" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: setbootablestoragedrive" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: erase" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: power" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: firmwarewrite" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: getstorageinfo" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: benchmark" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: emmc" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: ufs" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: fixgpt" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: End of supported functions 14" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Calling handler for nop" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Binary build date: May 22 2019 @ 17:10:49
" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Chip serial num: 3287872256 (0xc3f8f300)" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: Supported Functions (14):" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: program" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: read" //data


[03:35:47  COM3]:resdump:?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: nop" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: patch" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: configure" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: setbootablestoragedrive" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: erase" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: power" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: firmwarewrite" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: getstorageinfo" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: benchmark" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: emmc" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: ufs" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: fixgpt" //data?xml version="1.0" encoding="UTF-8" ?
data
log value="INFO: End of supported functions 14" //data?xml version="1.0" encoding="UTF-8" ?
data
response value="ACK" rawmode="false" //data


[03:35:48  COM3]:send configure command
[03:35:48  COM3]:send command:?xml version="1.0" ?dataconfigure verbose="0" AlwaysValidate="0"  ZlpAwareHost="1"  MaxPayloadSizeToTargetInBytes="1048576" MemoryName="ufs" SkipStorageInit="0"//data
[03:35:48  COM3]:get response from target
[03:35:48  COM3]:resdump:?xml version="1.0" encoding="UTF-8" ?
data
log value="ERROR: Only nop and sig tag can be recevied before authentication." //data?xml version="1.0" encoding="UTF-8" ?
data
response value="NAK" rawmode="false" //data


[03:35:48  COM3]:flashSuccess False
[03:35:48  COM3]:isFactory False CheckCPUID False
[03:35:48  COM3]:before:flashSuccess is False set IsUpdate:True set IsDone True
[03:35:48  COM3]:after:flashSuccess is False set IsUpdate:false set IsDone true
[03:35:48  COM3]:no Binary dump
[03:35:49  COM3]:no Binary dump
[03:35:49  COM3]:no Binary dump
[03:35:49  COM3]:edl authentication
[03:35:49  COM3]:GetUserInfo
[03:36:08  COM3]:AuthFlash
[03:36:08  COM3]:need edl authentication.
[03:36:08  COM3]:authentication edl.
[03:36:08  COM3]:send command:?xml version="1.0" ?data sig TargetName="req" verbose="1"//data
[03:36:08  COM3]:get response from target
[03:36:08  COM3]:resdump:?xml version="1.0" encoding="UTF-8" ?
data
sig TargetName="blob" value="AQAAAIoBAAAA8_jD9XpVKHm5I1jcO0OlbkGZgg" //data?xml version="1.0" encoding="UTF-8" ?
data
response value="ACK" rawmode="false" //data


[03:36:08  COM3]:origin:AQAAAIoBAAAA8_jD9XpVKHm5I1jcO0OlbkGZgg
[03:36:08  COM3]:SignEdl
[03:36:16  COM3]:authentication failed result -6
[03:36:16  COM3]:System.Exception: authentication failed A operação foi concluída com êxito
   em XiaoMiFlash.code.bl.SerialPortDevice.dlAuth()
   em XiaoMiFlash.code.bl.SerialPortDevice.ConfigureDDR(Int32 intSectorSize, Int32 buffer_sectors, String ddrType, Int32 m_iSkipStorageInit)
   em XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash()     em XiaoMiFlash.code.bl.SerialPortDevice.dlAuth()
   em XiaoMiFlash.code.bl.SerialPortDevice.ConfigureDDR(Int32 intSectorSize, Int32 buffer_sectors, String ddrType, Int32 m_iSkipStorageInit)
   em XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash()
[03:36:16  COM3]:no provision exit:COM3
[03:36:16  COM3]:flashSuccess False
[03:36:16  COM3]:isFactory False CheckCPUID False
[03:36:16  COM3]:before:flashSuccess is False set IsUpdate:True set IsDone True
[03:36:16  COM3]:after:flashSuccess is False set IsUpdate:false set IsDone true


2019-11-14 12:42:59
Reply Report
  • Followers

    11

  • Threads

    1

  • Replies

    11

  • Points

    38

Copyright©2010-2021 Xiaomi.com, All Rights Reserved

Quick Reply To Top Return to the list