Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
e1a65276
Commit
e1a65276
authored
Oct 17, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to general Samsung defex patch
Should be future proof unless code changes
parent
469adc85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
boot_patch.sh
scripts/boot_patch.sh
+9
-11
No files found.
scripts/boot_patch.sh
View file @
e1a65276
...
@@ -141,25 +141,23 @@ if ! $KEEPVERITY; then
...
@@ -141,25 +141,23 @@ if ! $KEEPVERITY; then
fi
fi
if
[
-f
kernel
]
;
then
if
[
-f
kernel
]
;
then
# Remove Samsung RKP
in stock kernel
# Remove Samsung RKP
./magiskboot
--hexpatch
kernel
\
./magiskboot
--hexpatch
kernel
\
49010054011440B93FA00F71E9000054010840B93FA00F7189000054001840B91FA00F7188010054
\
49010054011440B93FA00F71E9000054010840B93FA00F7189000054001840B91FA00F7188010054
\
A1020054011440B93FA00F7140020054010840B93FA00F71E0010054001840B91FA00F7181010054
A1020054011440B93FA00F7140020054010840B93FA00F71E0010054001840B91FA00F7181010054
# Remove Samsung defex (A8 variant)
# Remove Samsung defex
# Before: [mrs x0, sp_el0] [mov w2, #-221] (-__NR_execve)
# After: [mrs x0, sp_el0] [mov w2, #-32768]
./magiskboot
--hexpatch
kernel
\
./magiskboot
--hexpatch
kernel
\
006044B91F040071802F005460DE41F9
\
004138D5821B8012
\
006044B91F00006B802F005460DE41F9
004138D5E2FF8F12
# Remove Samsung defex (N9 variant)
./magiskboot
--hexpatch
kernel
\
603A46B91F0400710030005460C642F9
\
603A46B91F00006B0030005460C642F9
# Force kernel to load rootfs
# skip_initramfs -> want_initramfs
# skip_initramfs -> want_initramfs
./magiskboot
--hexpatch
kernel
\
./magiskboot
--hexpatch
kernel
\
736B69705F696E697472616D6673
\
736B69705F696E697472616D6673
00
\
77616E745F696E697472616D6673
77616E745F696E697472616D6673
00
fi
fi
##########################################################################################
##########################################################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment