Skip to content

When cvd_internal_start is not invoked by cvd, forward to cvd#2733

Open
Databean wants to merge 1 commit into
google:mainfrom
Databean:start_to_cvd
Open

When cvd_internal_start is not invoked by cvd, forward to cvd#2733
Databean wants to merge 1 commit into
google:mainfrom
Databean:start_to_cvd

Conversation

@Databean

Copy link
Copy Markdown
Member

We plan to make the implementation of cvd_internal_start aka launch_cvd in the Android source tree invoke cvd. There is a problem with this: after the first invocation of cvd, it will run executable substitution in the build directory and replace the forwarding cvd_internal_start with the implementation in this repository.

That means if we want the forward functionality to persist past one invocation, we need the cvd_internal_start implementation here to be forwarding as well. The forwarding is only applied when the invoking executable is not a cvd executable.

This relies on the new flags --reuse and --daemon=false to be supported, which are in other outstanding PRs. Users calling launch_cvd will expect to see the behavior from these flags.

Bug: b/519304405

We plan to make the implementation of `cvd_internal_start` aka
`launch_cvd` in the Android source tree invoke `cvd`. There is a problem
with this: after the first invocation of `cvd`, it will run executable
substitution in the build directory and replace the forwarding
`cvd_internal_start` with the implementation in this repository.

That means if we want the forward functionality to persist past one
invocation, we need the `cvd_internal_start` implementation here to be
forwarding as well. The forwarding is only applied when the invoking
executable is not a `cvd` executable.

This relies on the new flags `--reuse` and `--daemon=false` to be
supported, which are in other outstanding PRs. Users calling
`launch_cvd` will expect to see the behavior from these flags.

Bug: b/519304405
@Databean Databean changed the title When cvd_internal_start is invoked directly, invoke cvd When cvd_internal_start is not invoked by cvd, forward to cvd Jun 19, 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