打开777权限 public class SystemManager extends Activity { public static boolean RootCommand(String command){ Process process = null; DataOutputStream os = null; try{ process = Runtime.getRuntime().exec("su"); os = new DataOutputStream(process.getOut
r 以只读模式打开文件 w 以只写模式打开文件,文件若存在,首先要清空,然后(重新创建) a 以追加模式打开(从EOF开始,必要时创建新文件),把所有要写入文件的数据追加到文件的末尾,即使使用seek()指向了文件的其它地方,如果文件不存在,将自动创建. r+ 以读写方式打开文件,文件可读可写,可写到文件的任何位置 w+ 以读写模式打开,和r+不同的是,它会truncate the file first a+ 和r+不同的是,它只能写到文件末尾 rb 以二进制读写模式打开 wb