1. Are you ready for the Galaxy S20? Here is everything we know so far!

Force use ip neigh show on android 11

Discussion in 'Android Development' started by npuleio, Oct 7, 2021.

  1. npuleio

    npuleio Lurker
    Thread Starter

    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
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...

Share This Page

Loading...