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
5e92b4fa
Commit
5e92b4fa
authored
Feb 04, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update binaries
parent
db501822
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
9 deletions
+9
-9
sepolicy-inject
jni/sepolicy-inject
+1
-1
su
jni/su
+1
-1
custom_ramdisk_patch.sh
scripts/custom_ramdisk_patch.sh
+1
-1
flash_script.sh
scripts/flash_script.sh
+5
-5
magisksu.sh
scripts/magisksu.sh
+1
-1
busybox
zip_static/arm/busybox
+0
-0
busybox
zip_static/arm64/busybox
+0
-0
busybox
zip_static/x64/busybox
+0
-0
busybox
zip_static/x86/busybox
+0
-0
No files found.
sepolicy-inject
@
443af5f7
Subproject commit
9a14931175dfabe4008679343b358cc16c02cbd4
Subproject commit
443af5f760b94f8728b4a4c82adf911717d4dc52
su
@
d364ed2d
Subproject commit d
d0127a3919b7ebed930f3e7aed6e3ff3684f714
Subproject commit d
364ed2d7721cbfc5652c66a51e97408cd6be458
scripts/custom_ramdisk_patch.sh
View file @
5e92b4fa
...
@@ -62,7 +62,7 @@ for RC in init*.rc; do
...
@@ -62,7 +62,7 @@ for RC in init*.rc; do
done
done
# sepolicy patches
# sepolicy patches
LD_LIBRARY_PATH
=
$SYSTEMLIB
$BINDIR
/sepolicy-inject
--
magisk
-P
sepolicy
LD_LIBRARY_PATH
=
$SYSTEMLIB
$BINDIR
/sepolicy-inject
--
load
sepolicy
--save
sepolicy
--minimal
cpio_add sepolicy 644
cpio_add sepolicy 644
# Add new items
# Add new items
...
...
scripts/flash_script.sh
View file @
5e92b4fa
...
@@ -350,7 +350,7 @@ PATH=$TMPDIR/busybox:$PATH
...
@@ -350,7 +350,7 @@ PATH=$TMPDIR/busybox:$PATH
##########################################################################################
##########################################################################################
# Fix SuperSU.....
# Fix SuperSU.....
(
$BOOTMODE
)
&&
$BINDIR
/sepolicy-inject
-
s
fsck
--live
(
$BOOTMODE
)
&&
$BINDIR
/sepolicy-inject
-
-live
"allow fsck * * *"
if
(
is_mounted /data
)
;
then
if
(
is_mounted /data
)
;
then
IMG
=
/data/magisk.img
IMG
=
/data/magisk.img
...
@@ -374,10 +374,10 @@ fi
...
@@ -374,10 +374,10 @@ fi
MAGISKLOOP
=
$LOOPDEVICE
MAGISKLOOP
=
$LOOPDEVICE
# Core folders and scripts
# Core folders and scripts
mkdir
-p
$COREDIR
/magiskhide
$COREDIR
/post
fs
data.d
$COREDIR
/service.d 2>/dev/null
mkdir
-p
$COREDIR
/magiskhide
$COREDIR
/post
-fs-
data.d
$COREDIR
/service.d 2>/dev/null
cp
-af
$INSTALLER
/common/magiskhide/.
$BINDIR
/magiskhide
$COREDIR
/magiskhide
cp
-af
$INSTALLER
/common/magiskhide/.
$BINDIR
/magiskhide
$COREDIR
/magiskhide
chmod
-R
755
$COREDIR
/magiskhide
$COREDIR
/post
fs
data.d
$COREDIR
/service.d
chmod
-R
755
$COREDIR
/magiskhide
$COREDIR
/post
-fs-
data.d
$COREDIR
/service.d
chown
-R
0.0
$COREDIR
/magiskhide
$COREDIR
/post
fs
data.d
$COREDIR
/service.d
chown
-R
0.0
$COREDIR
/magiskhide
$COREDIR
/post
-fs-
data.d
$COREDIR
/service.d
##########################################################################################
##########################################################################################
# Boot image patch
# Boot image patch
...
@@ -529,7 +529,7 @@ else
...
@@ -529,7 +529,7 @@ else
fi
fi
# minimal sepolicy patches
# minimal sepolicy patches
LD_LIBRARY_PATH
=
$SYSTEMLIB
$BINDIR
/sepolicy-inject
--
minimal
-P
sepolicy
LD_LIBRARY_PATH
=
$SYSTEMLIB
$BINDIR
/sepolicy-inject
--
load
sepolicy
--save
sepolicy
--minimal
# Add new items
# Add new items
mkdir
-p
magisk 2>/dev/null
mkdir
-p
magisk 2>/dev/null
...
...
scripts/magisksu.sh
View file @
5e92b4fa
...
@@ -11,7 +11,7 @@ log_print() {
...
@@ -11,7 +11,7 @@ log_print() {
log_print
"Moving and linking /sbin binaries"
log_print
"Moving and linking /sbin binaries"
mount
-o
rw,remount rootfs /
mount
-o
rw,remount rootfs /
/d
ata
/busybox/cp
-afc
/sbin /sbin_orig
/d
ev
/busybox/cp
-afc
/sbin /sbin_orig
mount
-o
ro,remount rootfs /
mount
-o
ro,remount rootfs /
log_print
"Exposing su binary"
log_print
"Exposing su binary"
...
...
zip_static/arm/busybox
View file @
5e92b4fa
No preview for this file type
zip_static/arm64/busybox
View file @
5e92b4fa
No preview for this file type
zip_static/x64/busybox
View file @
5e92b4fa
No preview for this file type
zip_static/x86/busybox
View file @
5e92b4fa
No preview for this file type
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