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

Commit b67919d4 authored by Hai Zhang's avatar Hai Zhang
Browse files

Allow all partitions to provide signature permission allowlist for downloaded apps

Bug: 308573169
Test: presubmit
Change-Id: Id639742b84f9f5f0df76a496b825e2b102845041
parent f5ecee63
Loading
Loading
Loading
Loading
+17 −1
Original line number Diff line number Diff line
@@ -1276,7 +1276,23 @@ class AppIdPermissionPolicy : SchemePolicy() {
                    packageName,
                    permissionName
                )
            else -> permissionAllowlist.getSignatureAppAllowlistState(packageName, permissionName)
            else ->
                permissionAllowlist.getProductSignatureAppAllowlistState(
                    packageName,
                    permissionName
                )
                    ?: permissionAllowlist.getVendorSignatureAppAllowlistState(
                        packageName,
                        permissionName
                    )
                    ?: permissionAllowlist.getSystemExtSignatureAppAllowlistState(
                        packageName,
                        permissionName
                    )
                    ?: permissionAllowlist.getSignatureAppAllowlistState(
                        packageName,
                        permissionName
                    )
        }
    }