AK3+Backend: fix systemless modules on multi-partition setups

This commit is contained in:
osm0sis committed 2021-06-08 17:00:03 -03:00
1 parent 484ea072a8
commit 5035d6b7cb
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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;
+1
View File
@@ -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;