[core] Honor `remove` flag for incompatible modules

This commit is contained in:
Wang Han 2021-05-21 21:22:33 +08:00
parent d85ef90275
commit d853be4367
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ check_android_version() {
check_incompatible_module() {
MODULEDIR="$(magisk --path)/.magisk/modules"
for id in "riru_dreamland" "riru_edxposed" "riru_edxposed_sandhook" "taichi"; do
if [ -d "$MODULEDIR/$id" ] && [ ! -f "$MODULEDIR/$id/disable" ]; then
if [ -d "$MODULEDIR/$id" ] && [ ! -f "$MODULEDIR/$id/disable" ] && [ ! -f "$MODULEDIR/$id/remove" ]; then
ui_print "*********************************************************"
ui_print "! Please disable or uninstall incompatible frameworks:"
ui_print "! $id"