Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I monitor and get http traffic in an android application?

I am wondering is there a way to intercept/monitor http traffic in android. One way which I could think of is to install custom module in android's browser source code such that all traffic goes through it.

Please steer me to the pertinent choice. Else how can we implement custom module, any guidelines?

like image 225
Sam Avatar asked Nov 28 '11 10:11

Sam


1 Answers

If you know the browsers PID, you can use getUidRxBytes() to get TrafficStats

like image 132
Reno Avatar answered Sep 20 '22 18:09

Reno