Re: [android-kernel] How to interface with device drivers in an apk

2015-09-11 Thread Shahin Ansari
I had a question about the JNI part, and posted it on stack. Here is what they say. If you or anyone else can help please do. I did not post here since I was not sure if JNI discussion is releva

Re: [android-kernel] How to interface with device drivers in an apk

2015-09-11 Thread Shahin Ansari
On Friday, September 11, 2015 at 2:01:10 AM UTC-4, Durga wrote: > > I believe you are on the right track. Did your HelloJNI work ? > > Also, JNI may be a preferred way; but not a must. You should be able to > use JAVA APIs (BufferedReader & friends) from your app to interact with > these files.

Re: [android-kernel] How to interface with device drivers in an apk

2015-09-10 Thread Durgadoss Ramanathan
I believe you are on the right track. Did your HelloJNI work ? Also, JNI may be a preferred way; but not a must. You should be able to use JAVA APIs (BufferedReader & friends) from your app to interact with these files. Watch out for permission issues etc.. Thanks, Durga On Fri, Sep 11, 2015 at

[android-kernel] How to interface with device drivers in an apk

2015-09-10 Thread Shahin Ansari
Greetings- In order to learn more about the device drivers on the Android platform, I built an tutorial code and was able to interface with it from a user program. Here is the code I used for device driver: /* Example Minimal Character Device Driver */ #include static int __init hello_init(void