Changing System File Permission
I've really tried everything: NetHackFileHelpers How to get File Permission Mode programmatically in Java Change file permission in application Mount R/W system in android applica
Solution 1:
Here is my solution:
Process sh = Runtime.getRuntime().exec("su", null, new File("/system/bin/"));
OutputStream os = sh.getOutputStream();
os.write(("chmod 777 <filepath>").getBytes("ASCII"));
os.flush();
os.close();
sh.waitFor();
Post a Comment for "Changing System File Permission"