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
02e039d7
Commit
02e039d7
authored
Mar 19, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes
parent
9f933331
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
magic_mask.sh
scripts/magic_mask.sh
+5
-5
magisk_uninstaller.sh
scripts/magisk_uninstaller.sh
+1
-2
magisk.apk
zip_static/common/magisk.apk
+0
-0
No files found.
scripts/magic_mask.sh
View file @
02e039d7
...
@@ -310,7 +310,7 @@ case $1 in
...
@@ -310,7 +310,7 @@ case $1 in
if
[
-f
$UNINSTALLER
]
;
then
if
[
-f
$UNINSTALLER
]
;
then
touch
/dev/.magisk.unblock
touch
/dev/.magisk.unblock
chcon
u:object_r:device:s0 /dev/.magisk.unblock
chcon
u:object_r:device:s0 /dev/.magisk.unblock
sh
$UNINSTALLER
BOOTMODE
=
true
sh
$UNINSTALLER
exit
exit
fi
fi
...
@@ -493,10 +493,10 @@ case $1 in
...
@@ -493,10 +493,10 @@ case $1 in
bind_mount
$COREDIR
/hosts /system/etc/hosts
bind_mount
$COREDIR
/hosts /system/etc/hosts
fi
fi
if
[
-f
/data/magisk
/magisk.apk
]
;
then
if
[
-f
$BINPATH
/magisk.apk
]
;
then
if
[
-z
`
ls
/data/app |
grep
com.topjohnwu.magisk
`
]
;
then
if
!
ls
/data/app |
grep
com.topjohnwu.magisk
;
then
mkdir
/data/app/com.topjohnwu.magisk-1
mkdir
/data/app/com.topjohnwu.magisk-1
cp
/data/magisk
/magisk.apk /data/app/com.topjohnwu.magisk-1/base.apk
cp
$BINPATH
/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
chown
1000.1000 /data/app/com.topjohnwu.magisk-1/base.apk
chown
1000.1000 /data/app/com.topjohnwu.magisk-1/base.apk
chmod
755 /data/app/com.topjohnwu.magisk-1
chmod
755 /data/app/com.topjohnwu.magisk-1
...
@@ -504,7 +504,7 @@ case $1 in
...
@@ -504,7 +504,7 @@ case $1 in
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
chcon
u:object_r:apk_data_file:s0 /data/app/com.topjohnwu.magisk-1/base.apk
chcon
u:object_r:apk_data_file:s0 /data/app/com.topjohnwu.magisk-1/base.apk
fi
fi
rm
-f
/data/magisk
/magisk.apk 2>/dev/null
rm
-f
$BINPATH
/magisk.apk 2>/dev/null
fi
fi
# Expose busybox
# Expose busybox
...
...
scripts/magisk_uninstaller.sh
View file @
02e039d7
# Detect whether in boot mode
[
-z
$BOOTMODE
]
&&
BOOTMODE
=
false
ps |
grep
zygote |
grep
-v
grep
>
/dev/null
&&
BOOTMODE
=
true
||
BOOTMODE
=
false
# This path should work in any cases
# This path should work in any cases
TMPDIR
=
/dev/tmp
TMPDIR
=
/dev/tmp
...
...
zip_static/common/magisk.apk
View file @
02e039d7
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