Thursday, June 10, 2010

[android-developers] Root permission for application

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate