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

Commit 0e2e09ee authored by mrulhania's avatar mrulhania Committed by Manjeet Rulhania
Browse files

Fix app visibility and typo in app op permission package list

Bug: 422745653
Test: manual
Test: presubmmit
Flag: EXEMPT bug fix
Change-Id: I85a4794942be335d7d42726966c9c01326c8f606
parent 9845ca67
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1997,10 +1997,10 @@ class PermissionService(private val service: AccessCheckingService) :

        val permission = service.getState { with(policy) { getPermissions()[permissionName] } }
        if (permission == null || !permission.isAppOp) {
            packageNames.toTypedArray()
            return packageNames.toTypedArray()
        }

        packageManagerLocal.withUnfilteredSnapshot().use { snapshot ->
        packageManagerLocal.withFilteredSnapshot().use { snapshot ->
            snapshot.packageStates.forEach { (_, packageState) ->
                if (packageState.isApex) {
                    return@forEach