R0rt1z2 / lkpatcher

Streamline tool and module to patch bootloader (LK) images of MTK device(s).
https://lkpatcher.r0rt1z2.com
GNU General Public License v3.0
92 stars 16 forks source link

trouble patching lk.img #28

Open smileyraver opened 1 week ago

smileyraver commented 1 week ago

lk.img.zip

could you please patch my lk.img - i'm having trouble with it.

i have only renamed it - not actually zipped it

R0rt1z2 commented 1 week ago

It seems to be working fine on my end. What specific issue are you encountering?

r0rt1z2@r0rt1z2: $ python3 -m lkpatcher lk.img
[root] [INFO] [2024-10-28 19:07:53] MediaTek bootloader (LK) patcher - version: 3.0.0 by R0rt1z2.
[lkpatcher.patcher] [INFO] [2024-10-28 19:07:53] Successfully loaded 5 patches.
[lkpatcher.patcher] [WARNING] [2024-10-28 19:07:53] Skipping invalid needle 2de9f04fadf5ac5d.
[lkpatcher.patcher] [INFO] [2024-10-28 19:07:53] Successfully applied 4 patches.
[root] [INFO] [2024-10-28 19:07:53] Patched image saved to lk-patched.img.
r0rt1z2@r0rt1z2: $ python3 -m lkpatcher lk.img

Just like you've did, I only renamed it rather than actually zipping it: lk-patched.img.zip

smileyraver commented 1 week ago

i will re-run it as i was on windows 11 - it gave me invalid needle error - it didnt get to the applied patches stage from memory and i didnt even think to paste the outcome in my issue that i posted.

i have just setup a new linux system as been meaning to for a while and been having a heap of issues with win 11 and python scripts for some reason.

i will finish setting up the linux system and try it again - i will be curious to see if if gives me the same error - but i will run it again when i boot back into win 11 and paste the outcome

but thanks