hiddenapi: Support 'core-platform-api' flag
Add support for parsing @CorePlatformApi stubs and encoding it in hiddenapi dex flags of the corresponding fields/methods. (1) The CL refactors hiddenapi::ApiList class to store a second value: a bit vector of "domain API" flags. These are intended for encoding membership in a set of API stubs only available to certain callers, e.g. @CorePlatformApi when platform code calls core platform or @TestApi for CTS tests. (2) Parse @CorePlatformApi stubs and set domain flags for its members. (3) Parse the flags at runtime and set kAccCorePlatformApi access flag on the corresponding ArtField/ArtMethod objects. Bug: 119068555 Test: m appcompat Test: dexlayout -b <core-oj jar> | grep 'CORE-PLATFORM-API' Change-Id: Idbfa6d3af7459258a5a0b6da7c03c037a577eb75
Loading
Please sign in to comment