Magisk/native/jni
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
..
core Move su logs out of magiskdb 2019-11-14 00:01:06 -05:00
external Fix busybox scripts again 2019-11-02 01:16:54 -04:00
include Use ContentProvider call method for communication 2019-11-04 14:32:28 -05:00
init Fix some A/B devices unable to boot into recovery 2019-10-26 17:12:35 -04:00
magiskboot magiskboot: add simple workaround for Samsung offset header variant 2019-11-16 03:23:49 -05:00
magiskhide Attempt to rescan zygote multiple times 2019-11-01 02:12:28 -04:00
magiskpolicy magiskpolicy: rules: standardize update_engine sepolicy when rooted 2019-09-23 07:55:25 -04:00
resetprop Minor code changes across all sources 2019-06-30 19:09:31 -07:00
su Reuse buffer 2019-11-13 02:36:45 -05:00
systemproperties Some code adjustments 2019-02-24 23:09:34 -05:00
utils Properly solve the connection problem 2019-11-07 17:41:59 -05:00
.gitignore Add entrypoint to build test 2019-04-01 02:46:09 -04:00
Android.mk Update to support updated FrankeNDK 2019-07-07 17:38:57 -07:00
Application.mk Update to support updated FrankeNDK 2019-07-07 17:38:57 -07:00