Reputation: 1179
I would like to get the HTTP POST and GET requests of Android applications and the browser. How can I sniff the network traffic?
It is important that I can also see the request which are caused by running Android applications.
Upvotes: 2
Views: 7872
Reputation: 84
You can start the emulator with the command -avd Adfmf -http-proxy http://SYSTEM_IP:PORT
. I used HTTP Analyzer, but it should work for anything else. More details can be found here: http://stick2code.blogspot.in/2014/04/intercept-http-requests-sent-from-app.html
To track browser requests coming from the Emulator, you can refer: http://stick2code.blogspot.in/2014/04/intercept-http-requests-sent-from.html
Upvotes: 1
Reputation: 692
If you are rooted, you can get a Wireshark port for Android here. You can record all network traffic on your phone, take the tcpdump files, and read them with a desktop version of Wireshark.
You can also use the android emulator on computers. Start the emulator via command line and add the -tcpdump
tag. Use adb push my_app.apk
to install your application onto the device. This will save a tcpdump file onto your PC, which can also be read with Wireshark.
For live tracking, you can also proxy your android connections through something like burp proxy.
Upvotes: 4