Commit graph

544 commits

Author SHA1 Message Date
Bjoern Kerler
5367174021
Add support for OlympicLE 2024-07-05 21:25:21 +02:00
Bjoern Kerler
f22a53bed2
Merge pull request #565 from ChrisEric1/master
Fix footer command & Partially revert commit a9e5008
2024-06-26 17:51:42 +02:00
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
8e179d84ae Partially revert commit a9e5008
This commit fixes this from happening on running a edl command without rebooting the device on every command:

```
Qualcomm Sahara / Firehose Client V3.62 (c) B.Kerler 2018-2024.
main - Using loader 0000000000000000_b01193679ab2eac7_fhprg_peek.bin ...
main - Waiting for the device
main - Device detected :)
main - Mode detected: firehose
Traceback (most recent call last):
  File "/usr/local/bin/edl", line 393, in <module>
    base.run()
  File "/usr/local/bin/edl", line 295, in run
    version = conninfo.get("data").version
AttributeError: 'NoneType' object has no attribute 'version'
root@HP-PAVILION-590:~#
```

Signed-off-by: Christopher Lentocha <christopherericlentocha@gmail.com>
2024-06-25 18:51:42 -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
Bjoern Kerler
ffcb9262b5
Merge pull request #564 from ChrisEric1/master
SoC dumping fixes
2024-06-25 23:44:24 +02: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
Christopher Lentocha
856590bce8 Add Batch Script for Easier Use on Windows
This was copied from MTKClient, but renamed MTK to EDL, of course

Signed-off-by: Christopher Lentocha <christopherericlentocha@gmail.com>
2024-06-21 12:39:33 -04:00
Bjoern Kerler
a6bb478da0
Merge pull request #558 from ColdWindScholar/master
More Beautiful and bug fixes
2024-06-13 23:59:29 +02:00
ColdWindScholar
625cda6086 fix https://github.com/bkerler/edl/issues/556 2024-06-10 01:51:55 +08:00
ColdWindScholar
a9e50083a2 fix https://github.com/bkerler/edl/issues/556 2024-06-10 01:47:36 +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
Bjoern Kerler
3e4e569cf7
Merge pull request #549 from mkropat/projid-detection
Support hex digits in OnePlus projid
2024-05-23 18:52:49 +02: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
Bjoern Kerler
f3e97765c4
Merge pull request #539 from bongbui321/fix_erase
fix erase to return when erase success
2024-04-26 09:45:33 +02:00
bongbui321
0ba6b31435 less verbose for setactiveslot 2024-04-25 02:50:16 -04:00
bongbui321
146bb6165e remove test_script 2024-04-25 02:39:59 -04:00
bongbui321
9d0d43bbdf Less verbose after first run() 2024-04-25 02:37:58 -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
Bjoern Kerler
2ed24c090f
Merge pull request #533 from bongbui321/exit_with_error
exit with error
2024-04-24 10:01:45 +02:00
Bjoern Kerler
754f13461d
Merge pull request #531 from bongbui321/check_active_slot_before
setactiveslot: check if the chaging activeslot is already `active'
2024-04-19 07:43:30 +02:00
bongbui321
60d2696225 sys.exti(1) 2024-04-17 17:19:17 -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
Bjoern Kerler
f58350f784
Merge pull request #528 from bongbui321/faster_setactiveslot
faster setactiveslot
2024-04-07 00:34:30 +02: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
Bjoern Kerler
ab98fec4e2
Merge pull request #526 from bongbui321/fix_sparse
Better performance for sparse image flashing
2024-03-29 10:25:35 +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
Bjoern Kerler
03ab23336e
Merge pull request #523 from bongbui321/test_setactive
Ensure integrity of gpt header partitions
2024-03-26 22:38:29 +01:00
bongbui321
f629630592 remove 2024-03-26 13:55:05 -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
ba18b87868
Update README.md 2024-03-22 08:10:45 +01: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