Per-uid network bytes received/sent is available as of the Froyo SDK via:

http://developer.android.com/reference/android/net/TrafficStats.html

On Thu, Jul 22, 2010 at 9:52 AM, Greg KH <gre...@gmail.com> wrote:

> On Thu, Jul 22, 2010 at 9:28 AM, potassium
> <symbianprofessio...@hotmail.com> wrote:
> > Hi
> >
> > I have a requirement to write a component that is capable of
> > intercepting inbound/outbound TCP/UDP traffic from a device, which/
> > what is the best mechanism to accomplish this?
>
> A netfilter rule and/or a netfilter kernel module will do this for you.
>
> > A side question - is there a mechanism available for my code to be
> > capable of detecting the application's from which the network traffic
> > originates?
>
> If you use the SELinux network stack, yes.  That too is available to you if
> you wish to enable it in your kernel.
>
> good luck,
>
> greg k-h
>
> --
> unsubscribe: 
> android-kernel+unsubscr...@googlegroups.com<android-kernel%2bunsubscr...@googlegroups.com>
> website: http://groups.google.com/group/android-kernel
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to