Magisk/native/jni/magiskboot
osm0sis 7f6a6016d6 magiskboot: add simple workaround for Samsung offset header variant
- some Samsung devices (e.g. Galaxy S5 SMG-900H) use a slightly different AOSP bootimg.h variant with `#define BOOT_NAME_SIZE 20` instead of 16
- since all known examples of these device images do not have anything in the NAME or CMDLINE fields, and the bootloader also accepts standard AOSP images, simply offset the SHA1/SHA256 detection by 4 bytes to avoid false positives from these images, remain an equally effective detection shortcut, and ensure a proper SHA1 checksum on repack

aosp-dtbhdt2-4offhash-seandroid-256sig-samsung_gs5-smg900h-boot.img
UNPACK CHECKSUM [00000000b11580f7d20f70297cdc31e02626def0356c82b90000000000000000]
REPACK CHECKSUM [73b18751202e56c433f89dfd1902c290eaf4eef3e167fcf03b814b59a5e984b6]
AIK CHECKSUM    [b11580f7d20f70297cdc31e02626def0356c82b9000000000000000000000000]

This patch should result in a `magiskboot unpack -n boot.img; magiskboot repack boot.img` new-boot.img matching the AIK CHECKSUM above.
2019-11-16 03:23:49 -05:00
..
bootimg.cpp magiskboot: add simple workaround for Samsung offset header variant 2019-11-16 03:23:49 -05:00
bootimg.h Pedantic boot_img_hdr multi-version support 2019-10-15 01:46:29 -04:00
compress.cpp Rename classes and small adjustments 2019-09-25 23:55:39 -04:00
compress.h Rename classes and small adjustments 2019-09-25 23:55:39 -04:00
dtb.cpp magiskboot: add SPRD dt support 2019-10-23 06:58:31 -04:00
format.cpp Add support for PXA DTBs 2019-10-08 23:49:21 -04:00
format.h Add support for PXA DTBs 2019-10-08 23:49:21 -04:00
hexpatch.cpp 'magiskboot hexpatch' will exit with status 1 when nothing patched. 2019-06-10 21:41:40 -07:00
magiskboot.h magiskboot: add unpack -n to help with repack validity tests 2019-10-31 02:44:25 -04:00
main.cpp Better argument parsing logic 2019-10-31 02:44:25 -04:00
pattern.cpp Don't pass by reference 2019-09-26 03:49:05 -04:00
ramdisk.cpp Fix patch verity and forceencrypt 2019-09-26 03:14:56 -04:00