Hi,
I am a newbie, in Android-ndk
I Developed a Linux devices driver which create a node call /dev/driver.
Libdriver.so is its shared library found in /system/lib/libdriver.so
In order to use my driver since user interface, I also developed a jni interface call lib_jni_drv.so (/system/lib/lib_jni_drv.so)
My big problem is the fact that my app do not have read/write permission acces to open /dev/driver through libdriver.so
logcat :
E/Trace(1257): error opening trace file: Permission denied (13)
I load my app since eclipse for Android.
I add these line in my manifest.xml
<uses-permission android:name="android.permission.ACCESS_SUPERUSER"></uses-permission>
and change the permission of /dev/driver libdriver.so et lib_jni_drv.so
chmod 777 /dev/driver
without any improvement.
Do you have any suggestions?
Thanks by advance