mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-05-09 19:14:28 +02:00
check latest version if the app was updated before mounting
This commit is contained in:
parent
cca14ccb97
commit
cc1b96d0c4
@ -9,7 +9,7 @@ ln -f $MODDIR/base.apk $RVPATH
|
|||||||
BASEPATH=$(pm path __PKGNAME | grep base)
|
BASEPATH=$(pm path __PKGNAME | grep base)
|
||||||
BASEPATH=${BASEPATH#*:}
|
BASEPATH=${BASEPATH#*:}
|
||||||
if [ $BASEPATH ] && [ -d ${BASEPATH%base.apk}lib ]; then
|
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
|
if [ ${VERSION#*=} = __PKGVER ]; then
|
||||||
chcon u:object_r:apk_data_file:s0 $RVPATH
|
chcon u:object_r:apk_data_file:s0 $RVPATH
|
||||||
mount -o bind $RVPATH $BASEPATH
|
mount -o bind $RVPATH $BASEPATH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user