AndroidNetworkTools icon indicating copy to clipboard operation
AndroidNetworkTools copied to clipboard

ip neigh command does not work after upgrading targetSDK to 30

Open 5hahryar opened this issue 3 years ago • 1 comments

Reading the ARP table and accessing the MAC address of devices on network is working just fine. But when you upgrade the targetSDK to 30, suddenly the "ip neigh" command won't return a value anymore. I'm guessing this has something to do with the restrictions on android. Is there any way to fix this issue? Note: tested on samsung galaxy s10 running android 11.

5hahryar avatar Dec 30 '21 07:12 5hahryar

Hello, I did a library to fix that! https://github.com/fulvius31/ip-neigh-sdk30

fulvius31 avatar May 01 '22 15:05 fulvius31

Hello, I did a library to fix that! https://github.com/fulvius31/ip-neigh-sdk30

Hello I used the library and it works fine on Android 12, but when using infinite loop there is a crash!!! while (true) { Toast.makeText(MainActivity.this, ArpNDK.getARP(), Toast.LENGTH_SHORT).show(); } Please fix it.

Agmcz avatar Nov 04 '22 14:11 Agmcz

@fulvius31 great work on the workaround. It's a shame that on newer devices we will not longer have access to any ARP information without root :smiling_face_with_tear: Closing this as nothing we can really do....

stealthcopter avatar Dec 18 '23 11:12 stealthcopter