1

I need to avoid using Android USB API and just get access to USB device file (like /dev/bus/usb/002/002 file) from my android app. Is there any opportunity to do it without rooting?

Now i'm getting permission error (from child process):

W/System.err( 9368): avrdude: ser_open(): can't open device "/dev/bus/usb/002/002": Permission denied W/System.err( 9368): ioctl("TIOCMGET"): Invalid argument 

1 Answer 1

1

No access to file directly. Use http://developer.android.com/reference/android/hardware/usb/UsbDeviceConnection.html#getFileDescriptor() instead

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.