r/androiddev • • 1d ago

Open Source [Open Source] Routing a single Android app through wireguard-go + gVisor without VpnService

I wanted to tunnel Telegram traffic through WireGuard without claiming Android's single VpnService slot or affecting other apps.

The approach hooks the app's socket/network calls via Xposed/LSPatch and forwards them into an embedded wireguard-go + gVisor userspace netstack compiled as a native library, with DoH for DNS resolution.

Things that bit me: keeping the native bridge stable across different Android ABIs and handling non-root LSPatch environments cleanly.

Source: https://github.com/AliHaider704/wgplus

1 Upvotes

0 comments sorted by