Refuse to install if Riru is disabled or will be removed

This commit is contained in:
RikkaW 2021-05-21 18:42:05 +08:00 committed by Wang Han
parent 7e6a0b81a3
commit d85ef90275
1 changed files with 7 additions and 0 deletions

View File

@ -58,6 +58,13 @@ if [ ! -d $MAGISK_CURRENT_RIRU_MODULE_PATH ]; then
abort "*********************************************************"
fi
if [ -f "$MAGISK_CURRENT_RIRU_MODULE_PATH/disable" ] || [ -f "$MAGISK_CURRENT_RIRU_MODULE_PATH/remove" ]; then
ui_print "*********************************************************"
ui_print "! Riru is not enabled or will be removed"
ui_print "! Please enable Riru in Magisk first"
abort "*********************************************************"
fi
if [ -f $MAGISK_CURRENT_RIRU_MODULE_PATH/util_functions.sh ]; then
ui_print "- Load $MAGISK_CURRENT_RIRU_MODULE_PATH/util_functions.sh"
# shellcheck disable=SC1090