History log of /art/libdexfile/dex/modifiers.h
Revision Date Author Comments
586fd2cd2df275be642168cf790e84694ab73e43 09-May-2018 David Brazdil <dbrazdil@google.com> 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)
334b9d73482fba9c335d9b758041fc0865ef74d4 13-Feb-2018 David Sehr <sehr@google.com> Move libdexfile out of runtime

Move the files out of runtime, leaving unfortunate dependences still
there on runtime/base (for the moment). Also separates the build logic
into two Android.bp files.

Bug: 22322814
Test: make -j 50 test-art-host
Change-Id: Ib0a1cda833b29ecfa4c8c50f23fab89ba666f491