summaryrefslogtreecommitdiff
path: root/core/java/android/permission/LegacyPermissionManager.java
Commit message (Collapse)AuthorAgeFilesLines
* Grant Notifications to Carrier Provisioning AppNate Myren2022-04-271-0/+17
| | | | | | | | | When the set of carrier privileged apps changes on the device, grant the Carrier Provisioning app POST_NOTIFICATIONS Fixes: 226201376 Test: atest DefaultPermissionGrantPolicyTest Change-Id: I5ff732823404bd48eed076c32485331cf6efd797
* Refactor Telephony phone number access checks to LegacyPermissionMgrMichael Groover2021-04-201-0/+30
| | | | | | | | | | | | | | | | | | | The TelephonyPermissions phone number access check can require several interactions with the system_server to obtain the targetSdkVersion and check the required permissions / appops for the requesting package. This commit refactors all of these checks into the LegacyPermissionManager (similar to what was previously done for the device identifier access checks), requiring only a single request to the system_server to check all non-subscriber access requirements. Fixes: 159662444 Test: atest TelephonyPermissionsTest Test: atest LegacyPermissionManagerServiceTest Test: atest SmsManagerTest Test: atest PhoneNumberTest Test: atest SubscriptionControllerTest Test: atest TelephonyManagerTest Change-Id: I6c5cdbeecc2c4a2e200dcc33eedcb9213376f1ad
* Move a subset of PermissionManager APIs into LegacyPermissionManager.Hai Zhang2020-12-101-0/+217
And move their implementation from PermissionManagerService to LegacyPermissionService. The DefaultPermissionGrantPolicy related methods are not APIs, and are thus moved to LegacyPermissionManager and their usages are updated to use LegacyPermissionManager. The checkDeviceIdentifierAccess() method is also moved into LegacyPermissionManager, because it's merely an application of permission checking, not the permission management infra itself, and there isn't great benefit in updating it. However since it is an API, we still have to keep a delegate for it on PermissionManager, and make the delegated method @SystemApi. Bug: 158736025 Test: presubmit Test: LegacyPermissionManagerServiceTest Change-Id: Ic838f3685427217c8e0477551c3373258408983f