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

Commit 22a521b2 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: Ibd657b0cbfbad4f482497fb04c33b594fa25f283
Merged-In: I8e291eccc251e80729c5d5e293928d80317f1d7c
parent c573766a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3268,7 +3268,7 @@ public class PermissionManagerServiceImpl implements PermissionManagerServiceInt
        if (Objects.equals(packageName, PLATFORM_PACKAGE_NAME)) {
            return true;
        }
        if (!pkg.isPrivileged()) {
        if (!(pkg.isSystem() && pkg.isPrivileged())) {
            return true;
        }
        if (!mPrivilegedPermissionAllowlistSourcePackageNames