Hi,
I've created the native library for android app. And loading it by the System.loadLibrary(). Android app is a prebuilt application of the custom AOSP build. And the native lib is using RAW sockets under the hood. Right now I'm receiving error on socket creation in .cpp file due the lack of CAP_NET_RAW for the socket creation.
I'm wondering how to give such accesses to the app to be able to launch sockets? In terms of AOSP. Maybe some manipulations of the Linux sepolicies have to be made?
Currently my app is placed as .apk file in out/product/.../MyApp/myapp.apk and the native lib in out/product/.../MyApp/lib/mylib.so
Many thanks for the answers.