Android - How to track bandwidth usage in the process?

I can track bandwidth usage in general and on every (app) Android device on android.net.TrafficStats . However, uid can execute multiple binaries to invoke multiple processes.

I want to know if there is any method or way to access the bandwidth of each process so that I can track the binary that starts the Internet connection.

+6
source share
2 answers

If you are interested in the network traffic made by your application, you can try AT & T ARO , you need to register for AT & T (for free), but the tool is very good that it counts the network performed only by your application, and you can really see that packets are being sent and received, and receiving tips could improve your network usage.

+1
source

You can look at nethogs and the source code for Linux. Since Android is built on the Linux kernel, I believe that you can implement it in a similar way.

+1
source

Source: https://habr.com/ru/post/926721/


All Articles