KEMBAR78
MAUI Android 16 kb page support · Issue #10477 · dotnet/android · GitHub
Skip to content

MAUI Android 16 kb page support #10477

@tpitman

Description

@tpitman

Description

I am trying to upgrade my dotnet MAUI app to support Android 16 kb pages. I searched here and either couldn't come up with a good search list or there isn't any issue here already. Sorry if I missed one. Please point me to it if I did.

I installed the latest net9 dotnet for MAUI, installed / updated all workloads and when I use the readelf tool it still shows all .so files Flags: 0x0.

It is my understanding that is how you tell if the files have the correct 16kb page size.

So as part of diagnosing this issue I did a dotnet new and created a brand new maui application. I did the build and this one also shows the same Flags: 0x0 for all .so files included ones that should have been compiled from the source like libaot-Test16kb.dll.so.

So how do I fix this?

Steps to Reproduce

  1. Install latest release net9 sdk
  2. dotnet new maui Test16kb
  3. Add AndroidEnable16kbPageSize True to csproj
  4. Build app
  5. Inspect aab or apk contents for lib/*.so files and see they all have the Flags: 0x0 so they are not 16kb aligned

Link to public reproduction project repository

No response

Version with bug

9.0.110 SR11

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 15

Did you find any workaround?

No

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions