summaryrefslogtreecommitdiff
path: root/test/008-exceptions/src/MultiDexBadInit.java
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 17:58:50 +0100
commit586fd2cd2df275be642168cf790e84694ab73e43 (patch)
tree162eebdab62751a6b257831a4c9f35565537164b /test/008-exceptions/src/MultiDexBadInit.java
parent0b4a16e46526c743775f9edaea0ddaf30c92b3da (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 Merged-In: I2bf0ca7dcb45c17fe91eb2d421c947b892bd6fec Change-Id: I2bf0ca7dcb45c17fe91eb2d421c947b892bd6fec (cherry picked from commit 59a49a6fe102b26aacda906b6a2c466d84819c73)
Diffstat (limited to 'test/008-exceptions/src/MultiDexBadInit.java')
0 files changed, 0 insertions, 0 deletions