Home > Mobile >  Now using JNI, when using the open function open/dev/hidraw1 returns a value of 1, errno=2, suggest
Now using JNI, when using the open function open/dev/hidraw1 returns a value of 1, errno=2, suggest

Time:09-16

Everybody is good, now using JNI, when using the open function open/dev/hidraw1 returns a value of 1, errno=2, suggest No to the file or directory
But under the dev is the device file can be found, there are permissions


Thank you for the

CodePudding user response:

Ls -l/dev/hidraw1 see return authorization information

CodePudding user response:

reference 1st floor bigc2001 response:
ls -l/dev/hidraw1 see return authorization information

Thank you, has been solved, my rights is no problem, my device plugged into the wrong place

CodePudding user response:

How do you do in your jni can directly use the open method

CodePudding user response:

reference Androidsbb reply: 3/f
hi you can directly use the open method in jni



You can be in another file C write a function to call the open function, and then in the jni calls
  • Related