There is a project called jpcap which use PCAP library to capture packets by Java. http://sourceforge.net/projects/jpcap/
On Tue, Apr 16, 2013 at 6:30 PM, Ishan Sharma <[email protected]>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. > > > -- -- 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.

