Need some help... #78
Replies: 6 comments 6 replies
-
|
Can you share the boot.img? |
Beta Was this translation helpful? Give feedback.
-
|
Oh, the unrecognized header version seems to be "device tree image size" |
Beta Was this translation helpful? Give feedback.
-
|
I can extract the "dt" from boot.img, at file offset 0x750800, size 0x0x38800 (226KiB). The actual dtb blob seems to start after 2KiB + 0x750800, aka. 0x751000. The actual blob can be decompiled with dtc. But after the declared "dt" area, I can also find some unknown data. Please comment if you know its meaning/definition. I never built full lineage images, I can have a try if I have time later. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, Is it possible to use the command ./gradlew pack bypassing the hash check? Thanks Thanks. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for taking your time to look into this. stock boot.img - https://drive.google.com/file/d/1uVj3sZ32I4BUIxd6Ar9wuIatTNREA1VQ/view?usp=sharing |
Beta Was this translation helpful? Give feedback.
-
|
One more thing if you don't mind. What's the difference between the .clear and the .signed boot files besides the size? Thank you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I checked out master, and ran
./gradlew unpackand ended up with this error:I can see that the header version is coming from the

probeHeaderVersionfunction, and that's returning the 32bit integer starting at 0x28, but as mine has00 88 03 00in the 4 bytes starting at 0x28:So it returns a header version of 231424, which isn't 0-4...
This is a lineageOS boot image, extracted via TWRP.
When I modified 0x28-0x31 to be all 0x00s, then I could successfully unpack ✅:
... and repack (no errors):
...⚠ but the original boot image is 16.00MB and the repacked image is only 7.31MB... ❓
Beta Was this translation helpful? Give feedback.
All reactions