>>The issue now is we were able to send ioctls to driver and execute them
with a c test application.But when the same API's being used by android
application it gives an error as "OPERATION NOT PERMITTED".
access previleges is missing for application (user mode), while its
available for c appliation (which would've launched from console, which is
running as root)

i'm not sure what you meant by "same api's being used by android
application"., ideally ioctl's would be invoked from native code, & api's
will be exposed to android apps via JNI.,
if thats the case, make sure your device permissions are set right in
init.rc, so you will have right access previlege from application too.,
"chmod 777 /dev/mychardev"


On Mon, May 7, 2012 at 9:32 PM, reddy <[email protected]> wrote:

> hi,i am a system programmer i am not aware of android application
> development and their permissions.Recently we have developed a sniffer and
> packet injector.The issue now is we were able to send ioctls to driver and
> execute them with a c test application.But when the same API's being used
> by android application it gives an error as "OPERATION NOT PERMITTED".I am
> confused as i was able to send ioctls to Chardriver and why not to wifi
> driver.i can call the test application through android application but it
> is bit complex and passing parameters and buffers to it is diffult and
> cumbersome.Is thereany way to resolve this or it is a restriction for
> android apps.if that is true how does the default wifi application is able
> to send commands to driver? If any one faced this issue please post the
> clues to resolve it..
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>



-- 
Regards,
Deva
www.bittoggler.com

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to