Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture packets for certain process or package on Android [closed]

Tags:

android

packet

Can I capture packets for certain process or package on Android or even through adb?

like image 221
dpro Avatar asked Nov 25 '12 14:11

dpro


2 Answers

If you are looking at a specific application, disable background data for other processes through the settings app. Install tcpdump on the phone and setup wireshark on the pc to filter the data. There's no way to filter by a specific process directly, but you can make the rest of the phone quiet enough so you can sift through the noise.

Here is a good tutorial: analyzing android network traffic

If you're looking for traffic to known sites, like if you're trying to sniff private api calls, then it's trivial in wireshark to filter outbound and inbound traffic to and from that address.

like image 150
Dave Snigier Avatar answered Sep 30 '22 05:09

Dave Snigier


No, sorry, you cannot spy on applications' use of the Internet via adb. With root access, you have more options, but even then not simply using adb.

like image 31
CommonsWare Avatar answered Sep 30 '22 05:09

CommonsWare