I am googling since a week, but didn't found any information on how to monitor the /proc/net/{tcp,tcp6,udp,udp6...} files in Android.
There are couple of threads in the stackoverflow, but are linux platform related and not related to android
1) How to detect changes in /proc/net/ files?
2) How can i match each /proc/net/tcp entry to each opened socket?
3) Monitor the IP addresses from connections being made from all apps using the network without rooting the Android phone
Any help will be of great use. Even when I tried implementing the inotify function in c, I was getting event only when I cat the "/proc/net/tcp" file. Not getting when it is updated.