The app needs R/W permissions on the special (device) file you use
ioctl() on. Keep in mind that Android has a separate user for each app,
so the device file needs to be effectively world read- and writeable.
Best regards.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
The issue is as network devices doesn't have any device files as char and block.
here i am using a socket to communicate to send ioctls to wifi driver.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/E7tbTebOrfIJ.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
myself a system programmer,i not that aware of this android apps.
Here we are trying to interact with the wifi driver.SIOCIWFIRSTPRIV is the ioctl which i am trying to send.
when executed this ioctl using JNI code is returning OPERATION NOT PERMITTED as the error code.But the same thing works when called using a c executable.Is this a restriction for android apps??In some forums they have strictly said we cant do it directly through android apps.They suggested to use the test application ie c executable.If further info required i wil provide