[Xiaomi Mi Max 3 Questions & Answers] toouur:
Hi everyone, I kindly request your help because I am completely puzzled whether I have any options to recover my phone by myself or need to visit a repair service (which I do not want really)

So, I out my Phone to run some Youtube yesterday (it was 90% chargfed) and it stopped playback in 5 minutes and I fell asleep. In the morning I could see a display showing youtube at 20% brightness. After I pressed the power button screen went black and after that, I can not power the device up or enter fastboot, there is also nothing after I charge it.

Once connected to PC I can see it in EDL in MiFlash. I found out that there is a restriction by Xiaomi to flash from EDL nowadays. I googled and found the workaround: https://www.droidwin.com/fix-mi-account-authorization-unbrick-xiaomi-edl-mode/

I did it and after some attempts, I am finally stuck with this error which I can not find any refers to:

View attachment 5250777

Here are the logs:

[18:26:24]:lsusb path:"C:\XiaoMi\MiFlash20191206\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[18:26:24]:ls ubs :Standard Serial over Bluetooth link (COM6)
Standard Serial over Bluetooth link (COM4)
Standard Serial over Bluetooth link (COM5)
Qualcomm HS-USB QDLoader 9008 (COM10)

[18:26:24]:vboytest HubPath:
[18:26:24]:vboytest HubPath: USB#ROOT_HUB30#4&73f3995&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[18:26:24]:Specified cast is not valid.: at XiaoMiFlash.code.Utility.TreeViewUsbItem.AddPortNode(String HubPath, Int32 NumberOfPorts)
[18:26:24]:vboytest HubPath: USB#ROOT_HUB30#5&1247dd3&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[18:26:24]:vboytest HubPath: USB#VIA_ROOT_HUB#5&7d0f70f&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[18:26:24]:vboytest HubPath:
[18:26:24]:GetScriptDevices
[18:26:24]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[18:26:24]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[18:26:24]:add device COM10 index 10
[18:26:27]:lsusb path:"C:\XiaoMi\MiFlash20191206\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[18:26:27]:ls ubs :Standard Serial over Bluetooth link (COM6)
Standard Serial over Bluetooth link (COM4)
Standard Serial over Bluetooth link (COM5)
Qualcomm HS-USB QDLoader 9008 (COM10)

[18:26:27]:vboytest HubPath:
[18:26:27]:vboytest HubPath: USB#ROOT_HUB30#4&73f3995&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[18:26:27]:Specified cast is not valid.: at XiaoMiFlash.code.Utility.TreeViewUsbItem.AddPortNode(String HubPath, Int32 NumberOfPorts)
[18:26:27]:vboytest HubPath: USB#ROOT_HUB30#5&1247dd3&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[18:26:27]:vboytest HubPath: USB#VIA_ROOT_HUB#5&7d0f70f&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[18:26:27]:vboytest HubPath:
[18:26:27]:GetScriptDevices
[18:26:27]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[18:26:27]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[18:26:27]:FlashingDevice.flashDeviceList.Remove COM10
[18:26:27]:add device COM10 index 10
[18:26:27]:Thread start,thread id 27,thread name COM10
[18:26:57]:Thread stopped, thread id 27, thread name COM10

[18:26:40]:10 COM10 12.5074169s [18:26:40 COM10]: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" />
</data>

[18:26:57]:10 COM10 30.0098084s Root element is missing.

[18:26:27 COM10]:MiFlash 2019.12.6.0
[18:26:27 COM10]:flash in thread name:COM10,id:27
[18:26:27 COM10]:flash in thread name:COM10,id:27
[18:26:27 COM10]:[COM10]:start flash.
[18:26:28 COM10]:cannot receive hello packet,MiFlash is trying to reset status!
[18:26:29 COM10]:try to reset status.
[18:26:29 COM10]:Switch mode back
[18:26:29 COM10]:cannot receive hello packet,MiFlash is trying to reset status!
[18:26:30 COM10]:received hello packet
[18:26:30 COM10]:programmertype: 0
[18:26:30 COM10]:vboytest:D:\flash\images
[18:26:30 COM10]:download programmer file: D:\flash\images\prog_emmc_firehose_Sdm660_ddr.elf
[18:26:30 COM10]:download programmer D:\flash\images\prog_emmc_firehose_Sdm660_ddr.elf
[18:26:38 COM10]:Send done packet
[18:26:38 COM10]:file D:\flash\images\prog_emmc_firehose_Sdm660_ddr.elf transferred successfully
[18:26:40 COM10]:send nop command
[18:26:40 COM10]:send command:<?xml version="1.0" ?><data><nop verbose="0" value="ping"/></data>
[18:26:40 COM10]:get response from target
[18:26:40 COM10]:resdump:<?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Binary build date: Oct 26 2018 @ 09:56:38"/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Chip serial num: 2373905150 (0x8d7eeafe)"/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Supported Functions: program configure nop sig firmwarewrite patch setbootablestoragedrive ufs emmc power benchmark read getstorageinfo getsha256digest erase "/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Binary build date: Oct 26 2018 @ 09:56:38
"/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="fh.attrs.Verbose is set to 0"/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Chip serial num: 2373905150 (0x8d7eeafe)"/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<log value="Supported Functions: program configure nop sig firmwarewrite patch setbootablestoragedrive ufs emmc power benchmark read getstorageinfo getsha256digest erase "/>
</data><?xml version="1.0" encoding="UTF-8" ?>
<data>
<response value="ACK" />
</data>

[18:26:40 COM10]:send configure command
[18:26:40 COM10]:send command:<?xml version="1.0" ?><data><configure verbose="0" AlwaysValidate="0" ZlpAwareHost="1" MaxPayloadSizeToTargetInBytes="131072" MemoryName="emmc" SkipStorageInit="0"/></data>
[18:26:40 COM10]:get response from target
[18:26:40 COM10]: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" />
</data>

[18:26:40 COM10]:flashSuccess False
[18:26:40 COM10]:isFactory False CheckCPUID False
[18:26:40 COM10]:before:flashSuccess is False set IsUpdate:True set IsDone True
[18:26:40 COM10]:after:flashSuccess is False set IsUpdate:false set IsDone true
[18:26:40 COM10]:no Binary dump
[18:26:41 COM10]:no Binary dump
[18:26:42 COM10]:no Binary dump
[18:26:42 COM10]:edl authentication
[18:26:42 COM10]:GetUserInfo
[18:26:55 COM10]:AuthFlash
[18:26:55 COM10]:need edl authentication.
[18:26:55 COM10]:authentication edl.
[18:26:55 COM10]:send command:<?xml version="1.0" ?><data> <sig TargetName="req" verbose="1"/></data>
[18:26:55 COM10]:get response from target
[18:26:55 COM10]:no Binary dump
[18:26:56 COM10]:no Binary dump
[18:26:56 COM10]:no Binary dump
[18:26:57 COM10]:no Binary dump
[18:26:57 COM10]:System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at XiaoMiFlash.code.bl.SerialPortDevice.dlAuth()
at XiaoMiFlash.code.bl.SerialPortDevice.ConfigureDDR(Int32 intSectorSize, Int32 buffer_sectors, String ddrType, Int32 m_iSkipStorageInit)
at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash() at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at XiaoMiFlash.code.bl.SerialPortDevice.dlAuth()
at XiaoMiFlash.code.bl.SerialPortDevice.ConfigureDDR(Int32 intSectorSize, Int32 buffer_sectors, String ddrType, Int32 m_iSkipStorageInit)
at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash()
[18:26:57 COM10]:no provision exit:COM10
[18:26:57 COM10]:flashSuccess False
[18:26:57 COM10]:isFactory False CheckCPUID False
[18:26:57 COM10]:before:flashSuccess is False set IsUpdate:True set IsDone True
[18:26:57 COM10]:after:flashSuccess is False set IsUpdate:false set IsDone true

Would really appreciate any help here.