Skip to content

Add support for 16 KB page sizes for libraries to support Maui -> Android 15+ builds #153

@MartBentNedap

Description

@MartBentNedap

Description

All underlying libraries which are used by FluentModbus should support 16 KB page sizes. This is to accommodate the Android 16 update.

Here is the warning output when a Maui app is compiled with a library that does not support 16 KB page sizes. In this case this is IO Ports, which is used in the FluentModbus library.

/usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/35.0.101/tools/Xamarin.Android.Common.targets(2132,3): warning XA0141: Android 16 will require 16 KB page sizes, shared library 'libSystem.IO.Ports.Native.so' does not have a 16 KB page size. Please inform the authors of the NuGet package 'runtime.linux-arm64.runtime.native.System.IO.Ports' version '5.0.0-rtm.20519.4' which contains 'runtimes/linux-arm64/native/libSystem.IO.Ports.Native.so'. See https://developer.android.com/guide/practices/page-sizes for more details.

Google has already issued a warning in their console indicating that apps that do not support this will no longer by able to upload apps to the Google Play Store. While we can temporarily drop support, we do need to add the support back in the near future.

References

More info about the page sizes can be found here:

https://developer.android.com/guide/practices/page-sizes
https://android-developers.googleblog.com/2025/05/prepare-play-apps-for-devices-with-16kb-page-size.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions