Skip to content

templates: rename the AVD from Pixel2 to MediumPhone#402

Merged
jpcottin merged 1 commit into
google:masterfrom
jpcottin:fix/rename-pixel2-to-mediumphone
May 16, 2026
Merged

templates: rename the AVD from Pixel2 to MediumPhone#402
jpcottin merged 1 commit into
google:masterfrom
jpcottin:fix/rename-pixel2-to-mediumphone

Conversation

@jpcottin
Copy link
Copy Markdown
Collaborator

Renames the default AVD from Pixel2 to MediumPhone and updates the device profile to a more modern phone-class form factor.

Changes

file change
emu/templates/avd/Pixel2.avd/MediumPhone.avd/ rename (git mv)
emu/templates/avd/Pixel2.iniMediumPhone.ini rename (git mv) + path= line updated
MediumPhone.avd/config.ini AvdId / avd.ini.displayname set to MediumPhone; disk.dataPartition.size 512MB → 10G; hw.lcd.density 440 → 420; hw.lcd.height 1920 → 2400; width unchanged at 1080
emu/containers/emulator_container.py two write_template calls updated to the new template paths
emu/templates/launch-emulator.sh four references updated (lock cleanup, AVD ini bootstrap, AVD_CONFIG override path, -avd flag)

Existing built / running containers are unaffected (the AVD config is consumed only at image-build time). New images built with emu-docker create boot an AVD called MediumPhone with the new dimensions and disk size. git grep Pixel2 is empty after this change.

Test plan

  • git grep Pixel2 returns no matches.
  • python -m pytest tests/ --ignore=tests/e2e — all 35 tests pass.
  • End-to-end: rebuilt a fresh API 37 google_apis_playstore ps16k container against emulator dev 36.6.8 from this branch, started cleanly (sys.boot_completed = 1). Verified inside the booted device:
    • launch command: -avd MediumPhone
    • wm sizePhysical size: 1080x2400
    • wm densityPhysical density: 420
    • df -h /data/user/010G total, 8.7G free

Rename `emu/templates/avd/Pixel2.avd/` to `MediumPhone.avd/` and
`Pixel2.ini` to `MediumPhone.ini`, and update every reference in
`launch-emulator.sh`, `EmulatorContainer.write`, and the AVD's own
`path=` line to the new names. `AvdId` and `avd.ini.displayname` are
set to `MediumPhone`.

Tune the default device profile to a more modern phone form factor:

- Bump `disk.dataPartition.size` from 512MB to 10G (matches what most
  test/dev workflows actually need).
- Switch `hw.lcd.density` / `hw.lcd.height` to 420 / 2400 (Pixel 6-class
  dimensions); width stays at 1080.

Existing built / running containers are unaffected (the AVD config is
consumed only at image-build time). New images built with `emu-docker
create` boot an AVD called `MediumPhone` with the new dimensions and
disk size.
@jpcottin jpcottin merged commit 16d1048 into google:master May 16, 2026
2 checks passed
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.

1 participant