mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-05-09 02:54:30 +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=${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
|
||||
|
Loading…
x
Reference in New Issue
Block a user