void su(String su){
try
{
java.lang.Process p = Runtime.getRuntime().exec("su");
DataOutputStream o = new DataOutputStream(p.getOutputStream());
o.writeBytes(new StringBuffer().append(su).append("\n").toString());
o.writeBytes("exit\n");
o.flush();
StringBuilder i = new StringBuilder(),e = new StringBuilder();
BufferedReader
in = new BufferedReader(new InputStreamReader(p.getInputStream())),
er = new BufferedReader(new InputStreamReader(p.getErrorStream()));
String s;
while ((s = in.readLine()) != null)
{
i.append(s);
}
while ((s = er.readLine()) != null)
{
e.append(s);
}