Use hex patch for dtb rather than relying on magisk's bugged method:
Replace ',verify' with nothing:
,verify = 2c 76 65 72 69 66 79
verify, = 76 65 72 69 66 79 2c
verify = 76 65 72 69 66 79
Perhaps a simple sed patch would do the trick?
sed -i -e 's/\x2c\x76\x65\x72\x69\x66\x79/\x00\x00\x00\x00\x00\x00\x00/g' -e 's/\x76\x65\x72\x69\x66\x79\x2c/\x00\x00\x00\x00\x00\x00\x00/g' -e 's/\x76\x65\x72\x69\x66\x79/\x00\x00\x00\x00\x00\x00/g' $overlay/dtb
(Assuming it's unpacked properly and stuff)
Use hex patch for dtb rather than relying on magisk's bugged method: Replace ',verify' with nothing: ,verify = 2c 76 65 72 69 66 79 verify, = 76 65 72 69 66 79 2c verify = 76 65 72 69 66 79
Perhaps a simple sed patch would do the trick?
sed -i -e 's/\x2c\x76\x65\x72\x69\x66\x79/\x00\x00\x00\x00\x00\x00\x00/g' -e 's/\x76\x65\x72\x69\x66\x79\x2c/\x00\x00\x00\x00\x00\x00\x00/g' -e 's/\x76\x65\x72\x69\x66\x79/\x00\x00\x00\x00\x00\x00/g' $overlay/dtb
(Assuming it's unpacked properly and stuff)With my OP5T. This is what is extracted:
/tmp/anykernel/split_img: boot.img-base boot.img-board boot.img-cmdline boot.img-hash boot.img-kerneloff boot.img-oslevel boot.img-osversion boot.img-pagesize boot.img-ramdisk.cpio.gz boot.img-ramdiskoff boot.img-secondoff boot.img-tagsoff boot.img-zImage
I'm assuming zImage in split_img is where dtb lies?
For my reference: https://source.android.com/devices/architecture/dto/implement
dtb is typically found in zImage in split_disk, dtbo is a separate partition/img. Both are imgs and are patched the same way