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
f8eab72c
Commit
f8eab72c
authored
Jan 01, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install Magisk Manager stub if not installed
parent
2afd2f0d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
+20
-2
.gitattributes
.gitattributes
+2
-1
flash_script.sh
scripts/flash_script.sh
+2
-0
magic_mask.sh
scripts/magic_mask.sh
+16
-1
magisk.apk
zip_static/common/magisk.apk
+0
-0
No files found.
.gitattributes
View file @
f8eab72c
...
@@ -13,4 +13,5 @@
...
@@ -13,4 +13,5 @@
busybox binary
busybox binary
futility binary
futility binary
*.jar binary
*.jar binary
*.exe binary
*.exe binary
\ No newline at end of file
*.apk binary
scripts/flash_script.sh
View file @
f8eab72c
...
@@ -291,6 +291,7 @@ if (is_mounted /data); then
...
@@ -291,6 +291,7 @@ if (is_mounted /data); then
mkdir
-p
/data/busybox
mkdir
-p
/data/busybox
cp
-af
$BINDIR
/data/magisk
cp
-af
$BINDIR
/data/magisk
cp
-af
$INSTALLER
/common/init.magisk.rc
$INSTALLER
/common/magic_mask.sh /data/magisk
cp
-af
$INSTALLER
/common/init.magisk.rc
$INSTALLER
/common/magic_mask.sh /data/magisk
cp
-af
$INSTALLER
/common/magisk.apk /data/magisk.apk
/data/magisk/busybox
--install
-s
/data/busybox
/data/magisk/busybox
--install
-s
/data/busybox
ln
-s
/data/magisk/busybox /data/busybox/busybox
ln
-s
/data/magisk/busybox /data/busybox/busybox
# Prevent issues
# Prevent issues
...
@@ -303,6 +304,7 @@ else
...
@@ -303,6 +304,7 @@ else
rm
-rf
/cache/data_bin 2>/dev/null
rm
-rf
/cache/data_bin 2>/dev/null
cp
-af
$BINDIR
/cache/data_bin
cp
-af
$BINDIR
/cache/data_bin
cp
-af
$INSTALLER
/common/init.magisk.rc
$INSTALLER
/common/magic_mask.sh /cache/data_bin
cp
-af
$INSTALLER
/common/init.magisk.rc
$INSTALLER
/common/magic_mask.sh /cache/data_bin
cp
-af
$INSTALLER
/common/magisk.apk /cache/magisk.apk
chmod
-R
755 /cache/data_bin
chmod
-R
755 /cache/data_bin
BINDIR
=
/cache/data_bin
BINDIR
=
/cache/data_bin
fi
fi
...
...
scripts/magic_mask.sh
View file @
f8eab72c
...
@@ -280,7 +280,8 @@ case $1 in
...
@@ -280,7 +280,8 @@ case $1 in
rm
-f
$TOOLPATH
/su
$TOOLPATH
/sh
$TOOLPATH
/reboot
rm
-f
$TOOLPATH
/su
$TOOLPATH
/sh
$TOOLPATH
/reboot
fi
fi
mv
/cache/stock_boot.img /data 2>/dev/null
mv
/cache/stock_boot.img /data/stock_boot.img 2>/dev/null
mv
/cache/magisk.apk /data/magisk.apk 2>/dev/null
find
$BINPATH
-exec
chcon
-h
"u:object_r:system_file:s0"
{}
\;
find
$BINPATH
-exec
chcon
-h
"u:object_r:system_file:s0"
{}
\;
find
$TOOLPATH
-exec
chcon
-h
"u:object_r:system_file:s0"
{}
\;
find
$TOOLPATH
-exec
chcon
-h
"u:object_r:system_file:s0"
{}
\;
...
@@ -435,6 +436,20 @@ case $1 in
...
@@ -435,6 +436,20 @@ case $1 in
bind_mount
$COREDIR
/busybox /system/xbin
bind_mount
$COREDIR
/busybox /system/xbin
fi
fi
if
[
-f
/data/magisk.apk
]
;
then
if
[
-z
`
ls
/data/app |
grep
com.topjohnwu.magisk
`
]
;
then
mkdir
/data/app/com.topjohnwu.magisk-1
cp
/data/magisk.apk /data/app/com.topjohnwu.magisk-1/base.apk
chown
1000.1000 /data/app/com.topjohnwu.magisk-1
chown
1000.1000 /data/app/com.topjohnwu.magisk-1/base.apk
chmod
755 /data/app/com.topjohnwu.magisk-1
chmod
644 /data/app/com.topjohnwu.magisk-1/base.apk
chcon
u:object_r:apk_data_file:s0 /data/app/com.topjohnwu.magisk-1
chcon
u:object_r:apk_data_file:s0 /data/app/com.topjohnwu.magisk-1/base.apk
fi
rm
-f
/data/magisk.apk 2>/dev/null
fi
# Restart post-fs-data if necessary (multirom)
# Restart post-fs-data if necessary (multirom)
$MULTIROM
&&
setprop magisk.restart_pfsd 1
$MULTIROM
&&
setprop magisk.restart_pfsd 1
...
...
zip_static/common/magisk.apk
0 → 100644
View file @
f8eab72c
This diff was suppressed by a .gitattributes entry.
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