how can I access Android USB devices from QT application - issue w/ device/file privileges...

Harri Pasanen harri at mpaja.com
Fri Aug 24 09:30:36 UTC 2012


Based on the permissions you list below, you should just add your user 
to usb group, as that has rw access to device files.

On 08/23/2012 10:50 PM, mdmacniv at earthlink.net wrote:
> Hi,
>
> I’m a ‘newbie’ to Android and QT Necessitas.
>
> I have a QtApp that works on Mac OSx and Windows that I am now porting to Android using Necessitas.
>
> This app accesses USB devices, which on my Android PandaBoard instantiate with dev/file privileges as:
> root at android:/dev/bus/usb/001 # ls -als
> total 0
> crw-rw---- root     usb      189,   0 1969-12-31 17:00 001
> crw-rw---- root     usb      189,   1 1969-12-31 17:00 002
> crw-rw---- root     usb      189,   2 1969-12-31 17:00 003
> crw-rw---- root     usb      189,   3 1969-12-31 17:00 004
> crw-rw---- root     usb      189,   4 1969-12-31 17:00 005
>
> As my QtApp doesn’t run with root privileges, I have to adb shell and chmod 666 * to be able to access the usb devices each time I run my application.
>
> Is there a way that I change the user permissions of my ported QtApp?
>
> Thanks for any ideas/guidance.
>
> Malcolm
>
> Malcolm MacNiven
> Sr. Software Engineer
>
>
> Malcolm MacNiven
> mdmacniv at earthlink.net
>
> "Music is the wine that fills the cup of silence." - Robert Fripp
> "Time is an illusion. Lunchtime doubly so" -Douglas Adams
>
> _______________________________________________
> Necessitas-devel mailing list
> Necessitas-devel at kde.org
> https://mail.kde.org/mailman/listinfo/necessitas-devel



More information about the Necessitas-devel mailing list