Merge "Allow APEXes permission XMLs to declare features." am: ada5fb65b5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1810683 Change-Id: I2385e0b45e15f204382ec5eeee24ce3d62b17064
This commit is contained in:
@@ -573,13 +573,14 @@ public class SystemConfig {
|
|||||||
if (!isSystemProcess()) {
|
if (!isSystemProcess()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Read configuration of libs from apex module.
|
// Read configuration of features and libs from apex module.
|
||||||
|
int apexPermissionFlag = ALLOW_LIBS | ALLOW_FEATURES;
|
||||||
// TODO: Use a solid way to filter apex module folders?
|
// TODO: Use a solid way to filter apex module folders?
|
||||||
for (File f: FileUtils.listFilesOrEmpty(Environment.getApexDirectory())) {
|
for (File f: FileUtils.listFilesOrEmpty(Environment.getApexDirectory())) {
|
||||||
if (f.isFile() || f.getPath().contains("@")) {
|
if (f.isFile() || f.getPath().contains("@")) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
readPermissions(Environment.buildPath(f, "etc", "permissions"), ALLOW_LIBS);
|
readPermissions(Environment.buildPath(f, "etc", "permissions"), apexPermissionFlag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user