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.
18 lines
433 B
Bash
18 lines
433 B
Bash
#!/system/bin/sh
|
|
# Runs early in boot, before apps start. Loads the kernel module.
|
|
# KernelSU bypasses vermagic check, so no patching needed.
|
|
|
|
MODDIR="${0%/*}"
|
|
KO="$MODDIR/vpnhide_kmod.ko"
|
|
|
|
# Skip if already loaded
|
|
if grep -q vpnhide_kmod /proc/modules 2>/dev/null; then
|
|
exit 0
|
|
fi
|
|
|
|
if [ ! -f "$KO" ]; then
|
|
log -t vpnhide "vpnhide_kmod.ko not found at $KO"
|
|
exit 1
|
|
fi
|
|
|
|
insmod "$KO" && log -t vpnhide "kernel module loaded"
|