From cc1b96d0c42a3321cf97bbd9c9e00d4121d0828a Mon Sep 17 00:00:00 2001 From: j-hc <25510067+j-hc@users.noreply.github.com> Date: Tue, 27 Dec 2022 13:56:09 +0300 Subject: [PATCH] check latest version if the app was updated before mounting --- scripts/service.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/service.sh b/scripts/service.sh index 45564f9..0104fdd 100644 --- a/scripts/service.sh +++ b/scripts/service.sh @@ -9,7 +9,7 @@ ln -f $MODDIR/base.apk $RVPATH BASEPATH=$(pm path __PKGNAME | grep base) BASEPATH=${BASEPATH#*:} if [ $BASEPATH ] && [ -d ${BASEPATH%base.apk}lib ]; then - VERSION=$(dumpsys package __PKGNAME | grep versionName) + VERSION=$(dumpsys package __PKGNAME | grep versionName | head -1) if [ ${VERSION#*=} = __PKGVER ]; then chcon u:object_r:apk_data_file:s0 $RVPATH mount -o bind $RVPATH $BASEPATH