If execute "dumpsys ethernet | grep 'LinkProperties:'" command in the shell myself I get the desired output. However, if I try to execute it in a process I launch from my app I get this:
'Permission Denial: can't dump EthernetService from pid=2836, uid=10057'
If I try "su -c "dumpsys ethernet | grep 'LinkProperties:'"" I get an empty response.
Is there another command I could use which doesn't require elevated permissions?