commit | e7681823f8259c8c04ce0c361746216606784e69 | [log] [tgz] |
---|---|---|
author | David Brazdil <dbrazdil@google.com> | Fri Dec 14 16:25:33 2018 +0000 |
committer | David Brazdil <dbrazdil@google.com> | Mon Jan 21 10:22:27 2019 +0000 |
tree | 8bd248fc6be126d7d4e55bb4072ed24b2851ebbd | |
parent | 90faceb71e25748172ba6369209f8a2a66735394 [diff] |
hiddenapi: Print warnings for @CorePlatformApi violations When accessing a method/field at runtime, determine the context of both the caller and the callee, and add new logic for the case "platform -> core-platform" which used to be always allowed. If the callee is marked with kAccCorePlatformApi, access is allowed. If not, a warning is printed into logcat. Bug: 119068555 Test: 674-hiddenapi Change-Id: I64839596bf6eb06d7a169fd59b18fd82c140ce6e