[Android General] maximkonukh:
firehose for redmi 7?

i tested many firehoses, but in qfil and miflash errors

qfil: qsaharaserver fail

or

FHLoader Fail

(

20:25:59: INFO: FH_LOADER WAS CALLED EXACTLY LIKE THIS

************************************************

C:\Program Files (x86)\Qualcomm\QPST\bin\fh_loader.exe --port=\\.\COM7 --sendxml=rawprogram0.xml --search_path=C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=emmc

************************************************

20:25:59: DEBUG: Binary build date: Jun 25 2019 @ 03:16:10

20:25:59: DEBUG: Build Version: 19.06.25.03.16.10

20:25:59: INFO: Current working dir (cwd): C:\Users\maxim\AppData\Roaming\Qualcomm\QFIL\COMPORT_7\

20:25:59: INFO: Showing network mappings to allow debugging

20:25:59: DEBUG: Ќ®ўлҐ Ї®¤Є«озҐЁп Ўг¤гв § Ї®¬Ґл.

20:25:59: DEBUG:

20:25:59: DEBUG: ‚ бЇЁбЄҐ Ґв н«Ґ¬Ґв®ў.

20:25:59: DEBUG:

20:25:59: INFO:

20:25:59: INFO: Trying to store 'rawprogram0.xml' in string table

20:25:59: DEBUG: ==================================================================================

20:25:59: DEBUG: ==================================================================================

20:25:59: INFO: Looking for file 'rawprogram0.xml'

20:25:59: DEBUG: 1. Calling stat('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\rawprogram0.xml')

20:25:59: DEBUG: 2. Calling fopen('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\rawprogram0.xml') with AccessMode='rb'

20:25:59: DEBUG: Trying get filesize, calling fseek()

20:25:59: DEBUG: Found 'C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\rawprogram0.xml' (1337 bytes)

20:25:59: DEBUG: 2. Calling fopen('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\rawprogram0.xml') with AccessMode='r'

20:25:59: DEBUG: Trying get filesize, calling fseek()

20:25:59: DEBUG: User set ZLPAWAREHOST to 1

20:25:59: INFO: User wants to talk to port '\\.\COM7'

20:25:59: DEBUG: port_fd=0x108

20:25:59: INFO: Took 0.00000000 seconds to open port

20:25:59: INFO: Sorting TAGS to ensure order is <configure>,<erase>, others, <patch>,<power>

20:25:59: DEBUG: ==================================================================================

20:25:59: DEBUG: ==================================================================================

20:25:59: INFO: Looking for file '3'

20:25:59: DEBUG: 1. Calling stat('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\3')

20:25:59: DEBUG: 2. Calling fopen('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\3') with AccessMode='rb'

20:25:59: DEBUG: Trying get filesize, calling fseek()

20:25:59: DEBUG: Found 'C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\3' (8388608 bytes)

20:25:59: DEBUG: 2. Calling fopen('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\3') with AccessMode='rb'

20:25:59: DEBUG: Trying get filesize, calling fseek()

20:25:59: DEBUG: ==================================================================================

20:25:59: DEBUG: ==================================================================================

20:25:59: INFO: Looking for file '4'

20:25:59: DEBUG: 1. Calling stat('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\4')

20:25:59: DEBUG: 2. Calling fopen('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\4') with AccessMode='rb'

20:25:59: DEBUG: Trying get filesize, calling fseek()

20:25:59: DEBUG: Found 'C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\4' (33554432 bytes)

20:25:59: DEBUG: 2. Calling fopen('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\4') with AccessMode='rb'

20:25:59: DEBUG: Trying get filesize, calling fseek()

20:25:59: DEBUG: ==================================================================================

20:25:59: DEBUG: ==================================================================================

20:25:59: INFO: Looking for file '4'

20:25:59: DEBUG: 1. Calling stat('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\4')

20:25:59: DEBUG: 2. Calling fopen('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\4') with AccessMode='rb'

20:25:59: DEBUG: Trying get filesize, calling fseek()

20:25:59: DEBUG: Found 'C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\4' (33554432 bytes)

20:25:59: DEBUG: 2. Calling fopen('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\4') with AccessMode='rb'

20:25:59: DEBUG: Trying get filesize, calling fseek()

20:25:59: DEBUG: ==================================================================================

20:25:59: DEBUG: ==================================================================================

20:25:59: INFO: Looking for file 'gpt_main0.bin'

20:25:59: DEBUG: 1. Calling stat('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\gpt_main0.bin')

20:25:59: DEBUG: 2. Calling fopen('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\gpt_main0.bin') with AccessMode='rb'

20:25:59: DEBUG: Trying get filesize, calling fseek()

20:25:59: DEBUG: Found 'C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\gpt_main0.bin' (17408 bytes)

20:25:59: DEBUG: 2. Calling fopen('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\gpt_main0.bin') with AccessMode='rb'

20:25:59: DEBUG: Trying get filesize, calling fseek()

20:25:59: DEBUG: ==================================================================================

20:25:59: DEBUG: ==================================================================================

20:25:59: INFO: Looking for file 'gpt_backup0.bin'

20:25:59: DEBUG: 1. Calling stat('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\gpt_backup0.bin')

20:25:59: DEBUG: 2. Calling fopen('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\gpt_backup0.bin') with AccessMode='rb'

20:25:59: DEBUG: Trying get filesize, calling fseek()

20:25:59: DEBUG: Found 'C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\gpt_backup0.bin' (16896 bytes)

20:25:59: DEBUG: 2. Calling fopen('C:\onclite_images_V12.5.3.0.QFLCNXM_20211104.0000.00_10.0_cn\images\gpt_backup0.bin') with AccessMode='rb'

20:25:59: DEBUG: Trying get filesize, calling fseek()

20:25:59: INFO:

Total to be tansferd with <program> or <read> is 72.03 MB

20:25:59: INFO: Sending <configure>

20:25:59: DEBUG: CHANNEL DATA (P0000) (H00202) ( 228 bytes) - HOST TO TARGET -->

===========================================================================================================

<?xml version="1.0" encoding="UTF-8" ?>

<data>

<configure MemoryName="emmc" Verbose="0" AlwaysValidate="0" MaxDigestTableSizeInBytes="8192" MaxPayloadSizeToTargetInBytes="1048576" ZlpAwareHost="1" SkipStorageInit="0" />

</data>

============================================================================================================

20:25:59: DEBUG: CharsInBuffer=0 Trying to read from USB 8192 bytes

20:25:59: DEBUG: CHANNEL DATA (309 bytes) <-- TARGET to HOST

20:25:59: DEBUG: CharsInBuffer = 309

20:25:59: DEBUG: printBuffer:6017 PRETTYPRINT Buffer is 309 bytes

20:25:59: DEBUG: printBuffer:6094 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 <?xml version="1

20:25:59: DEBUG: printBuffer:6094 2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 55 54 .0" encoding="UT

20:25:59: DEBUG: printBuffer:6094 46 2D 38 22 20 3F 3E 3C 64 61 74 61 3E 3C 6C 6F F-8" ?><data><lo

20:25:59: DEBUG: printBuffer:6094 67 20 76 61 6C 75 65 3D 22 45 52 52 4F 52 3A 20 g value="ERROR:

20:25:59: DEBUG: printBuffer:6094 4F 6E 6C 79 20 6E 6F 70 20 61 6E 64 20 73 69 67 Only nop and sig

20:25:59: DEBUG: printBuffer:6094 20 74 61 67 20 63 61 6E 20 62 65 20 72 65 63 65 tag can be rece

20:25:59: DEBUG: printBuffer:6094 76 69 65 64 20 62 65 66 6F 72 65 20 61 75 74 68 vied before auth

20:25:59: DEBUG: printBuffer:6094 65 6E 74 69 63 61 74 69 6F 6E 2E 22 20 2F 3E 3C entication." /><

20:25:59: DEBUG: printBuffer:6094 2F 64 61 74 61 3E 3C 3F 78 6D 6C 20 76 65 72 73 /data><?xml vers

20:25:59: DEBUG: printBuffer:6094 69 6F 6E 3D 22 31 2E 30 22 20 65 6E 63 6F 64 69 ion="1.0" encodi

20:25:59: DEBUG: printBuffer:6094 6E 67 3D 22 55 54 46 2D 38 22 20 3F 3E 3C 64 61 ng="UTF-8" ?><da

20:25:59: DEBUG: printBuffer:6094 74 61 3E 3C 72 65 73 70 6F 6E 73 65 20 76 61 6C ta><response val

20:25:59: DEBUG: printBuffer:6094 75 65 3D 22 4E 41 4B 22 20 2F 3E 3C 2F 64 61 74 ue="NAK" /></dat

20:25:59: DEBUG: printBuffer:6094 61 3E 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D a><?xml version=

20:25:59: DEBUG: printBuffer:6094 22 31 2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 "1.0" encoding="

20:25:59: DEBUG: printBuffer:6094 55 54 46 2D 38 22 20 3F 3E 3C 64 61 74 61 3E 3C UTF-8" ?><data><

20:25:59: DEBUG: printBuffer:6094 6C 6F 67 20 76 61 6C 75 65 3D 22 6C 6F 67 62 75 log value="logbu

20:25:59: DEBUG: printBuffer:6094 66 40 30 78 30 38 30 37 41 41 30 30 20 66 68 40 f@0x0807AA00 fh@

20:25:59: DEBUG: printBuffer:6094 30 78 30 38 30 37 37 38 36 38 22 20 2F 3E 3C 2F 0x08077868" /></

20:25:59: DEBUG: printBuffer:6094 64 61 74 61 3E data>

20:25:59: DEBUG: printBuffer:6107

20:25:59: DEBUG: XML FILE (134 bytes): CharsInBuffer=309-134=175

-------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8" ?><data><log value="ERROR: Only nop and sig tag can be recevied before authentication." /></data>

-------------------------------------------------------------------------------------------

20:25:59: INFO: TARGET SAID: 'ERROR: Only nop and sig tag can be recevied before authentication.'

20:25:59: DEBUG: XML FILE (76 bytes): CharsInBuffer=175-76=99

-------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8" ?><data><response value="NAK" /></data>

-------------------------------------------------------------------------------------------

20:25:59: DEBUG: Response was 'NAK'

20:25:59: INFO: fh.attrs.MaxPayloadSizeToTargetInBytes = 1048576

20:25:59: INFO: fh.attrs.MaxPayloadSizeToTargetInBytesSupported = 1048576

20:25:59: INFO: Something failed. The target rejected your <configure>. Please inspect log for more information)

in miflash:

miflash 2017.4.25.0: sahara read and error with status: 20

in new miflash: programmer transfer error 4

or it asking authorization