Android修改文件和文件夹权限

// 修改权限
public static void chmod(String permission, String path) {
	try {
		String command = "chmod " + permission + " " + path;
		Runtime runtime = Runtime.getRuntime();
		runtime.exec(command);
	} catch (IOException e) {
		e.printStackTrace();
	}
}
chmod("777", mContext.getFilesDir().toString());


原文地址:https://www.cnblogs.com/javawebsoa/p/3035870.html