Hi ,
I am working on Android Oreo on i.Mx6 sabresd platform. I am using custom application [ioctl] which will enable the wifi protocol. From the custom application , I am unable to create a socket ,
following is the custom app code for socket,
if ((sfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
{
printf("\n **********socket sfd is %d \n", sfd,);
return 2;
}
Logcat output is: **********socket sfd is -1
Please someone help me how to add sepolicy for this?
Regards
Susan