Can I capture packets for certain process or package on Android or even through adb?
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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With