Merge "Don't remove SYSTEM_FIXED for intentional fixed grants to critical apps."

This commit is contained in:
Treehugger Robot 2022-01-04 23:34:38 +00:00 committed by Gerrit Code Review
commit 547654cab7

View File

@ -435,7 +435,8 @@ final class DefaultPermissionGrantPolicy {
|| !pm.isGranted(Manifest.permission.READ_PRIVILEGED_PHONE_STATE,
pkg, UserHandle.of(userId))
|| !pm.isGranted(Manifest.permission.READ_PHONE_STATE, pkg,
UserHandle.of(userId))) {
UserHandle.of(userId))
|| pm.isSysComponentOrPersistentPlatformSignedPrivApp(pkg)) {
continue;
}