Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Request SU permissions

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