mirror of
https://github.com/okhsunrog/vpnhide.git
synced 2026-04-28 14:44:43 +00:00
Unified repository for the complete Android VPN-hiding stack: - zygisk/ — Rust Zygisk module (inline libc hooks via shadowhook) - lsposed/ — Kotlin LSPosed module (Java API + system_server hooks) - kmod/ — C kernel module (kretprobe hooks, invisible to anti-tamper) CI workflows use path filters to build only the changed component.
26 lines
793 B
Bash
26 lines
793 B
Bash
#!/system/bin/sh
|
|
SKIPUNZIP=0
|
|
ui_print "- VPN Hide (kernel) v0.1.0"
|
|
ui_print "- Installing kernel module to $MODPATH"
|
|
|
|
# Persistent config directory (survives module updates)
|
|
PERSIST_DIR="/data/adb/vpnhide_kmod"
|
|
PERSIST_TARGETS="$PERSIST_DIR/targets.txt"
|
|
|
|
mkdir -p "$PERSIST_DIR"
|
|
set_perm "$PERSIST_DIR" 0 0 0755
|
|
|
|
# Seed empty targets on fresh install
|
|
if [ ! -f "$PERSIST_TARGETS" ]; then
|
|
cat > "$PERSIST_TARGETS" <<'EOF'
|
|
# vpnhide-kmod target apps
|
|
# One package name per line. Lines starting with '#' are comments.
|
|
# Managed via the module's WebUI in the KernelSU-Next manager.
|
|
EOF
|
|
fi
|
|
set_perm "$PERSIST_TARGETS" 0 0 0644
|
|
|
|
set_perm "$MODPATH/vpnhide_kmod.ko" 0 0 0644
|
|
|
|
ui_print "- Targets: $PERSIST_TARGETS (preserved across updates)"
|
|
ui_print "- Pick target apps via WebUI, then reboot."
|