From 32b0da4b2cefc257a0fed083acd6624ae6654ec1 Mon Sep 17 00:00:00 2001 From: j-hc Date: Wed, 13 Sep 2023 01:10:50 +0300 Subject: [PATCH] update module --- .gitignore | 2 +- magisk/customize.sh | 8 -------- magisk/service.sh | 3 +++ 3 files changed, 4 insertions(+), 9 deletions(-) create mode 100644 magisk/service.sh diff --git a/.gitignore b/.gitignore index 232cebc..0f088e9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ *.zip *.so -*.sh +b.sh test* magisk/system/bin/* fast-memmem \ No newline at end of file diff --git a/magisk/customize.sh b/magisk/customize.sh index a587066..aadd150 100644 --- a/magisk/customize.sh +++ b/magisk/customize.sh @@ -1,13 +1,5 @@ #!/system/bin/sh -[ "$MAGISK_VER_CODE" -lt 26100 ] && { - ui_print - ui_print "*******************************" - ui_print "This module is only supported in Magisk >= v26.1" - ui_print "*******************************" - abort -} - mv -f "$MODPATH/system/bin/detach-${ARCH}" "$MODPATH/system/bin/detach" rm "$MODPATH"/system/bin/detach-* diff --git a/magisk/service.sh b/magisk/service.sh new file mode 100644 index 0000000..84fbb2a --- /dev/null +++ b/magisk/service.sh @@ -0,0 +1,3 @@ +#!/system/bin/sh +MODDIR=${0%/*} +[ -f "$MODDIR/detach.txt" ] && "$MODDIR"/system/bin/detach --serialize "$MODDIR/detach.txt"