Fix SELinux context for Xposed API 100

Files in `/data/adb/lspd/modules/` should be accessible via xposed API `openRemoteFile`.
Close #381 and #466 as fixed.
This commit is contained in:
JingMatrix 2025-11-08 16:54:34 +01:00
parent 31e19069e4
commit ed1f61d26e
1 changed files with 1 additions and 1 deletions

View File

@ -457,7 +457,7 @@ public class ConfigFileManager {
if (uid != -1) { if (uid != -1) {
if (path.toFile().mkdirs()) { if (path.toFile().mkdirs()) {
try { try {
SELinux.setFileContext(path.toString(), "u:object_r:xposed_file:s0"); SELinux.setFileContext(path.toString(), "u:object_r:xposed_data:s0");
Os.chown(path.toString(), uid, uid); Os.chown(path.toString(), uid, uid);
Os.chmod(path.toString(), 0755); Os.chmod(path.toString(), 0755);
} catch (ErrnoException e) { } catch (ErrnoException e) {