Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3a000be authored by Akhil Gangu's avatar Akhil Gangu
Browse files

Add parsing support for new purpose declaration manifest elements.

This is an attempt to reland commit 089a8a61 after it has been reverted due to perf regressions (boot-time). The hypothesis is that the regression was caused due to the population of new usesPermissionMapping that has been added in AndroidPackage. Considering there could be a lot of uses-permission use cases, this population of the map might have increased the latency. This CL flag guards adding entries into the map so the change can be relanded without any impact. The regression is expected to show up again when progressing the flag, but is reasonable to seek an override considering the parsed results are cached for subsequent boots.

Bug: 417787288
Bug: 420985780
Test: atest PermissionInfoTest AndroidPackageTest ParsedPermissionTest ParsedUsesPermissionTest
Test: atest PurposeDeclarationPermissionsTest
Flag: android.permission.flags.purpose_declaration_enabled
Change-Id: Ibbef57b8eb3a3ba1281656b6a1f6a73ca3137c18
parent 824e843a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment