summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorHai Zhang <zhanghai@google.com>2020-12-03 03:33:08 -0800
committerHai Zhang <zhanghai@google.com>2020-12-04 23:22:38 -0800
commit2bad176fc2b3f1ba57fbba530d4799298cf75102 (patch)
tree490d253e266a3fe85ebaf127a8c73aa972b99ebf /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta23b25cd1a99d2ae4bd4a229b8a9ce3715712bc0 (diff)
Move DefaultPermissionGrantPolicy out of PermissionManagerService.
DefaultPermissionGrantPolicy should be migrated to role in the future, however it requires exposing a lot of APIs, including set*PackagesProvider() and grantPermissionsTo*(), which would soon be deprecated once we finish migration to role. On the other hand, the benefits of making DefaultPermissionGrantPolicy updatable is negligible. So we should keep DefaultPermissionGrantPolicy in the platform. Since we are making permission updatable, and package is a different thing from permission, we are creating a new internal service call LegacyPermissionManagerService to host it. We need this new internal service instead of directly exposing DefaultPermissionGrantPolicy, because there are system APIs on the framework PermissionManager class that needs an AIDL interface, and a small amount of the AIDL methods there are not DefaultPermissionGrantPolicy but still should remain in platform. For now, the AIDL methods are delegated to LegacyPermissionManagerInternal via PermissionManagerService, but later we will create its own AIDL for LegacyPermissionManagerService and make the AIDL calls directly, without involving PermissionManagerService. So we are exposing a new LegacyPermissionManagerInternal on LocalServices, and replacing the usages of the previous PermissionManagerServiceInternal. LegacyPermissionManagerInternal is also made available in PackageManagerService to facilitate calling DefaultPermissionGrantPolicy grantDefaultPermissions(). The system browser permission granting is moved into the browser role's behavior, to avoid exposing it to RoleManagerService. Bug: 158736025 Test: presubmit Change-Id: Ic78f7775eaf0b1d7b5b940ccb03f7afc38437ef4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions