Skip to content

Commit

Permalink
check the validity of installation before mounting
Browse files Browse the repository at this point in the history
  • Loading branch information
j-hc committed Dec 26, 2022
1 parent 3aac72c commit 2ba59e9
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion revanced-magisk/customize.sh

This file was deleted.

1 change: 0 additions & 1 deletion revanced-magisk/module.prop

This file was deleted.

1 change: 0 additions & 1 deletion revanced-magisk/post-fs-data.sh

This file was deleted.

1 change: 0 additions & 1 deletion revanced-magisk/service.sh

This file was deleted.

1 change: 0 additions & 1 deletion revanced-magisk/uninstall.sh

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ba59e9

Please sign in to comment.