Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 16kb page size on Android 15 #3672

Closed
tranb3r opened this issue Oct 10, 2024 · 5 comments · Fixed by #3723 or #3527
Closed

Support 16kb page size on Android 15 #3672

tranb3r opened this issue Oct 10, 2024 · 5 comments · Fixed by #3723 or #3527

Comments

@tranb3r
Copy link

tranb3r commented Oct 10, 2024

Problem Statement

When building a dotnet android app for Android 15, referencing Sentry.Maui 4.12.1, I get the following warning message:

C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\35.0.0-rc.2.152\tools\Xamarin.Android.Common.targets(2113,3): warning XA0141: NuGet package '<unknown>' version '<unknown>' contains a shared library 'libsentry-android.so' which is not correctly aligned. See https://developer.android.com/guide/practices/page-sizes for more details [D:\Dev\Zitch\ouibank\OuiBank.Maui\O
uiBank.Maui.csproj::TargetFramework=net9.0-android35.0]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\35.0.0-rc.2.152\tools\Xamarin.Android.Common.targets(2113,3): warning XA0141: NuGet package '<unknown>' version '<unknown>' contains a shared library 'libsentry.so' which is not correctly aligned. See https://developer.android.com/guide/practices/page-sizes for more details [D:\Dev\Zitch\ouibank\OuiBank.Maui\OuiBank.M
aui.csproj::TargetFramework=net9.0-android35.0]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\35.0.0-rc.2.152\tools\Xamarin.Android.Common.targets(2113,3): warning XA0141: NuGet package '<unknown>' version '<unknown>' contains a shared library 'libsentrysupplemental.so' which is not correctly aligned. See https://developer.android.com/guide/practices/page-sizes for more details [D:\Dev\Zitch\ouibank\OuiBank.Ma
ui\OuiBank.Maui.csproj::TargetFramework=net9.0-android35.0]

Solution Brainstorm

From https://developer.android.com/about/versions/15/behavior-changes-all#16-kb

Beginning with Android 15, Android supports devices that are configured to use a page size of 16 KB (16 KB devices). If your app uses any NDK libraries, either directly or indirectly through an SDK, then you will need to rebuild your app for it to work on these 16 KB devices.

Libraries in sentry.bindings.android should be updated.
Thanks.

@jamescrosswell
Copy link
Collaborator

Awesome, thanks for reporting @tranb3r !

@bitsandfoxes
Copy link
Contributor

bitsandfoxes commented Oct 11, 2024

We're depending on getsentry/sentry-java#3657 to update the underlying Android SDK & NDK integration.

@HavenDV
Copy link

HavenDV commented Nov 17, 2024

Any progress on this? It seems to be no longer blocked and with the release of .net 9 it is important as it is now the default Android 35

@jamescrosswell
Copy link
Collaborator

Any progress on this? It seems to be no longer blocked and with the release of .net 9 it is important as it is now the default Android 35

@HavenDV I think we must have dealt with this in a duplicate issue. This was addressed in the underlying native SDK in:

And in the .NET SDK (that wraps that native SDK) in:

The fix in the .NET SDK is on the version-5.0.0 branch, which is the one we're preparing that includes .NET 9.0 support. We should be able to make a public alpha release of that in the week or two.

@jamescrosswell
Copy link
Collaborator

Duplicate of #3633

@jamescrosswell jamescrosswell marked this as a duplicate of #3633 Nov 17, 2024
@github-project-automation github-project-automation bot moved this to Done in GDX Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Archived in project
4 participants