check the validity of installation before mounting

This commit is contained in:
j-hc 2022-12-26 19:48:12 +03:00
parent 3aac72cdbc
commit 2ba59e9230
6 changed files with 1 additions and 6 deletions

View File

@ -1 +0,0 @@
# utils

View File

@ -1 +0,0 @@
# utils

View File

@ -1 +0,0 @@
# utils

View File

@ -1 +0,0 @@
# utils

View File

@ -1 +0,0 @@
# utils

View File

@ -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