Process process = null;
try{
process = Runtime.getRuntime().exec("su");
//这里是主要程序代码ATAAW.COM
process.waitFor();
}
catch(Exception e){
e.printStackTrace();
}
finally {
process.destroy();
}
转自:http://disanji.net/2011/01/06/android-root-permission/