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

[Android] CoreCLR uses APIs available only since Android API28 #110470

Closed
grendello opened this issue Dec 6, 2024 · 4 comments
Closed

[Android] CoreCLR uses APIs available only since Android API28 #110470

grendello opened this issue Dec 6, 2024 · 4 comments

Comments

@grendello
Copy link
Contributor

CoreCLR currently defines the minimum Android API level to be 21, since this is also the base level used by .NET for Android. While trying to build CoreCLR to target Android proper (and not linux-bionic), I ran into the issue of CoreCLR PAL sources using glob(3) which is available on Android only starting with API28.

The simple fix is to bump the minimum API requirement to 28, however this may limit the reach of CoreCLR on Android devices. If we don't want to do that, the glob(3) functionality would have to be implemented in-tree (or imported from another libc, for instance from musl or picolibc).

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Dec 6, 2024
@jkotas
Copy link
Member

jkotas commented Dec 7, 2024

This is used for emulation of FindFirstFile/FindNextFile Windows API. We should look into deleting this emulator.

Copy link
Contributor

Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

@janvorli
Copy link
Member

It looks like the only use of the FindFirstFile / FindNextFile is in superpmi, so it should be easy to get rid of.

@janvorli
Copy link
Member

I have removed the glob usage in #110797

@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Dec 18, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants