Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3de06c50 authored by Yi-an Chen's avatar Yi-an Chen
Browse files

Skip checking allowlist for non-system apps

Bug: 264592023
Test: PermissionTestCases
Change-Id: I8e291eccc251e80729c5d5e293928d80317f1d7c
parent 417fca9a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3299,7 +3299,7 @@ public class PermissionManagerServiceImpl implements PermissionManagerServiceInt
        if (Objects.equals(packageName, PLATFORM_PACKAGE_NAME)) {
            return true;
        }
        if (!packageSetting.isPrivileged()) {
        if (!(packageSetting.isSystem() && packageSetting.isPrivileged())) {
            return true;
        }
        if (!mPrivilegedPermissionAllowlistSourcePackageNames
+1 −1
Original line number Diff line number Diff line
@@ -953,7 +953,7 @@ class UidPermissionPolicy : SchemePolicy() {
        if (packageState.packageName == PLATFORM_PACKAGE_NAME) {
            return true
        }
        if (!packageState.isPrivileged) {
        if (!(packageState.isSystem && packageState.isPrivileged)) {
            return true
        }
        if (permission.packageName !in newState.systemState.privilegedPermissionAllowlistPackages) {