[core] Use util function to check riru version (#433)

This commit is contained in:
LoveSy 2021-03-30 13:48:06 +08:00 committed by GitHub
parent e2b15b05dd
commit 8bc0991275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ MODDIR=${0%/*}
MAGISK_VERSION=$(magisk -v)
MAGISK_VER_CODE=$(magisk -V)
[ ! -f "$MODDIR/riru.sh" ] && exit 1
. $MODDIR/riru.sh
[ ! -f /data/adb/riru/util_functions.sh ] && exit 1
. /data/adb/riru/util_functions.sh
LSPD_VERSION=$(grep_prop version "${MODDIR}/module.prop")
LSPD_VERSIONCODE=$(grep_prop versionCode "${MODDIR}/module.prop")