mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-11 22:03:37 +00:00
Fix #3735
This commit is contained in:
parent
aad52ae743
commit
8b5cb4c7b0
@ -594,7 +594,7 @@ copy_sepolicy_rules() {
|
|||||||
# Find current active RULESDIR
|
# Find current active RULESDIR
|
||||||
local RULESDIR
|
local RULESDIR
|
||||||
local active_dir=$(magisk --path)/.magisk/mirror/sepolicy.rules
|
local active_dir=$(magisk --path)/.magisk/mirror/sepolicy.rules
|
||||||
if [ -e $active_dir ]; then
|
if [ -L $active_dir ]; then
|
||||||
RULESDIR=$(readlink -f $active_dir)
|
RULESDIR=$(readlink -f $active_dir)
|
||||||
elif [ -d /data/unencrypted ] && ! grep ' /data ' /proc/mounts | grep -qE 'dm-|f2fs'; then
|
elif [ -d /data/unencrypted ] && ! grep ' /data ' /proc/mounts | grep -qE 'dm-|f2fs'; then
|
||||||
RULESDIR=/data/unencrypted/magisk
|
RULESDIR=/data/unencrypted/magisk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user