diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index a52bcbc..8302f8d 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -367,7 +367,7 @@ do_modules() { if [ "$(file_getprop anykernel.sh do.systemless)" == 1 ]; then cd $AKHOME/modules; ui_print " " "Creating kernel helper Magisk module..."; - if [ -d /data/adb/magisk -a -f $AKHOME/split_img/.magisk ]; then + if [ -d /data/adb/magisk -a -f $AKHOME/magisk_patched ]; then umask=$(umask); umask 022; moddir=/data/adb/modules/ak3-helper; diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index 37a67f7..951a84d 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -663,6 +663,7 @@ reset_ak() { [ -f $i ] && rm -f $home/$(basename $i); done; fi; + [ -f $split_img/.magisk ] && touch $home/magisk_patched; [ -d $split_img ] && rm -rf $ramdisk; rm -rf $bootimg $split_img $home/*-new* $home/*-files/current;