a) no.
b) see answer to question a.
c) yes, it should have already come up in your 
search... 
http://stackoverflow.com/questions/7868246/packet-level-networking-in-android



On Tuesday, April 16, 2013 4:00:05 PM UTC+3, Ishan Sharma wrote:
>
> Hello!
>
> I am trying to develop a packet sniffer for Android. From what I have 
> searched around the best approach seems to be porting the libpcap library 
> to Android and use it with JNI. However, libpcap (or every other sniffing 
> library for that matter) requires root access to sniff the packets. Now I 
> know that sniffing packets is a privileged operation in Linux kernel and 
> can't be bypassed.
>
> My questions are following:
> a) Is there some technique to provide temporary root access to our 
> application in Android as it is possible in Linux?
>
> b) Is there some library apart from libcap which would allow me to capture 
> packets without requiring root access?
>
> c) Is there some other method in Android to capture packets?
>
> Regards,
> Ishan Sharma
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to