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
f64f95d8
Commit
f64f95d8
authored
Oct 03, 2016
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SuperSU support for helper module
parent
88c25a93
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
update-binary
zip_static/META-INF/com/google/android/update-binary
+2
-0
phh.sh
zip_static/roothelper/phh.sh
+3
-0
post-fs-data.sh
zip_static/roothelper/post-fs-data.sh
+6
-6
supersu.sh
zip_static/roothelper/supersu.sh
+2
-2
No files found.
zip_static/META-INF/com/google/android/update-binary
View file @
f64f95d8
...
...
@@ -344,6 +344,8 @@ if (! $NORESTORE); then
if
[
-f
"sbin/launch_daemonsu.sh"
]
;
then
SUPERSU
=
true
# Save it for helper module
mkdir
-p
/magisk/zzsupersu
touch
/magisk/zzsupersu/stub
cp
-af
sbin/launch_daemonsu.sh
$INSTALLER
/roothelper/launch_daemonsu.sh
fi
# Non-standard boot image restores
...
...
zip_static/roothelper/phh.sh
View file @
f64f95d8
...
...
@@ -16,6 +16,9 @@ launch_daemonsu() {
exec
/magisk/phh/bin/su
--daemon
}
# Disable the other root
[
-d
"/magisk/zzsupersu"
]
&&
touch
/magisk/zzsupersu/disable
log_print
"Live patching sepolicy"
/magisk/phh/bin/sepolicy-inject
--live
...
...
zip_static/roothelper/post-fs-data.sh
View file @
f64f95d8
...
...
@@ -4,12 +4,12 @@ cd /magisk/00roothelper
if
[
-f
"launch_daemonsu.sh"
]
;
then
# SuperSU mode
rm
-rf
/magisk/supersu /magisk/
99
supersu
mkdir
-p
/magisk/
99
supersu
cp
supersu.sh /magisk/
99
supersu/post-fs-data.sh
cp
supersu.prop /magisk/
99
supersu/module.prop
cp
launch_daemonsu.sh /magisk/
99
supersu/launch_daemonsu.sh
chmod
755 /magisk/
99supersu /magisk/99
supersu/
*
rm
-rf
/magisk/supersu /magisk/
zz
supersu
mkdir
-p
/magisk/
zz
supersu
cp
supersu.sh /magisk/
zz
supersu/post-fs-data.sh
cp
supersu.prop /magisk/
zz
supersu/module.prop
cp
launch_daemonsu.sh /magisk/
zz
supersu/launch_daemonsu.sh
chmod
755 /magisk/
zzsupersu /magisk/zz
supersu/
*
else
# phh mode
if
[
-f
"/magisk/phh/su"
]
;
then
...
...
zip_static/roothelper/supersu.sh
View file @
f64f95d8
...
...
@@ -4,8 +4,8 @@ mount -o rw,remount rootfs /
mkdir
/su 2>/dev/null
mount
-o
ro,remount rootfs /
chmod
755 /magisk/
99
supersu/launch_daemonsu.sh
/magisk/
99
supersu/launch_daemonsu.sh post-fs-data
chmod
755 /magisk/
zz
supersu/launch_daemonsu.sh
/magisk/
zz
supersu/launch_daemonsu.sh post-fs-data
rm
-rf
/magisk/.core/bin
ln
-s
/su/bin /magisk/.core/bin
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