i have a USB device (fingerprint reader) which I'd connect to the Galaxy S2 (since it supports USB host mode) and use it in my own app exploiting newest Android USB APIs http://developer.android.com/reference/android/hardware/usb/UsbDevice.html
When I connect the reader to the phone, it says "unknown USB peripheral device" and the reader is switched on, so there is no power supply problem. I have the Linux driver source code of the reader, so I can compile it for ARM architecture if necessary.
How can I integrate this driver in the Android kernel (if possible, since it is based on Linux)?? Is possible to create a separate module?? root privileges are absolutely needed?
Or simpler maybe, can I determine the peripheral type through the USB APIs??