mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-13 10:57:42 +00:00
Update binaries
This commit is contained in:
Submodule jni/sepolicy-inject updated: 9a14931175...443af5f760
2
jni/su
2
jni/su
Submodule jni/su updated: dd0127a391...d364ed2d77
@@ -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
|
||||||
|
@@ -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
|
|||||||
MAGISKLOOP=$LOOPDEVICE
|
MAGISKLOOP=$LOOPDEVICE
|
||||||
|
|
||||||
# Core folders and scripts
|
# Core folders and scripts
|
||||||
mkdir -p $COREDIR/magiskhide $COREDIR/postfsdata.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/postfsdata.d $COREDIR/service.d
|
chmod -R 755 $COREDIR/magiskhide $COREDIR/post-fs-data.d $COREDIR/service.d
|
||||||
chown -R 0.0 $COREDIR/magiskhide $COREDIR/postfsdata.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
|
|||||||
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
|
||||||
|
@@ -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 /
|
||||||
/data/busybox/cp -afc /sbin /sbin_orig
|
/dev/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"
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user