diff options
author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2016-07-26 09:06:37 +0100 |
---|---|---|
committer | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2016-08-01 10:30:50 +0100 |
commit | 895e37b768ced42a813e64e868314aca83fb53ad (patch) | |
tree | 6079beafa15b0a245ca4031529771d70487d7ccd /annotations/generate_annotated_java_files.py | |
parent | 814b9cdca18da6dfec058d21d1ecb3cf77bb94b4 (diff) |
Disable Runtime#load/loadLibrary(String,ClassLoader) in >N
Runtime#load/loadLibrary are private and deprecated methods.
Still, many apps use reflection to use them. If app is
targeting API level > 24, both methods will throw
a RuntimeException.
This is a second attempt, with a working tests.
Bug: 25859957
Change-Id: I9808831493f297f3551884ec8f1e6a079476a803
Test: libcore.java.lang.OldRuntimeTest
(cherry picked from commit 8e99fd200798d3d115745bacfb853209af3501cd and 6ee825e4decc602f3e6ca6e5b084382fc6f60bb5)
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions