Git Product home page Git Product logo

traceroute-for-android's Introduction

traceroute-for-android Download

Easy way to use traceroute on Android.

Description

Traceroute tracks the route packets taken from an IP network on their way to a given host. It utilizes the IP protocol's time to live (TTL) field and attempts to elicit an ICMP TIME_EXCEEDED response from each gateway along the path to the host.

Rendering Image

images/1.png

Adding to project

dependencies {
    implementation 'com.wandroid:traceroute:<latest-version>'
}

Simple usage

synchronous way

val traceResult = TraceRoute.traceRoute("www.google.com")

asynchronous way

TraceRoute.setCallback {
    success { Log.d("tag", "\ntraceroute finish") }
    update { text -> Log.d("tag", text) }
    failed { code, reason -> Log.d("tag", """\ntraceroute failed.code:$code, reason:$reason""") }
}
TraceRoute.traceRoute("www.google.com", true)

Proguard

-keepclassmembers com.wandroid.traceroute.TraceRoute {
    void clearResult();
    void appendResult(***);
    int execute(***);
}

get executable file from traceroute-android-executable

traceroute-for-android's People

Contributors

wangjing53406 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

traceroute-for-android's Issues

Issue with installing as a system app

Moved the APK to /system/priv-app/ folder to install it as a system app. But getting an error like this when running traceroute - java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/priv-app/TraceRoute/app-release.apk"],nativeLibraryDirectories=[/system/priv-app/TraceRoute/lib/arm, /system/priv-app/TraceRoute/app-release.apk!/lib/armeabi-v7a, /system/lib, /product/lib, /system/lib, /product/lib]]] couldn't find "libtraceroute.so"

As per stack trace, the issue happens when the apk tries to load the traceroute binary file by calling System.loadLibrary("traceroute")

Tried this solution but still facing the same issue. Can you please help with resolving it?

implementation 'com.wandroid:traceroute-for-android:1.0.1' not working

Hi there..
I tried to do implementation 'com.wandroid:traceroute-for-android:1.0.1' in the gradle dependencies, but it's not working.
Error : ERROR: Failed to resolve: com.wandroid:traceroute-for-android:1.0.1 Show in Project Structure dialog Affected Modules: app
Meanwhile implementation 'com.wandroid:traceroute-for-android:1.0.0' is working, but the Activity / App crashed when there's no internet connection or wrong url at the edittext box on Devices API below 26.

License

Very useful library. Are there any terms for using this -- i.e. is attribution required, is commercial use available or is this CC0 (no rights reserved)?

Version 1.0.1 is not available

As someone else mentioned in a past issue, version 1.0.1 is not available anywhere. You suggested adding Jcenter as a dependency source, but it is not available there either. I know this is an older repo, but I thought I'd mention it for others looking for a traceroute solution. Version 1.0.0 is available if you use implementation("com.wandroid:traceroute-for-android:1.0.0")

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.