Leave mount info to log

This commit is contained in:
Jim Wu 2020-01-30 16:27:18 +08:00
parent f8707b8118
commit 5d52b6e203
1 changed files with 12 additions and 1 deletions

View File

@ -166,7 +166,16 @@ check_android_version() {
ui_print "- EdXposed Version ${VERSION}"
[[ -d "/mnt/vendor/persist" ]] || NO_PERSIST=true
if [[ -d "/mnt/vendor/persist" ]]; then
NO_PERSIST=false
else
NO_PERSIST=true
fi
if [[ -d "/persist" ]]; then
NO_PERSIST=false
else
NO_PERSIST=true
fi
check_magisk_version
check_riru_version
check_architecture
@ -196,6 +205,8 @@ fi
if [[ "${NO_PERSIST}" == true ]]; then
ui_print "- Persist not detected, remove SEPolicy rule"
echo "- Mount: persist:" >&2
mount | grep persist >&2
rm ${MODPATH}/sepolicy.rule
fi