diff options
author | 2024-03-27 11:55:07 +0100 | |
---|---|---|
committer | 2024-04-05 13:26:56 +0000 | |
commit | 5fe81fd246fe073c5d903a4cb50182fb7132a939 (patch) | |
tree | 9aafbad282304a2edfe6886166d82d2f79586214 /libnativeloader/native_loader.cpp | |
parent | 4e6db6efb36ab9cb9a5990346e77d7976e1b3c66 (diff) |
Add getTrampolineForFunctionPointer method to native bridge
Add a function to native bridge that generates trampolines
for guest pointers and call it for native-bridged namespaces.
Bug: http://b/330367443
Test: art/libnativebridge/tests/runtests.sh --skip-target
Test: ./android-cts/tools/cts-tradefed run cts -m CtsJniTestCases
Change-Id: I02cab5ea6c87cb4d5065033a4b6793eb57fe0f52
Diffstat (limited to 'libnativeloader/native_loader.cpp')
-rw-r--r-- | libnativeloader/native_loader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libnativeloader/native_loader.cpp b/libnativeloader/native_loader.cpp index 5b4988ae48..ea06b2041f 100644 --- a/libnativeloader/native_loader.cpp +++ b/libnativeloader/native_loader.cpp @@ -527,6 +527,8 @@ void* OpenNativeLibraryInNamespace(NativeLoaderNamespace* ns, const char* path, return handle.ok() ? *handle : nullptr; } +bool IsNamespaceNativeBridged(const struct NativeLoaderNamespace* ns) { return ns->IsBridged(); } + // native_bridge_namespaces are not supported for callers of this function. // This function will return nullptr in the case when application is running // on native bridge. |