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
45dbd446
Commit
45dbd446
authored
Feb 05, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add general purpose script execution
parent
47225592
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
magic_mask.sh
scripts/magic_mask.sh
+9
-1
magisksu.sh
scripts/magisksu.sh
+1
-1
No files found.
scripts/magic_mask.sh
View file @
45dbd446
...
...
@@ -66,6 +66,14 @@ run_scripts() {
fi
fi
done
for
SCRIPT
in
$COREDIR
/
${
1
}
.d/
*
;
do
if
[
-f
"
$SCRIPT
"
]
;
then
chmod
755
$SCRIPT
chcon
u:object_r:system_file:s0
$SCRIPT
log_print
"
${
1
}
.d:
$SCRIPT
"
sh
$SCRIPT
fi
done
}
loopsetup
()
{
...
...
@@ -441,7 +449,7 @@ case $1 in
done
# Stage 4
log_print
"* Stage 4: Execute
module
scripts"
log_print
"* Stage 4: Execute scripts"
run_scripts post-fs-data
# Stage 5
...
...
scripts/magisksu.sh
View file @
45dbd446
...
...
@@ -11,7 +11,7 @@ log_print() {
log_print
"Moving and linking /sbin binaries"
mount
-o
rw,remount rootfs /
/dev/busybox/cp
-afc
/sbin /sbin_orig
cp
-af
/sbin /sbin_orig
mount
-o
ro,remount rootfs /
log_print
"Exposing su binary"
...
...
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