From 6b8d7005a249703c908f8be07deae5fd4f4219db Mon Sep 17 00:00:00 2001 From: Agus Suristyono Date: Thu, 20 Feb 2025 20:00:42 +0700 Subject: [PATCH] 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 --- customize.sh | 3 ++- skip_mount | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 skip_mount diff --git a/customize.sh b/customize.sh index 4819969..4502225 100644 --- a/customize.sh +++ b/customize.sh @@ -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 diff --git a/skip_mount b/skip_mount new file mode 100644 index 0000000..59646a7 --- /dev/null +++ b/skip_mount @@ -0,0 +1 @@ +# dummy file to skip overlay mounting \ No newline at end of file