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
88c25a93
Commit
88c25a93
authored
Oct 03, 2016
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix scripts
parent
e4ace495
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
15 deletions
+4
-15
update-binary
zip_static/META-INF/com/google/android/update-binary
+1
-1
magic_mask.sh
zip_static/common/magic_mask.sh
+0
-11
post-fs-data.sh
zip_static/roothelper/post-fs-data.sh
+3
-3
No files found.
zip_static/META-INF/com/google/android/update-binary
View file @
88c25a93
...
@@ -426,7 +426,7 @@ fi
...
@@ -426,7 +426,7 @@ fi
ui_print
"- Installing root helper module"
ui_print
"- Installing root helper module"
cp
-af
$INSTALLER
/roothelper /magisk/00roothelper
cp
-af
$INSTALLER
/roothelper /magisk/00roothelper
chmod
755 /magisk/00roothelper
/post-fs-data.sh
chmod
755 /magisk/00roothelper
/magisk/00roothelper/
*
# Patch ramdisk
# Patch ramdisk
ui_print
"- Patching ramdisk"
ui_print
"- Patching ramdisk"
...
...
zip_static/common/magic_mask.sh
View file @
88c25a93
...
@@ -401,15 +401,4 @@ case $1 in
...
@@ -401,15 +401,4 @@ case $1 in
run_scripts service
run_scripts service
;;
;;
root
)
SUPATH
=
$(
getprop magisk.supath
)
ROOT
=
$(
getprop magisk.root
)
if
[
"
$ROOT
"
-eq
"1"
]
;
then
log_print
"Enabling root"
ln
-s
$SUPATH
/magisk/.core/bin
else
log_print
"Disabling root"
rm
-f
/magisk/.core/bin
fi
;;
esac
esac
zip_static/roothelper/post-fs-data.sh
View file @
88c25a93
...
@@ -9,10 +9,10 @@ if [ -f "launch_daemonsu.sh" ]; then
...
@@ -9,10 +9,10 @@ if [ -f "launch_daemonsu.sh" ]; then
cp
supersu.sh /magisk/99supersu/post-fs-data.sh
cp
supersu.sh /magisk/99supersu/post-fs-data.sh
cp
supersu.prop /magisk/99supersu/module.prop
cp
supersu.prop /magisk/99supersu/module.prop
cp
launch_daemonsu.sh /magisk/99supersu/launch_daemonsu.sh
cp
launch_daemonsu.sh /magisk/99supersu/launch_daemonsu.sh
chmod
755 /magisk/99supersu/
*
chmod
755 /magisk/99supersu
/magisk/99supersu
/
*
else
else
# phh mode
# phh mode
if
[
-f
"/magisk/phh/su"
]
]
;
then
if
[
-f
"/magisk/phh/su"
]
;
then
# Old version detected
# Old version detected
cp
/magisk/phh/su su
cp
/magisk/phh/su su
rm
-rf
/magisk/phh
rm
-rf
/magisk/phh
...
@@ -22,7 +22,7 @@ else
...
@@ -22,7 +22,7 @@ else
cp
/data/magisk/sepolicy-inject /magisk/phh/bin/sepolicy-inject
cp
/data/magisk/sepolicy-inject /magisk/phh/bin/sepolicy-inject
cp
phh.sh /magisk/phh/post-fs-data.sh
cp
phh.sh /magisk/phh/post-fs-data.sh
cp
phh.prop /magisk/phh/module.prop
cp
phh.prop /magisk/phh/module.prop
chmod
755 /magisk/phh/
*
/magisk/phh/bin/
*
chmod
755 /magisk/phh
/magisk/phh
/
*
/magisk/phh/bin/
*
fi
fi
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