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

Reply via email to