You will need to root the phone and compile tcpdump or use compilation with someone else.
It may seem easier for you to perform these experiments with the emulator, in which case you can do monitoring from the PC host. If you have to use a real device, another option is to put it on a Wi-Fi network, hanging on an additional interface in the linux box running tcpdump.
I do not know from what point of view you will be filtering by a specific process. One suggestion I found in some quick search mailing is to use strace on the subject process instead of tcpdump on the system.
Chris Stratton Feb 25 2018-11-29T00: 00Z
source share