7

I can track the overall and per uid (application) bandwidth usage of Android device by android.net.TrafficStats. However a uid can execute more than one binaries to invoke more than one processes.

I want to know if there is any method or way to get per process bandwidth usage, so that I can trace back the binary that starts the connection to the Internet.

Krypton
  • 3,337
  • 5
  • 32
  • 52

2 Answers2

1

If you are interested on the network trafic done by your aplication you can try AT&T ARO, you will need to register at AT&T (free) but the tool is very good it acounts for the network done by your aplication only, and you can actually see the Packets being sent and received, and get Advices on were you can improve your network usage.

forcewill
  • 1,637
  • 2
  • 16
  • 31
1

You may want to have a look at nethogs and its source code for Linux. As Android in built on Linux kernel, I believe that you can implement it in a similar way.

Krypton
  • 3,337
  • 5
  • 32
  • 52