From f6aae2b048966e2c5c065c9a9906aa6d021333d0 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 26 Aug 2018 22:38:13 -0400 Subject: [PATCH] Add hexpatch to remove Samsung defex in kernel Close #499 --- scripts/boot_patch.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index 73c8987d3..d498bd24c 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -146,6 +146,16 @@ if [ -f kernel ]; then 49010054011440B93FA00F71E9000054010840B93FA00F7189000054001840B91FA00F7188010054 \ A1020054011440B93FA00F7140020054010840B93FA00F71E0010054001840B91FA00F7181010054 + # Remove Samsung defex (A8 variant) + ./magiskboot --hexpatch kernel \ + 006044B91F040071802F005460DE41F9 \ + 006044B91F00006B802F005460DE41F9 + + # Remove Samsung defex (N9 variant) + ./magiskboot --hexpatch kernel \ + 603A46B91F0400710030005460C642F9 \ + 603A46B91F00006B0030005460C642F9 + # skip_initramfs -> want_initramfs ./magiskboot --hexpatch kernel \ 736B69705F696E697472616D6673 \