bkerler / edl

Inofficial Qualcomm Firehose / Sahara / Streaming / Diag Tools :)
GNU General Public License v3.0
1.6k stars 376 forks source link

SDM630 Support #100

Closed freetink3r closed 3 years ago

freetink3r commented 3 years ago

Hello,

When I try to run edl.py against the Kyocera DuraForce Pro 2 in EDL mode, I get the following:

~/workspace/edl/edl$ ./edl.py printgpt
Qualcomm Sahara / Firehose Client V3.3 (c) B.Kerler 2018-2021.
main - Trying with no loader given ...
main - Waiting for the device
main - Device detected :)
main - Mode detected: sahara
Device is in EDL mode .. continuing.
sahara -
------------------------
HWID:              0x000ac0e100390060 (MSM_ID:0x000ac0e1,OEM_ID:0x0039,MODEL_ID:0x0060)
CPU detected:      "SDM630"
PK_HASH:           0xafca69d4235117e5bfc21467068b20df85e0115d7413d5821883a6d244961581
Serial:            0x7d18477c

sahara
sahara - [LIB]: Couldn't find a loader for given hwid and pkhash (000ac0e100390060_afca69d4235117e5_[FHPRG/ENPRG].bin) :(
Device is in an unknown sahara state, resetting
resp={'cmd': 1, 'len': 48, 'version': 2, 'version_min': 1, 'max_cmd_len': 1024, 'mode': 0, 'res1': 0, 'res2': 0, 'res3': 0, 'res4': 0, 'res5': 0, 'res6': 0, 'object_size': 48, 'raw_data': bytearray(b'\x01\x00\x00\x000\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')}

~/workspace/edl/edl$ ./edl.py printgpt
Qualcomm Sahara / Firehose Client V3.3 (c) B.Kerler 2018-2021.
main - Trying with no loader given ...
main - Waiting for the device
main - Device detected :)
main - Unknown mode. Aborting.

I tried using the loader in qualcomm/factory/630, but I get the following error:

~/workspace/edl/edl$ ./edl.py rf flash.bin --loader=Loaders/qualcomm/factory/sdm630/000ac0e100000000_7be49b72f9e43372_fhprg_asus_peek.bin
Qualcomm Sahara / Firehose Client V3.3 (c) B.Kerler 2018-2021.
main - Using loader Loaders/qualcomm/factory/sdm630/000ac0e100000000_7be49b72f9e43372_fhprg_asus_peek.bin ...
main - Waiting for the device
main - Device detected :)
main - Mode detected: sahara
Device is in EDL mode .. continuing.
sahara -
------------------------
HWID:              0x000ac0e100390060 (MSM_ID:0x000ac0e1,OEM_ID:0x0039,MODEL_ID:0x0060)
CPU detected:      "SDM630"
PK_HASH:           0xafca69d4235117e5bfc21467068b20df85e0115d7413d5821883a6d244961581
Serial:            0x7d18477c

sahara - Uploading loader Loaders/qualcomm/factory/sdm630/000ac0e100000000_7be49b72f9e43372_fhprg_asus_peek.bin ...
sahara
sahara - [LIB]: Unexpected error on uploading, maybe signature of loader wasn't accepted ?
'int' object is not subscriptable
No suitable loader found :(

How can I identify a loader for this phone, or how can I help modify/port an existing one?

Thanks!

Anthony

bkerler commented 3 years ago

You need to get the firmware for this specific device and its signed loader. You cannot use any loader, it has to match your device pkhash, otherwise it will fail.