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

Open
tranb3r opened this issue Oct 10, 2024 · 2 comments
Open

Support 16kb page size on Android 15 #3672

tranb3r opened this issue Oct 10, 2024 · 2 comments

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: No status
Development

No branches or pull requests

3 participants