This commit is contained in:
vvb2060 2021-03-18 15:08:44 +08:00 committed by John Wu
parent aad52ae743
commit 8b5cb4c7b0
1 changed files with 1 additions and 1 deletions

View File

@ -594,7 +594,7 @@ copy_sepolicy_rules() {
# Find current active RULESDIR
local RULESDIR
local active_dir=$(magisk --path)/.magisk/mirror/sepolicy.rules
if [ -e $active_dir ]; then
if [ -L $active_dir ]; then
RULESDIR=$(readlink -f $active_dir)
elif [ -d /data/unencrypted ] && ! grep ' /data ' /proc/mounts | grep -qE 'dm-|f2fs'; then
RULESDIR=/data/unencrypted/magisk