Skip to content

feat(android): a devices.xml profile's API range, Play Store and screen size decide its images - #530

Merged
V3RON merged 9 commits into
task/489from
task/490
Oct 13, 2026
Merged

V3RON merged 9 commits into
task/489from
task/490

Conversation

@V3RON

@V3RON V3RON commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Closes #490

Status

Implement: done (368/368 green) Review: round 2 passed Hardware: n/a (slow lane allowed for every PR of the #485 run) Gate: waiting for the stack

Done when

  • With a custom devices.xml profile whose api-level is 31-, and images at 30 and 31, simlock catalog --platform android --json pairs it only with 31. Checked by the index.test.ts catalog test for an api-level range.
  • docs/CLI.md ("Where Android models come from") says a custom profile's API range, Play Store setting and screen size from Android Studio decide which images it gets. Checked by the claims review.

Assumptions

  • Assumption: existing parse tests that toEqual a whole profile — they now include the four new fields, with their defaults (playStore: true, tablet: false, apiRange/imageKind unset) because the spec adds the fields to every profile.
  • Assumption: the An Android lease only uses a system image that fits its model #489 test "pairs a devices.xml profile avdmanager did not list with every installed level" now expects phone images only (35, 36, not the TV image 34) — the spec says a devices.xml-only profile with no tag-id fits by its own kind, a phone.
  • Assumption: the properties profile's new fields are optional in the type — tests build such profiles without them, and a missing field means the old behaviour.
  • Assumption: the "config.ini for a devices.xml profile holds the same keys as before this PR" test keeps its tag-id android-tv profile and its harness installs an android-tv image the profile fits — the profile cannot fit the harness's default image, and changing the profile would change what the test claims.
  • Assumption: the An Android lease only uses a system image that fits its model #489 image-fit test "a devices.xml profile avdmanager did not list fits every image" now expects phone images only — same reason as the index.test.ts change above: the spec says a tag-less devices.xml-only profile fits by its own kind, a phone.

Review

Spec review: 2 blocking, 2 fixed, 0 notes. Code review: 4 blocking, 4 fixed, 0 notes. Claims review: 5 blocking, 5 fixed, 2 notes.
Rounds: 2. Tokens: 8.3M.

Written by an agent.

V3RON added 9 commits October 13, 2026 21:37
…it (#490)

parseDevicesXml reads tag-id, api-level, playstore-enabled, the diagonal and the
fold; the registry merges them into a custom builtin profile; devices.xml is
found like avdmanager finds it. 25 failing -> 1 failing (the config.ini keys
test cannot pass: its profile has tag-id android-tv but the harness has no TV image).

Existing tests updated for the spec: properties profiles carry the four new
fields, and a devices.xml-only profile with no tag-id pairs with phone images only.
…e goes through matchProfile, docs say what the fit reads (#490)
@V3RON

V3RON commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

Review notes

Not blocking, not verified. Each is one reviewer's claim.

  • claims: src/drivers/android/device-profile-source.ts:346 doc names ~/.android/devices.xml as the file read; the path now follows ANDROID_USER_HOME, ANDROID_PREFS_ROOT and ANDROID_SDK_HOME first
  • claims: src/drivers/android/device-profile-source.ts:152 the resolve doc says a model matching an SDK profile never opens devices.xml, then says a custom built-in match does; "SDK profile" is ambiguous for avdmanager-listed custom profiles

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review October 13, 2026 19:57
@V3RON
V3RON added this pull request to stack #525 October 13, 2026 19:57
@V3RON
V3RON merged commit 4a7fcdf into main Oct 13, 2026
42 checks passed
@V3RON
V3RON deleted the task/490 branch October 13, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A devices.xml profile's device type, API range, Play Store and screen size decide its class and images

1 participant