jcadduono / lazyflasher

An easy way to patch ramdisks, replace kernels, and install files to your phone through recovery.
BSD 2-Clause "Simplified" License
227 stars 115 forks source link

Error: Unpacking boot image failed! #6

Open alexceltare2 opened 4 years ago

alexceltare2 commented 4 years ago

This error occurs on my Galaxy S6 and I assume also in further Galaxy devices. However the following zip patches correctly: https://androidfilehost.com/?fid=24459283995297893

jcadduono commented 4 years ago

with latest commit bootimg shared executable? probably libc mismatch, might need to recompile all the binaries static, i have considered trying to distribute libc (or musl, possibly, but i can't support selinux-inject with it, however i'm not sure anyone is using that) for each arch inside lazyflasher but it's been a mess and i don't have the time to figure it out the libc changes between each android major version is rather frustrating

alexceltare2 commented 4 years ago

I assume the problem lies in not finding the correct boot_block. In this patch it finds it in /dev/sda8 while in the working zip is found in /dev/block/platform/15570000.ufs/by-name/BOOT