Remove IPermissionManager usage inside PackageManagerService.
Because we are moving permission into mainline and AIDL can't be an API. Most usages are replaced with calling through PermissionManager instead. For checkPermission() and checkUidPermission(), they are not intended to be exposed as cross-process APIs because people should use Context.check*Permission() instead. So they are made in-process APIs. resetRuntimePermissions() is moved to IPackageManager because it is only used by PackageManagerShellCommand and is implemented by calling resetRuntimePermissions() in a loop. Bug: 158736025 Test: presubmit Change-Id: I8285abddbfb3c4011a8acbc2e2ebfc30715c6f9a
Loading
Please register or sign in to comment