On Fri, Mar 18, 2011 at 3:26 AM, WuZhenda <wuzhe...@gmail.com> wrote:
> hi,all > I have ported the libusb & hidapi to the android, > > but when I use ndk-build to operate the usb device on java platform,I > always return false. > > I doubt you're using ndk-build to operate anything on the device :-) > so I do "chmod 666 /proc/bus/usb/002/001" cmd manually to make the device > can be read & write , then it return OK. > > Not NDK related. Normal applications can't modify the system. Moving this forum to bcc. > but I think when I mount the usbfs,I have made the usb can be read & > write already by the cmd "mount usbfs none /proc/bus/usb -o devmode=0666". > > > why? > > > > -- > You received this message because you are subscribed to the Google Groups > "android-ndk" group. > To post to this group, send email to android-...@googlegroups.com. > To unsubscribe from this group, send email to > android-ndk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/android-ndk?hl=en. > -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting