I too am interested in running an application as ROOT. I am using libusb and the setup requires writing to usb_set_configuration, which is not permitted unless run from a C application as root (eg. I cannot use JNI in my app to configure USB-host).
Please keep posted. sws-vinpa On Jun 11, 12:28 am, saikiran n <[email protected]> wrote: > Shall we give root permissions for android application? > My requirement is i want to execute a c program using jni > That contains some functions like umount etc. > I tried in the following way > static{ > System.loadLibrary("myjni");} > > Process p=Runtime.getRuntime().exec("su"); > int value=getValue(); > > where getValue() is a native method contains umount() function call. > But this is returning -1 means permissions problem > > Any help -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

