summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2018-04-03 15:32:32 +0100
committerDavid Brazdil <dbrazdil@google.com>2018-05-08 10:31:20 +0100
commit1fd97f29d646770c5e8ddee2e8fe468ffcc9ea2c (patch)
treebe2fbd393abfe438c1e734055f1d3d084755e6a6 /compiler/optimizing/graph_visualizer.cc
parent9a13d423c71517bc9cb3cf40e97dd0f6f5d5c72c (diff)
Log an event on hidden API accesses.
The new event consists of: - The type of access (reflection, JNI, etc.) - The action taken (warn or deny) - The type of member accessed (field or method) - Name of the class which defined the member accessed - The name of the member - The type signature of the member (type of field, or method signature) The fully qualified member name is also not included to avoid the overhead of building the string. It can be build from the information included. Similarly, the package name, version, etc. are not included as they can be inferred from the context when analyzing the event log. The event is sampled, according to a sampling rate that can be set by a configuration option, to reduce log spam. Test: $ m Test: $ adb shell settings put global hidden_api_access_log_sampling_rate 65536 Test: $ adb lolcat -b events | grep art_hidden_api_access Sample output: 16796 16796 I art_hidden_api_access: [1,0,Ldalvik/system/VMRuntime;,getRuntime,()Ldalvik/system/VMRuntime;] 16796 16796 I art_hidden_api_access: [1,2,Ldalvik/system/VMRuntime;,setHiddenApiExemptions,([Ljava/lang/String;)V] 16796 16796 I art_hidden_api_access: [1,3,Landroid/app/Activity;,mDoReportFullyDrawn,Z] (Timestamps have been elided) Bug: 64382372 Bug: 77517571 Merged-In: I012b2c9fbffbd00ed3219918e7a736a4f7435ec8 Change-Id: I012b2c9fbffbd00ed3219918e7a736a4f7435ec8 (cherry picked from commit 73ddda4403c8088a730b8d456de46bb8e0307ed8)
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions