I have so task that make android device talk to some device that uses ethernet directly. On linux I can use
setcap CAP_NET_RAW+ep /path/to/your/program-file
to setup permissions.
But I can't find how to make it under android.
I have rooted device and I can edit ueventrc.d
My program will run only on my device and I can customize platform.
I use NDK-r8.