mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-01-08 11:37:39 +08:00
Remove workaround of live apply modules policy
This commit is contained in:
parent
f310b75fb0
commit
62d3f88de8
@ -11,15 +11,4 @@ if [ ! -f $MAGISKBIN/magiskpolicy ]; then
|
||||
mv $MAGISKBIN/libmagiskpolicy.so $MAGISKBIN/magiskpolicy
|
||||
chmod 755 $MAGISKBIN/magiskpolicy
|
||||
fi
|
||||
# [ -b $MAGISKTMP/.magisk/block/preinit ] || {
|
||||
# export MAGISKTMP
|
||||
# MAKEDEV=1 $MAGISKTMP/magisk --preinit-device 2>&1
|
||||
# RULESCMD=""
|
||||
# for r in "$MAGISKTMP"/.magisk/preinit/*/sepolicy.rule; do
|
||||
# [ -f "$r" ] || continue
|
||||
# RULESCMD="$RULESCMD --apply $r"
|
||||
# done
|
||||
# # shellcheck disable=SC2086
|
||||
# $MAGISKBIN/magiskpolicy --live $RULESCMD 2>&1
|
||||
# }
|
||||
[ -f $MAGISKTMP/sepolicy.rule ] && $MAGISKBIN/magiskpolicy --live --apply $MAGISKTMP/sepolicy.rule
|
||||
|
Loading…
Reference in New Issue
Block a user