Can I capture packets for certain process or package on Android or even through adb?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.