|
From: Burhan E. <bur...@gm...> - 2014-12-22 16:30:30
|
I have a specific library called cyusb.so which is thin wrapper on libusb
library. This library was designed for linux and it has some config files
such as 88-cyusb.rules, cy_renumerate.sh, cyusb.conf etc.
cyusb.conf file is read inside the cyusb library.
88-cyusb.rules is a driver for usb microcontroller which runs
cy_renumare.sh.
Inside of 88-cyusb.rules file is:
KERNEL=="*", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ACTION=="add",
ATTR{idVendor}=="04b4", MODE="666", TAG="cyusb_dev",
RUN+="/usr/local/bin/cy_renumerate.sh A"
KERNEL=="*", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",
ACTION=="remove", TAG=="cyusb_dev", RUN+="/usr/local/bin/cy_renumerate.sh R"
With the make install command, 88-cyusb.rules will be put in the
etc/udev/rules.d/ .
cyusb.conf will be put in the /etc/ and cy_renumerate.sh will be put in
usr/local/bin.
I wonder that will I need specific driver for Android like 88-cyusb.rules,
if it is required, where will I put it and how can I change 88-cyusb.rules
for Android? Does anyone has an idea?
|