GithubHelp home page GithubHelp logo

fulvius31 / ip-neigh-sdk30 Goto Github PK

View Code? Open in Web Editor NEW
31.0 4.0 8.0 736 KB

Ip neigh for android using android NDK. Avoiding restriction of bind socket on Android apps targeting sdk 30

License: Creative Commons Zero v1.0 Universal

Java 27.53% CMake 11.54% C 60.94%
android android-application arp arp-table ip iproute2

ip-neigh-sdk30's Introduction

IP neighbour for Android with TargetSDK 30 and above

License: CC0-1.0


What this library does?

This library is born because Google has removed the possibility to use command like ip neigh for all the apps with targetSDK 30.

More precisely apps cannot bind netlink socket when targeting Android API 30, then apps cannot retreive Arp table anymore.

With this library, you can easily do that!

Screenshot

How to import

Step 1. Add the JitPack repository in your root build.gradle file at the end of repositories

allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}

Step 2. Add the dependency

dependencies {
  ...
  implementation 'com.github.fulvius31:ip-neigh-sdk30:v0.0.3alpha'
}

How to use

Use this library, is pretty easy. You have to call a method from the library that returns a String.

import it.alessangiorgi.ipneigh30.ArpNDK;

...

String arpTable = ArpNDK.getARP();

Important Note

This library does not work with Android 13 devices if you use targetSdk equals to 32 .

Apps Using this Library

ip-neigh-sdk30's People

Contributors

codezjx avatar fulvius31 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

Watchers

 avatar  avatar  avatar  avatar

ip-neigh-sdk30's Issues

Android 13 workaround?

Hey @fulvius31

Thanks for publishing such a wonderful library. Due to android 13 restrictions do you think a solution of pinging a range of IPs could be a way to go with? I know it would take much time but that what I can see for now

I love to hear from you if you have other solutions for android 13

What to do for SDK 32?

Hi, it looks like this code works well for SDK 30 and 31, but not 32. It shows access denied on 32. What can we do for 32?

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.