This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Running native codes on USB arrival

Hi Experts,

In Linux environment I use native codes cross compiled for ARM processor in the user space. The requirement is when on a USB device arrival, udevd will invoke the binary in association with rules containing VID/PID.

In Android environment I would like to do the same. I tried cross compiling the native codes for the same ARM development board and able to execute it manually using adb.

Also I developed a sample Android application with JNI interface to manually execute it.

1. How to auto execute the native binary in Android environment, since udev is missing in Android for USB devices ?

2. Writing Android app with JNI native code or straight away native code like GNU utils which one is the best way to satisfy the above needs

Regards,

techguyz