diff options
author | David Brazdil <dbrazdil@google.com> | 2018-11-20 19:04:20 +0000 |
---|---|---|
committer | David Brazdil <dbrazdil@google.com> | 2018-11-21 18:27:42 +0000 |
commit | 4e6b16d0e9fa57d9150083e5743fc36bbd4c32bd (patch) | |
tree | f9852fd4e1608fc416785ba1900e9e984f34bf52 /NativeCode.bp | |
parent | a22340febaa676c9e848ca4f05d112a97be376d3 (diff) |
Support libSearchPath for InMemoryDexClassLoader
InMemoryDexClassLoader currently does not have a constructor which would
allow users to set the library search path and therefore the class loader
cannot be used to load code which depends on a native library outside of
the system library search path. This patch adds such a constructor.
It also annotates params of InMemoryDexClassLoader constructors with
@Nullable and @NonNull.
Test: InMemoryDexClassLoaderTest
Bug: 35458580
Change-Id: I8762f37a1c2cd01ba6c6dca84117c15838ae1971
Diffstat (limited to 'NativeCode.bp')
-rw-r--r-- | NativeCode.bp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/NativeCode.bp b/NativeCode.bp index 873b4957b9..cdb5615860 100644 --- a/NativeCode.bp +++ b/NativeCode.bp @@ -153,6 +153,7 @@ cc_library_shared { "luni/src/test/native/libcore_java_lang_ThreadTest.cpp", "luni/src/test/native/libcore_java_nio_BufferTest.cpp", "luni/src/test/native/libcore_libcore_util_NativeAllocationRegistryTest.cpp", + "luni/src/test/native/test_TestJni.cpp", ], target: { android: { |