From dd9ddd20195872e0c63cc85bfd269b22935e899f Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sat, 20 Oct 2018 00:23:07 -0400 Subject: [PATCH] Remove unnecessary instruction from Defex hexpatch Close #489 --- scripts/boot_patch.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index 2d7e3f12d..5b5797483 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -147,11 +147,9 @@ if [ -f kernel ]; then A1020054011440B93FA00F7140020054010840B93FA00F71E0010054001840B91FA00F7181010054 # Remove Samsung defex - # Before: [mrs x0, sp_el0] [mov w2, #-221] (-__NR_execve) - # After: [mrs x0, sp_el0] [mov w2, #-32768] - ./magiskboot --hexpatch kernel \ - 004138D5821B8012 \ - 004138D5E2FF8F12 + # Before: [mov w2, #-221] (-__NR_execve) + # After: [mov w2, #-32768] + ./magiskboot --hexpatch kernel 821B8012 E2FF8F12 # Force kernel to load rootfs # skip_initramfs -> want_initramfs