Request SU permissions

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Request SU permissions

Postby sixhouse » Thu Oct 06, 2011 12:51 pm

Hoping someone can provide a VERY simple example of only a few lines of code. My app needs to request SU permissions and everything I find when searching says to do this:

Code: Select all
Process p = Runtime.getRuntime().exec("su");


That's all well and fine, but what now? How do I actually USE that "p" object to do what I need to do? For example what if I want to edit a database that another app created? Can anyone help?

Thanks.
sixhouse
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Oct 06, 2011 12:45 pm

Top

Re: Request SU permissions

Postby Aeryris » Tue Oct 11, 2011 10:42 am

Aeryris
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Sep 03, 2011 11:19 pm

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 8 guests