Force use ip neigh show on android 11


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!!! :)