[naot][Android] Add test infra support for bundling native dependencies in apk
- Dominant language
- C#
- Stars
- 18.3k
- Forks
- 5.6k
- PR merge metrics
- PR metrics pending
Description
PInvoke smoke test fails on native AOT android with:
```
10-30 11:09:43.727 9055 9069 I DOTNET : Testing marshalling blittable types
10-30 11:09:43.729 9055 9069 E DOTNET : Unhandled exception.
10-30 11:09:43.729 9055 9069 E DOTNET : System.DllNotFoundException: Unable to load shared library 'PInvokeNative' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
10-30 11:09:43.729 9055 9069 E DOTNET : dlopen failed: library "/data/user/0/net.dot.PInvoke/files/PInvokeNative.so" not found
10-30 11:09:43.729 9055 9069 E DOTNET : dlopen failed: library "PInvokeNative.so" not found
10-30 11:09:43.729 9055 9069 E DOTNET : dlopen failed: library "/data/user/0/net.dot.PInvoke/files/libPInvokeNative.so" not found
10-30 11:09:43.729 9055 9069 E DOTNET : dlopen failed: library "libPInvokeNative.so" not found
10-30 11:09:43.729 9055 9069 E DOTNET : dlopen failed: library "/data/user/0/net.dot.PInvoke/files/PInvokeNative" not found
10-30 11:09:43.729 9055 9069 E DOTNET : dlopen failed: library "PInvokeNative" not found
10-30 11:09:43.729 9055 9069 E DOTNET : dlopen failed: library "/data/user/0/net.dot.PInvoke/files/libPInvokeNative" not found
10-30 11:09:43.729 9055 9069 E DOTNET : dlopen failed: library "libPInvokeNative" not found
10-30 11:09:43.729 9055 9069 E DOTNET :
10-30 11:09:43.729 9055 9069 E DOTNET : at System.Runtime.InteropServices.NativeLibrary.LoadLibErrorTracker.Throw(String) + 0x46
10-30 11:09:43.729 9055 9069 E DOTNET : at Internal.Runtime.CompilerHelpers.InteropHelpers.FixupModuleCell(InteropHelpers.ModuleFixupCell*) + 0x147
10-30 11:09:43.729 9055 9069 E DOTNET : at
10-30 11:09:43.729 9055 9069 E DOTNET :
```
Contributor guide
Assessment
This issue has not been assessed yet.