Skip checking allowlist for non-system apps
Bug: 264592023 Test: PermissionTestCases Change-Id: Ibd657b0cbfbad4f482497fb04c33b594fa25f283 Merged-In: I8e291eccc251e80729c5d5e293928d80317f1d7c
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user