commit | 2a91ac6d2b2743185ac26e0bb7ea9accbddee1e7 | [log] [tgz] |
---|---|---|
author | Philip P. Moltmann <moltmann@google.com> | Mon Aug 19 09:44:48 2019 -0700 |
committer | Philip P. Moltmann <moltmann@google.com> | Mon Aug 19 16:48:38 2019 +0000 |
tree | 31f6ffecbbf070e8ed2260309d551745cbc74a5e | |
parent | 5df9e13cd1b2a3ae8976a0d525d64b4dcb863d86 [diff] |
Cache PermissionInfos in whitelistAllSystemAppPermissions PermissionInfo-s are not per package. Hence instead of resolving them over and over again, cache already resolved PermissionInfo and reuse them. Before whitelistAllSystemAppPermissions took between 600 and 1100 ms on a crosshatch-eng. Now it takes between 200-350 ms. Test: Booted a few time and measured how long this method took Bug: 139485700 Fixes: 136682954 Change-Id: I83221f9fb2ed00b67957a633d26906f4d8aeb26e