Documentation
¶
Overview ¶
Check VPN status via the IVpnManager system service.
Uses IVpnManager via the "vpn_management" service to query always-on VPN configuration, lockdown status, and legacy VPN info.
Note: Most VPN queries require system-level permissions.
Build:
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/vpn_monitor ./examples/vpn_monitor/ adb push build/vpn_monitor /data/local/tmp/ && adb shell /data/local/tmp/vpn_monitor
Click to show internal directories.
Click to hide internal directories.