Skip to content

androidenv: generate metadata correctly for abi variants#543811

Open
RohanHart wants to merge 1 commit into
NixOS:masterfrom
RohanHart:androidenv/split-16kb-packages
Open

androidenv: generate metadata correctly for abi variants#543811
RohanHart wants to merge 1 commit into
NixOS:masterfrom
RohanHart:androidenv/split-16kb-packages

Conversation

@RohanHart

Copy link
Copy Markdown
Contributor

Because a single abi such as x86_64 can have multiple variants which are not distinguished by checking only the first tag. Due to package ordering in the source metadata that prevented using non-16kb memory page images for at least Android API 36.1.

Also sorts the tags alphanumericly to avoid cases where Google are not consistent.

This does result in additional systemImageTypes such as google_apis_playstore-page_size_16kb however I don't see where these are documented outside the repo.json.

For some reason when creating or editing a virtual device the system image shows as the "Pre-Release 16KB Page Size" for 36.1 even though it is displayed correctly in the SDK Manager and can be confirmed as a 4kb by running

adb shell getconf PAGE_SIZE

repo.json has been regenerated based on 6ff5d4adb863 as that was the last commit before the tagging changes appear to have been an issue.

Things done

Because a single abi such as x86_64 can have multiple variants which are not distinguished by checking only the first
tag. Due to package ordering in the source metadata that prevented using non-16kb memory page images for at least
Android API 36.1.

Also sorts the tags alphanumericly to avoid cases where Google are not consistent.
@nixpkgs-ci
nixpkgs-ci Bot requested a review from a team July 20, 2026 11:00
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. labels Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant