Fix prefs on other user (#1929)
This commit is contained in:
parent
c99c3b1165
commit
b36c170b8c
|
|
@ -242,7 +242,7 @@ public class ConfigManager {
|
|||
miscPath = string;
|
||||
}
|
||||
try {
|
||||
Path prefs = Paths.get(miscPath + "/prefs");
|
||||
Path prefs = Paths.get(miscPath);
|
||||
var perms = PosixFilePermissions.fromString("rwx--x--x");
|
||||
Files.createDirectories(prefs, PosixFilePermissions.asFileAttribute(perms));
|
||||
walkFileTree(prefs, f -> SELinux.setFileContext(f.toString(), "u:object_r:magisk_file:s0"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue