You absolutely can not do this. There are some open-source mods to Android that do allow apps to get root, but because of the security repercussions those should never appear on a shipping device.
On Thu, Jun 10, 2010 at 9:28 PM, 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

