Commit graph

562 commits

Author SHA1 Message Date
Bjoern Kerler
cef0076e1d
Merge pull request #591 from alltern/master
Some checks failed
Python application / build (push) Has been cancelled
Easier to install linux rules and confs and added blacklist qcserial as well as a libmtp blocker for the edl tool.
2024-10-12 15:09:12 +02:00
alltern
f752662edb
Update blacklist-qcserial.conf 2024-10-11 21:45:37 -04:00
alltern
fdba5b7ece
Update README.md 2024-10-09 22:48:16 -04:00
alltern
793ff4ea7a
Update install-linux-edl-drivers.sh 2024-10-09 22:37:39 -04:00
alltern
f4c4660150
Rename blacklist-qcserial to blacklist-qcserial.conf 2024-10-09 22:37:03 -04:00
alltern
0eaa6c31c7
Update README.md 2024-10-09 22:33:39 -04:00
alltern
2820a8cd91
Add files via upload 2024-10-09 22:32:05 -04:00
alltern
4a411595b4
Create blacklist-qcserial 2024-10-09 22:19:49 -04:00
alltern
4ddcfe5e67
Create 69-libmtp.rules 2024-10-09 22:18:48 -04:00
alltern
92f2a2afe7
Merge pull request #1 from alltern/alltern-patch-2
Add files via upload
2024-10-09 22:10:29 -04:00
alltern
41cabef97f
Add files via upload 2024-10-09 22:10:00 -04:00
alltern
b4c8a78ca9
Add files via upload 2024-10-09 22:06:41 -04:00
alltern
8e08afe5a0
Add files via upload
Update EDL UDEV rules.
2024-10-09 22:03:27 -04:00
Bjoern Kerler
d2c585e4cc
Merge pull request #569 from Dinolek/auth
Add xiaomi empty token(works on <sm8350)
2024-08-27 17:39:26 +02:00
Dinolek
f2a04c833c
Lazy init modules
Fixes "ERROR: Only nop and sig tag can be recevied before authentication." message before authentification

Signed-off-by: Dinolek <github@dinolek.me>
2024-07-07 23:05:48 +02:00
Dinolek
ec43594ccd
Add xiaomi empty token(works on <sm8350)
Signed-off-by: Dinolek <github@dinolek.me>
2024-07-07 23:05:22 +02:00
Dinolek
5c1a562f54
Base64 encode xiaomi encrypted token
Signed-off-by: Dinolek <github@dinolek.me>
2024-07-07 23:02:40 +02:00
Dinolek
113b329991
Fix xiaomi edl auth check
Signed-off-by: Dinolek <github@dinolek.me>
2024-07-07 23:02:23 +02:00
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