Giter Site home page Giter Site logo

tcpdump-android-builds's Introduction

Tcpdump Android Builds

Precompiled Tcpdump binaries for Android are provided for ARM, ARM64, X86, X86-64. Download from releases.

Tcpdump version: 4.9.2
Libpcap version: 1.9.0
Default android API: 23

Compilation Steps

  1. Download the Android NDK from https://developer.android.com/ndk/downloads/. Extract the zip to a suitable location.

    $ wget https://dl.google.com/android/repository/android-ndk-r18b-linux-x86_64.zip
    
  2. Clone the repository

    $ git clone https://github.com/extremecoders-re/tcpdump-android-builds.git
    $ cd tcpdump-android-builds
    
  3. For compiling, set NDK to the location of the android sdk directory and run the corresponding build script.

    $ NDK=/home/ubuntu/workspace/android-ndk-rxxx/ ./build_x86.sh
    $ NDK=/home/ubuntu/workspace/android-ndk-rxxx/ ./build_x86_64.sh
    $ NDK=/home/ubuntu/workspace/android-ndk-rxxx/ ./build_arm.sh
    $ NDK=/home/ubuntu/workspace/android-ndk-rxxx/ ./build_arm64.sh
    
  4. Compiled binaries will be located in the corresponding tcpdumpbuild directory.

Compile libpcap for multiple targets and API versions

You can use the build_libpcap_all.sh script to run the scripts mentioned above for multiple targets and Android API versions. This can be useful if you need to buid libpcap for multiple targets / API versions.

  1. Run the script build_libpcap_all.sh and set NDK to the location of the android sdk directory.

  2. You can also specify the following parameters:

  • OUTPUT_DIR for the output directory. The default is libpcap_all_targets.
  • TARGETS one or more targets from this list: arm arm64 x86 x86_64. The default is all of them.
  • API_MIN min API version. The default is 21.
  • API_MAX max API version. The default is 30.
  1. Examples:
    $ NDK=/home/ubuntu/workspace/android-ndk-rxxx/ ./build_libpcap_all.sh
    $ NDK=/home/ubuntu/workspace/android-ndk-rxxx/ OUTPUT_DIR=my_dir ./build_libpcap_all.sh
    $ NDK=/home/ubuntu/workspace/android-ndk-rxxx/ TARGETS="x86 x86_64" ./build_libpcap_all.sh
    $ NDK=/home/ubuntu/workspace/android-ndk-rxxx/ API_MIN=21 API_MAX=30 /build_libpcap_all.sh
    

How to use tcpdump?

References

tcpdump-android-builds's People

Contributors

extremecoders-re avatar seladb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tcpdump-android-builds's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.