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
e1328172
Commit
e1328172
authored
Nov 08, 2016
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add bootanim, host, busybox
parent
0ddf4355
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
7 deletions
+30
-7
resetprop
jni/resetprop
+1
-1
magic_mask.sh
scripts/magic_mask.sh
+29
-6
No files found.
resetprop
@
96949566
Subproject commit
6b77de934dd13f77f3e1f8345d77a520d2e9b491
Subproject commit
96949566fb99b2b74b9bb80398ea45ee90ceb592
scripts/magic_mask.sh
View file @
e1328172
...
@@ -203,6 +203,7 @@ merge_image() {
...
@@ -203,6 +203,7 @@ merge_image() {
done
done
$TOOLPATH
/cp
-afc
.core/. /cache/data_img/.core 2>/dev/null
$TOOLPATH
/cp
-afc
.core/. /cache/data_img/.core 2>/dev/null
log_print
"Merge complete"
log_print
"Merge complete"
cd
/
fi
fi
umount /cache/data_img
umount /cache/data_img
...
@@ -232,11 +233,22 @@ case $1 in
...
@@ -232,11 +233,22 @@ case $1 in
# No more cache mods!
# No more cache mods!
# Only for multirom!
# Only for multirom!
#
log_print "** Magisk post-fs mode running..."
log_print
"** Magisk post-fs mode running..."
# Cleanup previous stuffs...
# Cleanup previous stuffs...
rm
-rf
/cache/magisk /cache/magisk_merge /cache/magiskhide.log
rm
-rf
/cache/magisk /cache/magisk_merge /cache/magiskhide.log
if
[
-d
"/cache/magisk_bootanim"
]
;
then
log_print
"Mounting custom Boot Animation"
find /cache/magisk_bootanim
-type
f 2>/dev/null |
while
read
ITEM
;
do
chmod
644
"
$ITEM
"
chcon
"u:object_r:system_file:s0"
"
$ITEM
"
TARGET
=
"
${
ITEM
#/cache/magisk_bootanim
}
"
bind_mount
"
$ITEM
"
"
$TARGET
"
done
fi
unblock
unblock
;;
;;
...
@@ -379,9 +391,20 @@ case $1 in
...
@@ -379,9 +391,20 @@ case $1 in
run_scripts post-fs-data
run_scripts post-fs-data
# Bind hosts for Adblock apps
# Bind hosts for Adblock apps
[
!
-f
"
$COREDIR
/hosts"
]
&&
$TOOLPATH
/cp
-afc
/system/etc/hosts
$COREDIR
/hosts
if
[
-f
"
$COREDIR
/hosts"
]
;
then
log_print
"Enabling systemless hosts file support"
log_print
"Enabling systemless hosts file support"
bind_mount
$COREDIR
/hosts /system/etc/hosts
bind_mount
$COREDIR
/hosts /system/etc/hosts
fi
# Expose busybox
if
[
-f
"
$COREDIR
/busybox/enable"
]
;
then
log_print
"Enabling BusyBox"
$TOOLPATH
/cp
-afc
/data/busybox/.
$COREDIR
/busybox
$TOOLPATH
/cp
-afc
/system/xbin/.
$COREDIR
/busybox
chmod
755
$COREDIR
/busybox
chcon
"u:object_r:system_file:s0"
$COREDIR
/busybox
bind_mount
$COREDIR
/busybox /system/xbin
fi
# Stage 3
# Stage 3
log_print
"Bind mount system mirror"
log_print
"Bind mount system mirror"
...
@@ -412,7 +435,7 @@ case $1 in
...
@@ -412,7 +435,7 @@ case $1 in
log_print
"** Magisk late_start service mode running..."
log_print
"** Magisk late_start service mode running..."
run_scripts service
run_scripts service
#
Hide Safety Net
#
Magisk Hide
if
[
-f
"
$COREDIR
/magiskhide/enable"
]
;
then
if
[
-f
"
$COREDIR
/magiskhide/enable"
]
;
then
log_print
"** Removing tampered read-only system props"
log_print
"** Removing tampered read-only system props"
...
...
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