Commit graph

156 commits

Author SHA1 Message Date
Christopher Lentocha
bd0d89224c Remove the print command used during testing
On "Fix footer command" commit

Signed-off-by: Christopher Lentocha <christopherericlentocha@gmail.com>
2024-06-25 18:57:30 -04:00
Christopher Lentocha
9f78e26c11 Fix footer command
The footer command had syntax issues that prevented the use of it. I mentioned about it on https://github.com/bkerler/edl/pull/564 but decided to fix it myself for everyone.

Signed-off-by: Christopher Lentocha <christopherericlentocha@gmail.com>
2024-06-25 18:50:09 -04:00
Christopher Lentocha
f2ad4317f4 Fix qfp & pbl dump support on APQ8009w
The "w" at the end, HAS to be a lower case "w", due to "TargetName=MSM8909w", rename it from "W" to "w" to fix that.
Add APQ8009w to pbl dumping with a "w" loader (a non-"w" loader would work but it would show as "APQ8009" instead of "APQ8009w")
What is the mention of Wear3100 still doing in here? Remove that, as Wear2100 is the same as that, but it should be called by chipset anyways.
Also, the Snapdragon 212 is actually a "MSM8909v2" (note the v2).
PBL dumping doesn't however fully work on my mobvoi-catfish, it gets to 75%, and reboots, no matter what loader I use.

```

Qualcomm Sahara / Firehose Client V3.62 (c) B.Kerler 2018-2024.
main - Using loader /Loaders/qualcomm/model_generic/msm8909w/0000000000000000_b01193679ab2eac7_fhprg_peek.bin ...
main - Waiting for the device
main - Device detected :)
sahara - Protocol version: 2, Version supported: 1
main - Mode detected: sahara
sahara -
Version 0x2
------------------------
HWID:              0x000520e100000000 (MSM_ID:0x000520e1,OEM_ID:0x0000,MODEL_ID:0x0000)
CPU detected:      "APQ8009w"
PK_HASH:           0xcc3153a80293939b90d02d3bf8b23e0292e452fef662c74998421adad42a380f
Serial:            0x16e0f376

sahara - Protocol version: 2, Version supported: 1
sahara - Uploading loader /Loaders/qualcomm/model_generic/msm8909w/0000000000000000_b01193679ab2eac7_fhprg_peek.bin ...
sahara - 32-Bit mode detected.
sahara - Firehose mode detected, uploading...
sahara - Loader successfully uploaded.
main - Trying to connect to firehose loader ...
firehose_client
firehose_client - [LIB]: No --memory option set, we assume "eMMC" as default ..., if it fails, try using "--memory" with "UFS","NAND" or "spinor" instead !
firehose
firehose - [LIB]: !DEBUG! rsp.data: 'bytearray(b'<?xml version="1.0" encoding="UTF-8" ?><data><log value="logbuf@0x080548D0 fh@0x08051738" /></data>')'
firehose - TargetName=MSM8909w
firehose - MemoryName=eMMC
firehose - Version=1
firehose - Trying to read first storage sector...
firehose - Running configure...
firehose_client - Supported functions:
-----------------
firehose - Peek: Address(0x100000),Size(0x1ffb0)
Progress: |██████████████████████████████████████------------|  75.0% Complete                                                                                                                                   DeviceClass - USBError(5, 'Input/Output Error')
Traceback (most recent call last):
  File "/home/ce1cecl/edl/./edl", line 393, in <module>
    base.run()
  File "/home/ce1cecl/edl/./edl", line 385, in run
    if not fh.handle_firehose(cmd, options):
  File "/home/ce1cecl/edl/edlclient/Library/firehose_client.py", line 397, in handle_firehose
    if self.firehose.cmd_peek(target_name[0][0], target_name[0][1], filename, True):
  File "/home/ce1cecl/edl/edlclient/Library/firehose.py", line 1682, in cmd_peek
    rdata = self.xml.getlog(tmp)[0].replace("0x", "").replace(" ", "")
IndexError: list index out of range
root@LenovoLegionT5:/home/ce1cecl/edl#

```

Signed-off-by: Christopher Lentocha <christopherericlentocha@gmail.com>
2024-06-21 12:45:14 -04:00
ColdWindScholar
625cda6086 fix https://github.com/bkerler/edl/issues/556 2024-06-10 01:51:55 +08:00
ColdWindScholar
3b9a6927fb Normative code 2024-06-10 01:44:14 +08:00
ColdWindScholar
1a1bec8671 Normative code 2024-06-10 01:28:03 +08:00
ColdWindScholar
7157514853 Remove Some useless Codes 2024-06-10 01:25:50 +08:00
ColdWindScholar
7f14a79019 Reformat code
Remove Some useless Codes
Replace '2018-2023' to '2018-2024'
2024-06-10 01:19:09 +08:00
ColdWindScholar
084ab71db2 Reformat code
Fix A bug in enableadb
2024-06-10 01:06:20 +08:00
Michael Kropat
6e8f1cf7e6 Support hex digits in projid
Most of the deviceconfig keys have only 0-9 digits, however the format
is actually hex, as evidenced by a handful of entries (for example: OP9
Pro TMO / "2085A").
2024-05-22 23:12:11 -04:00
Bjoern Kerler
8573eba1b5
Merge pull request #540 from bongbui321/less_verbose
Less verbose after first run()
2024-04-26 09:46:15 +02:00
bongbui321
0ba6b31435 less verbose for setactiveslot 2024-04-25 02:50:16 -04:00
bongbui321
9935d48c7f remove test_script 2024-04-25 01:03:44 -04:00
bongbui321
cd450cb4fa fix erase to return when erase success 2024-04-25 00:58:34 -04:00
bongbui321
e89f40adb5 use backupgpt 2024-04-17 05:23:13 -04:00
bongbui321
7689ab1007 improve setactiveslot 2024-04-17 02:42:52 -04:00
bongbui321
05dfe77239 don't check xbl luns 2024-04-06 14:08:42 -04:00
bongbui321
072ac71ae6 faster setactiveslot 2024-04-06 03:40:55 -04:00
Bjoern Kerler
81d30c9039
Merge pull request #524 from bongbui321/improve_getactiveslot
Improve `getactiveslot` command
2024-03-29 10:46:22 +01:00
bongbui321
1474fc0d3c better performance sparse 2024-03-28 20:05:43 -04:00
bongbui321
5748dd5b1e b 2024-03-28 03:04:58 -04:00
bongbui321
3ba102a995 backup 2024-03-28 03:03:01 -04:00
bongbui321
d61a4e1ba1 improve getactiveslot 2024-03-28 02:54:17 -04:00
bongbui321
32dea61199 update name 2024-03-26 04:05:02 -04:00
bongbui321
dc5b05b008 good 2024-03-26 03:58:13 -04:00
bongbui321
569a21a5f7 good 2024-03-26 00:34:10 -04:00
bongbui321
f968e0956a good 2024-03-25 01:36:10 -04:00
bongbui321
c8eb0ba324 not yet 2024-03-25 01:32:34 -04:00
bongbui321
ed32ba0b15 test 2024-03-24 23:02:59 -04:00
bongbui321
dfeea06688 test 2024-03-24 22:50:30 -04:00
Bjoern Kerler
e832a3d776
Merge pull request #519 from bongbui321/hardcode_flags_boot
Follow flags setting standard of fastboot for `boot` partitions
2024-03-22 08:10:13 +01:00
Hoang Bui
4514b83693
fix typeo 2024-03-21 01:27:44 -04:00
bongbui321
db1f818920 getactiveslot 2024-03-21 01:25:04 -04:00
Hoang Bui
3112252a9c
fix 2024-03-21 01:04:49 -04:00
bongbui321
7228c96d7f follow fastboot standard 2024-03-21 00:43:00 -04:00
bongbui321
66b9871365 improve speed 2024-03-19 04:21:30 -04:00
bongbui321
4d592bb3f4 no assert 2024-03-13 21:30:31 -04:00
bongbui321
48523af093 cleanup + faster 2024-03-12 01:01:58 -04:00
bongbui321
a0ef047c8d good 2024-03-12 00:33:42 -04:00
bongbui321
a6a190a9b9 not yet 2024-03-10 00:21:11 -05:00
bongbui321
fa5f6ad45e minor cleanup 2024-03-09 16:48:11 -05:00
bongbui321
e82ce8218b good find and patch 2024-03-09 15:46:48 -05:00
bongbui321
de4b66c26d this is so wrong and so hard to modify 2024-03-09 14:12:02 -05:00
bongbui321
2ae6c99b9a good start 2024-03-07 23:44:23 -05:00
bongbui321
226699f392 fix set inactive slot 2024-03-07 17:57:35 -05:00
bongbui321
195a50c02e fix indent 2024-03-06 01:52:56 -05:00
bongbui321
8f09c49ff7 set every active partition 2024-03-06 01:16:21 -05:00
bongbui321
69d9a7e772 fix setactiveslot 2024-03-06 00:04:47 -05:00
bongbui321
bd36481568 Merge branch 'master' into fix_setactiveslot 2024-03-05 23:48:28 -05:00
bongbui321
762c76300d tmp fix 2024-03-05 23:46:43 -05:00