From 2ba59e9230f5c3e4b6c77b13e13b7152402a4aca Mon Sep 17 00:00:00 2001 From: j-hc Date: Mon, 26 Dec 2022 19:48:12 +0300 Subject: [PATCH] check the validity of installation before mounting --- revanced-magisk/customize.sh | 1 - revanced-magisk/module.prop | 1 - revanced-magisk/post-fs-data.sh | 1 - revanced-magisk/service.sh | 1 - revanced-magisk/uninstall.sh | 1 - scripts/service.sh | 2 +- 6 files changed, 1 insertion(+), 6 deletions(-) delete mode 100755 revanced-magisk/customize.sh delete mode 100755 revanced-magisk/module.prop delete mode 100644 revanced-magisk/post-fs-data.sh delete mode 100644 revanced-magisk/service.sh delete mode 100644 revanced-magisk/uninstall.sh diff --git a/revanced-magisk/customize.sh b/revanced-magisk/customize.sh deleted file mode 100755 index 06588bfb77..0000000000 --- a/revanced-magisk/customize.sh +++ /dev/null @@ -1 +0,0 @@ -# utils diff --git a/revanced-magisk/module.prop b/revanced-magisk/module.prop deleted file mode 100755 index 06588bfb77..0000000000 --- a/revanced-magisk/module.prop +++ /dev/null @@ -1 +0,0 @@ -# utils diff --git a/revanced-magisk/post-fs-data.sh b/revanced-magisk/post-fs-data.sh deleted file mode 100644 index 06588bfb77..0000000000 --- a/revanced-magisk/post-fs-data.sh +++ /dev/null @@ -1 +0,0 @@ -# utils diff --git a/revanced-magisk/service.sh b/revanced-magisk/service.sh deleted file mode 100644 index 06588bfb77..0000000000 --- a/revanced-magisk/service.sh +++ /dev/null @@ -1 +0,0 @@ -# utils diff --git a/revanced-magisk/uninstall.sh b/revanced-magisk/uninstall.sh deleted file mode 100644 index 06588bfb77..0000000000 --- a/revanced-magisk/uninstall.sh +++ /dev/null @@ -1 +0,0 @@ -# utils diff --git a/scripts/service.sh b/scripts/service.sh index cca895b625..45564f9e18 100644 --- a/scripts/service.sh +++ b/scripts/service.sh @@ -8,7 +8,7 @@ sleep __MNTDLY ln -f $MODDIR/base.apk $RVPATH BASEPATH=$(pm path __PKGNAME | grep base) BASEPATH=${BASEPATH#*:} -if [ $BASEPATH ]; then +if [ $BASEPATH ] && [ -d ${BASEPATH%base.apk}lib ]; then VERSION=$(dumpsys package __PKGNAME | grep versionName) if [ ${VERSION#*=} = __PKGVER ]; then chcon u:object_r:apk_data_file:s0 $RVPATH