• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Force use ip neigh show on android 11

npuleio

Lurker
Sep 22, 2014
3
0
Hello everyone!

I am trying to get list of connected custom devices to my mobile hotspot on an Android 11 phone.... if I use Termux app I can exec "ip neigh show" and obtain devices list but if I do the same programmatically on my app implemented on Android Studio with Process proc = runtime.exec("ip neigh show"); that doesn't work... is there a way to force execute that process via code? Maybe does that depend on setting force minSdkVersion , targetSdkVersion, compileSdkVersion on Gradle config and AndroidManifest.xml to force backward compatibility even if being on Android 11 phone because that permission maybe is Sdk version related?
Or is there an alternative for android 11+ to obtain hotspot's connected custom devices programmatically?

Thanks to all!!! :)
Cheers!
npuleio
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones