Skip to content

Commit

Permalink
Remove unnecessary instruction from Defex hexpatch
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Oct 20, 2018
1 parent 74aae52 commit dd9ddd2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/boot_patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd9ddd2

Please sign in to comment.