tinus0828 / rowboat

Automatically exported from code.google.com/p/rowboat
0 stars 0 forks source link

android jni on Beagleboard #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Can android jni use open,ioctl,close to control hardware? I try to do so,but 
failed. When I open a device in a jni,it always return -1.if I use chmod to 
change the permission of the device node(for example chmod 777 /dev/hidraw0),it 
successed in open the device.Are there some solutions not to use chmod。  
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by dreamdou...@126.com on 19 Aug 2010 at 8:50

GoogleCodeExporter commented 9 years ago
I also face same type of problem. I am trying to open the device the node with 
777 permissions (rtc_fd=open("/dev/rtc",0777);) however it is resulting '-1' 
only.

I am testing this on following things : ANDROID 2.0.1 -MOTOROLA milestone 
device.

Original comment by mychan...@gmail.com on 11 Oct 2011 at 7:20