I’m considering the possibility of using the new android (4.0) VpnService interface to implement simple packet capture and analysis. Does anyone know if it’s possible to take the packets you receive in a VpnService implementation and simply write them out to the active/default network device? To receive data, I’d have to be able to read from the network device as well, of course. If it is possible, what APIs can be used to write to the network device(s)?
I’m considering the possibility of using the new android (4.0) VpnService interface to implement
Share
tPacketCapture creates a second socket to the remote machine to forward the packets. I have looked at
tPacketCaptureusingadb shell netstat:Note 97.74.42.79:80 twice.
Guess I’ll have to do the same unless someone has a better idea.