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

Commit 13666710 authored by Yi-an Chen's avatar Yi-an Chen Committed by Android (Google) Code Review
Browse files

Merge "Skip checking allowlist for non-system apps"

parents 239c3ccd 3de06c50
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3305,7 +3305,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
@@ -962,7 +962,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) {