可能重复:
Possible to use VpnService implementation to capture and send packets?
我必须使用VpnService监控网络流量。我将介绍一下提供的VpnService示例 http://developer.android.com/resources/samples/ToyVpn/index.html和http://www.taosoftware.co.jp/en/android/packetcapture/ 但是无法理解我如何捕获网络流量。请建议一种在android中捕获数据包的方法或者发布对任何此类资源的引用。
由于