Enable in-process permission caches for system_server
Bug: 170472470 Do not disable the permission caches inside the system server. This is beneficial because permission checks require many binder calls, and the cache, even though it is in-process, eliminates those calls. 1. Make the PermissionManager cache more effective by increasing the maximum size to 2048. Experiments show that the high-water mark is about 600. 2. Suppress cache content in the 'dumpsys cacheinfo' output. dumpsys fails if the output is too large in a single process, and the new caches push the system server cacheinfo over the limit. The content can be added to the output by setting the new DETAILED boolean in PropertyInvalidatedCache to true, but this flag should never be committed with a value of true. Test: two atest runs * atest FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest#testGetPermissionGrantState * atest FrameworksServicesTests:NetworkPolicyManagerServiceTest Change-Id: I7d3c1f34b44216bb510319ca5b6aced1cc53e05d
Loading
Please register or sign in to comment