Don't remove SYSTEM_FIXED for intentional fixed grants to critical apps.
See b/208785537#comment11. Bug: 208785537 Bug: 206556385 Bug: 183537857 Fixes: 203175819 Fixes: 229913295 Test: presubmit Change-Id: Iaf5e2a0d86259805a9ef03f8f1baa14dd8c58da0 Merged-In: Iaf5e2a0d86259805a9ef03f8f1baa14dd8c58da0 (cherry picked from commite6f07a4fb2) (cherry picked from commitb0b2863467) (cherry picked from commit 751b86257688210328f300bc3268b99f14ed1a73)
This commit is contained in:
committed by
Roman Kiryanov
parent
a132abb4ca
commit
74a6adb8e0
@@ -434,7 +434,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user