4ntoine
4ntoine

Reputation: 20422

How to know linux usb device file path for UsbDevice instance on android?

I have to connect to usb device on android and the user is expected to select device and allow access to USB, so finally i have UsbDevice instance. How can i know it's linux file path (something like "/dev/bus/usb/002/001") to pass it to native code.

Will it require android device rooting? If yes i can request usb device permission using standard android approach and i believe it grants usb file access to app process. Will it help?

Upvotes: 1

Views: 1397

Answers (1)

4ntoine
4ntoine

Reputation: 20422

Just use getDeviceName() method

Upvotes: 1

Related Questions