diff options
author | David Brazdil <dbrazdil@google.com> | 2018-01-20 17:25:23 +0000 |
---|---|---|
committer | David Brazdil <dbrazdil@google.com> | 2018-01-25 10:40:56 +0000 |
commit | ee7d2fd16d47b54d7fb5b9d5ec772fbc315faf4b (patch) | |
tree | 844ed2998f78723aa7909ce0a7b19995c34f0bd9 /compiler/optimizing/graph_visualizer.cc | |
parent | 5a61bb7969347ffe8e0bf4f4dff841cc6c21ed85 (diff) |
Start warning on hidden API greylist
Insert checks into reflection, JNI and the verifier to print
a warning when greylisted methods are invoked and fields accessed.
We do this on actual access, because reflection allows to list
all methods/fields and simply listing a greylisted member would
print too many false positives.
Issuing a warning also sets a boolean flag in Runtime. This will
be made accessible through VMRuntime to the framework which will
issue a Toast on Activity start.
The change was tested with internal microbenchmarks of reflection
and those flagged one issue. Microbenchmark invoking a field getter
has regressed by 35%. We will profile this benchmark in detail and
consider options for improvement. Bug b/72482474 was created to track
progress.
Test: art/test.py -b -r -t 674-hiddenapi
Bug: 64382372
Bug: 72482474
Change-Id: I323244935e9091a2f8d012385cefaac6b1fe3777
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions