Android VPN Detector

April 9, 2026 · View on GitHub

Research tool for analyzing VPN detection mechanisms on Android.

Features

  • Detect VPN via NetworkCapabilities.TRANSPORT_VPN
  • Analyze active vs global VPN state
  • Interface detection (tun0, wg0)
  • Native + Java network enumeration

Purpose

Demonstrates how apps can detect VPN presence even with split tunneling.

Permissions

  • android.permission.ACCESS_NETWORK_STATE — used to access network state via ConnectivityManager
  • android.permission.QUERY_ALL_PACKAGES — used to enumerate installed applications in order to detect known VPN clients

Screenshots

VPN Active (full tunnel)

VPN Split / Bypass (still detectable)

License

MIT