fix(android): size owned AVD data partitions - #97
Merged
Conversation
janicduplessis
force-pushed
the
codex/issue-83-data-partition
branch
from
August 29, 2026 10:53
c417119 to
ae27f6a
Compare
janicduplessis
force-pushed
the
codex/issue-83-data-partition
branch
from
August 29, 2026 10:59
ae27f6a to
f90a704
Compare
janicduplessis
marked this pull request as ready for review
August 29, 2026 11:01
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.
Description
Closes #83. Newly created owned Android AVDs use a measured 8 GiB userdata partition instead of the 10 GiB setting observed on the selected API 36 profile. The 8 GiB candidate retained about 6.24 GiB free after five real dev-client install/relaunch/Metro reload cycles plus a snapshot-disabled cold restart; the 6 GiB emulator floor worked but was deliberately not selected because repeated-install headroom matters.
This does not claim a large reduction in fresh sparse-file
duor a proven near-full-disk preflight improvement: measured initial host allocation was nearly identical between 8 GiB and 10 GiB, and no near-full-disk experiment was attempted. It establishes a lower logical userdata growth ceiling while retaining measured development headroom.Solution
android.dataPartitionSizeGb(integer GiB, default 8, range 6–16384).STIM_CLI_BAD_ARGbefore device mutation.disk.dataPartition.sizeafteravdmanager createand before first boot, using the canonical owned AVD content-directory resolver.A broader safe AVD settings surface is tracked separately in #96; unrestricted replacement config files are intentionally out of scope because they can redirect storage/image paths outside the owned device.
Test plan
pnpm run format:checkpnpm run lintpnpm run buildpnpm run typecheckpnpm run knippnpm test(2,291 tests)pnpm run test:e2e(12 tests)adb install -r+ relaunch + Metro reload cycles passed with about 6.61 GiB free.dureached 2,482,948 KiB.