Add skip_mount to prevent suspicious mountpoint detections. (#179)

* Add skip_mount to prevent suspicious mountpoints.

Since the scripts and binary had it's own separate folder, we don't need to mount anything on top of overlayfs.
This prevent detection of suspicious mountpoints.
Documentation: https://topjohnwu.github.io/Magisk/guides.html#magisk-modules

* add skip_mount extraction command to customize.sh

forgot about that, silly me :P
This commit is contained in:
Agus Suristyono
2025-02-20 20:00:42 +07:00
committed by GitHub
parent 9fbaa9914b
commit 6b8d7005a2
2 changed files with 3 additions and 1 deletions

View File

@@ -54,8 +54,9 @@ fi
# Directory creation and file extraction
ui_print "- Create directories"
mkdir -p /data/adb/box/ /data/adb/box/run/ /data/adb/box/bin/xclash/
ui_print "- Extracting uninstall.sh and box_service.sh"
ui_print "- Extracting uninstall.sh skip_mount and box_service.sh"
unzip -j -o "$ZIPFILE" 'uninstall.sh' -d "$MODPATH" >&2
unzip -j -o "$ZIPFILE" 'skip_mount' -d "$MODPATH" >&2
unzip -j -o "$ZIPFILE" 'box_service.sh' -d "${service_dir}" >&2
# Set permissions

1
skip_mount Normal file
View File

@@ -0,0 +1 @@
# dummy file to skip overlay mounting