Skip to content

Select vendor boot debug - #3189

Open
bridadan wants to merge 1 commit into
google:mainfrom
bridadan:select_vendor_boot_debug
Open

bridadan wants to merge 1 commit into
google:mainfrom
bridadan:select_vendor_boot_debug

Conversation

@bridadan

@bridadan bridadan commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

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": [
        {
          "https://github.com/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
bridadan force-pushed the select_vendor_boot_debug branch 2 times, most recently from f31bb08 to eb2e5a8 Compare September 17, 2026 17:03
@bridadan bridadan added the kokoro:run Run e2e tests. label Sep 17, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Sep 17, 2026
@bridadan
bridadan marked this pull request as ready for review September 18, 2026 13:57
@bridadan
bridadan requested a review from rmuthiah September 18, 2026 13:58
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
bridadan force-pushed the select_vendor_boot_debug branch from eb2e5a8 to 312d8af Compare September 18, 2026 18:47
@bridadan bridadan added the kokoro:run Run e2e tests. label Sep 21, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Sep 21, 2026
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.

2 participants