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

Malcolm MacNiven mmacniven at validityinc.com
Thu Aug 23 19:46:05 UTC 2012


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

[Description: Description: Description: Description: Description: Validity_Signature_Logo]

Validity Sensors Inc.
15210 S. 50th Street
Suite 110.
Phoenix, AZ 85044
P: 480-385-3153
F: 480-385-3179
E: mmacniven at validityinc.com<mailto:mmacniven at validityinc.com>

"Music is the wine that fills the cup of silence." - Robert Fripp
"Time is an illusion. Lunchtime doubly so" -Douglas Adams

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/necessitas-devel/attachments/20120823/2eb45a48/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2326 bytes
Desc: image001.jpg
URL: <http://mail.kde.org/pipermail/necessitas-devel/attachments/20120823/2eb45a48/attachment.jpg>


More information about the Necessitas-devel mailing list