I am trying to capture the requests of my android emulator. I want to know the data used by my android app. I tried various ways which didn't work. I am trying to do that using the emulator now. I have emulated my android device in ubuntu and I want to capture all traffic of my android emulator(http and https) using a tool.
We have fiddler in windows but this emulator stuff did not work there.
2 Answers
Consider wireshark
sudo apt-get install wiresharkThis should help you sniff out any traffic originating from your android emulator to http https based on a variety of filter criteria.
2Use wireshark or command line tool tshark. tcpdump is another option.
sudo apt-get install tcpdump
tcpdump -i $interface