Conversation
bridadan
force-pushed
the
select_vendor_boot_debug
branch
2 times, most recently
from
September 17, 2026 17:03
f31bb08 to
eb2e5a8
Compare
bridadan
marked this pull request as ready for review
September 18, 2026 13:57
vendor_boot.img can be replaced with vendor_boot-debug.img to enable
root on user builds. This is required for certain tests. This is already
possible when using the `cvd create
--vendor_boot_image=path/to/vendor_boot-debug.img` flag, however it isn't
possible to do this when using config files
(`cvd create --config_file config.json`).
This change adds a `use_vendor_boot_debug` field to the config files to
allow fetching (if necessar) and then using the `vendor_boot-debug.img`
for a build. It also works with local builds.
It is also now possible to specify `--use_vendor_boot_debug` when
calling `cvd create`. If this is set when `--vendor_boot_image` is also
set, `--use_vendor_boot_debug` is ignored.
Bug: 542722431
Test: Create a file named `config.json` with the follwing format:
{
"common": {
"host_package": "@ab/git_26Q4-release/cf_x86_64_auto-user"
},
"instances": [
{
"@import": "auto",
"disk": {
"default_build": "@ab/git_26Q4-release/cf_x86_64_auto-user"
},
"boot": {
"use_vendor_boot_debug": true
}
}
]
}
Then run: `cvd create --config_file config.json`
After the target boots, you should be able to run `adb root`.
bridadan
force-pushed
the
select_vendor_boot_debug
branch
from
September 18, 2026 18:47
eb2e5a8 to
312d8af
Compare
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.
vendor_boot.img can be replaced with vendor_boot-debug.img to enable
root on user builds. This is required for certain tests. This is already
possible when using the
cvd create --vendor_boot_image=path/to/vendor_boot-debug.imgflag, however it isn'tpossible to do this when using config files
(
cvd create --config_file config.json).This change adds a
use_vendor_boot_debugfield to the config files toallow fetching (if necessar) and then using the
vendor_boot-debug.imgfor a build. It also works with local builds.
It is also now possible to specify
--use_vendor_boot_debugwhencalling
cvd create. If this is set when--vendor_boot_imageis alsoset,
--use_vendor_boot_debugis ignored.Bug: 542722431
Test: Create a file named
config.jsonwith the follwing format: