Skip to content

Commit

Permalink
update module
Browse files Browse the repository at this point in the history
  • Loading branch information
j-hc committed Sep 12, 2023
1 parent be4a0c7 commit 32b0da4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*.zip
*.so
*.sh
b.sh
test*
magisk/system/bin/*
fast-memmem
8 changes: 0 additions & 8 deletions magisk/customize.sh
Original file line number Diff line number Diff line change
@@ -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-*

Expand Down
3 changes: 3 additions & 0 deletions magisk/service.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/system/bin/sh
MODDIR=${0%/*}
[ -f "$MODDIR/detach.txt" ] && "$MODDIR"/system/bin/detach --serialize "$MODDIR/detach.txt"

0 comments on commit 32b0da4

Please sign in to comment.