summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2018-05-09 10:58:27 +0100
committerDavid Brazdil <dbrazdil@google.com>2018-05-10 12:38:11 +0100
commit59a49a6fe102b26aacda906b6a2c466d84819c73 (patch)
treef33b21de298b1943ae3483ba877cdbf50313e049 /compiler/optimizing/graph_visualizer.cc
parent48af3b39cd7c8abaa7f9671191ec8260630239b2 (diff)
Implement VMDebug API to mark a class "platform"
Add a native implementation of VMDebug.allowHiddenApiReflectionFrom which takes a Class object and sets a new access flag kAccSkipAccessChecks on the corresponding mirror::Class instance. The function will throw a SecurityException if the process has not been forked as Java debuggable. hiddenapi::IsCallerInPlatformDex is extended to take an optional argument of the mirror::Class of the caller. If it is set and the class has kAccSkipAccessChecks, the caller is allowed to acccess non-SDK APIs. Note that the mirror::Class of the caller is only provided for reflection and JNI. The access flag is ignored for other means of access. Bug: 64382372 Test: N/A Change-Id: I2bf0ca7dcb45c17fe91eb2d421c947b892bd6fec
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions