Android application type
Android for .NET (net6.0-android, etc.)
Affected platform version
.NET 6+
Description
Context: dotnet/linker#2853 (comment)
If you dotnet new android and then build with -c Release, you get an .apk with a couple extra native libraries:

In this case, we don't think the app actually needs libSystem.IO.Compression.Native.so or libSystem.Security.Cryptography.Android.Native.so.
We think it might be possible to use --output-pinvokes and completely drop certain .so files from projects.
Steps to Reproduce
dotnet new android
dotnet build -c Release
Did you find any workaround?
No response
Relevant log output
No response
Android application type
Android for .NET (net6.0-android, etc.)
Affected platform version
.NET 6+
Description
Context: dotnet/linker#2853 (comment)
If you
dotnet new androidand then build with-c Release, you get an.apkwith a couple extra native libraries:In this case, we don't think the app actually needs
libSystem.IO.Compression.Native.soorlibSystem.Security.Cryptography.Android.Native.so.We think it might be possible to use
--output-pinvokesand completely drop certain.sofiles from projects.Steps to Reproduce
dotnet new androiddotnet build -c ReleaseDid you find any workaround?
No response
Relevant log output
No response