Re: [android-porting] Device Driver access via native functions called via JNI

2010-05-11 Thread Ranganath s
I guess yo need to give some permissions.. -Ranganath.S On Tue, May 11, 2010 at 12:07 PM, Sambhav wrote: > Hi All, > > I have a JavaClass which calls native C function via JNI. > Can these C function access the device drivers directly ? > > Ex. I want to access /dev/video1 from the C function

Re: [android-porting] Device Driver access via native functions called via JNI

2010-05-11 Thread Deva R
add permission in init.rc "chmod 0777 /dev/video0" On Tue, May 11, 2010 at 12:19 PM, Sambhav wrote: > How and where should I give permissions ? > > On Tue, May 11, 2010 at 12:09 PM, Ranganath s wrote: > >> I guess yo need to give some permissions.. >> >> -Ranganath.S >> >> >> >> On Tue, May

Re: [android-porting] Device Driver access via native functions called via JNI

2010-05-10 Thread Sambhav
How and where should I give permissions ? On Tue, May 11, 2010 at 12:09 PM, Ranganath s wrote: > I guess yo need to give some permissions.. > > -Ranganath.S > > > On Tue, May 11, 2010 at 12:07 PM, Sambhav wrote: > >> Hi All, >> >> I have a JavaClass which calls native C function via JNI. >>

[android-porting] Device Driver access via native functions called via JNI

2010-05-10 Thread Sambhav
Hi All, I have a JavaClass which calls native C function via JNI. Can these C function access the device drivers directly ? Ex. I want to access /dev/video1 from the C function called via JNI. (This failed) However in native C application I was able to access /dev/video1 Regards, sambhav -- un