I want to create a module that capture packets ( like Shark for Root app in Android).
Can i use JPCAP library (Java)? Do i need to root my Android phone to capture packets?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not directly. It relies upon JNI, presumably for accessing
libpcap. You would need to modify the build process to use Android’s NDK. It is conceivable that this would require no code changes, but that’s far from certain.Also, it is possible that the Java code for JPCAP requires classes that are not in Android.
Most likely. Everything else that uses
libpcapon Android (e.g., Shark for Root) needs it. Even desktop Linux kinda needs it.