templates: rename the AVD from Pixel2 to MediumPhone#402
Merged
jpcottin merged 1 commit intoMay 16, 2026
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Renames the default AVD from
Pixel2toMediumPhoneand updates the device profile to a more modern phone-class form factor.Changes
emu/templates/avd/Pixel2.avd/→MediumPhone.avd/emu/templates/avd/Pixel2.ini→MediumPhone.inipath=line updatedMediumPhone.avd/config.iniAvdId/avd.ini.displaynameset toMediumPhone;disk.dataPartition.size512MB → 10G;hw.lcd.density440 → 420;hw.lcd.height1920 → 2400; width unchanged at 1080emu/containers/emulator_container.pywrite_templatecalls updated to the new template pathsemu/templates/launch-emulator.shAVD_CONFIGoverride path,-avdflag)Existing built / running containers are unaffected (the AVD config is consumed only at image-build time). New images built with
emu-docker createboot an AVD calledMediumPhonewith the new dimensions and disk size.git grep Pixel2is empty after this change.Test plan
git grep Pixel2returns no matches.python -m pytest tests/ --ignore=tests/e2e— all 35 tests pass.sys.boot_completed = 1). Verified inside the booted device:-avd MediumPhone✓wm size→Physical size: 1080x2400✓wm density→Physical density: 420✓df -h /data/user/0→10G total, 8.7G free✓