diff options
author | Andrei Onea <andreionea@google.com> | 2021-05-19 16:22:46 +0100 |
---|---|---|
committer | TreeHugger Robot <treehugger-gerrit@google.com> | 2021-06-25 22:45:42 +0000 |
commit | c9067b42d7e67f13f7749ceeb0d27cae1bea1689 (patch) | |
tree | d7a0769f1b44fd7af18655d101d123f816cd90e9 /libnativebridge/tests/CodeCacheCreate_test.cpp | |
parent | 885c8945cc9845c275f4b674c00efd4afaf90869 (diff) |
Add flag for clamping hidden api list
Allow clamping the hidden api list to a max value; if an API is
restricted for a newer SDK, transform it into a regular unsupported API.
This change is laying out the groundwork to ensure that older platforms
do not receive dex code updated that has unknown hidden api flags - e.g.
if the hidden api encode step uses '--max-hiddenapi-level=max-target-q',
then the resulting dex code will not exhibit undefined behavior with respect to
hidden api access when running on R devices, and any newer 'max-target-r' APIs
will be marked as 'unsupported'.
Test: mma test-art-host-gtest-art_hiddenapi_tests
Bug: 172453495
Merged-In: I710c440c8429081096d8a417f164c0e01c97ecd9
Change-Id: I710c440c8429081096d8a417f164c0e01c97ecd9
(cherry picked from commit a6b3b297bdd70ad3e915a48b02a7c7cf5f204e05)
Diffstat (limited to 'libnativebridge/tests/CodeCacheCreate_test.cpp')
0 files changed, 0 insertions, 0 deletions