Skip to content

[CP-beta]Fix --enable-hcpp flag being ignored in release#185717

Merged
auto-submit[bot] merged 1 commit into
flutter:flutter-3.44-candidate.0from
flutteractionsbot:cp-beta-f4867205f86537800282bbb25ee2f2314988a744
Apr 29, 2026
Merged

[CP-beta]Fix --enable-hcpp flag being ignored in release#185717
auto-submit[bot] merged 1 commit into
flutter:flutter-3.44-candidate.0from
flutteractionsbot:cp-beta-f4867205f86537800282bbb25ee2f2314988a744

Conversation

@flutteractionsbot

@flutteractionsbot flutteractionsbot commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

This pull request is created by automatic cherry pick workflow
Please fill in the form below, and a flutter domain expert will evaluate this cherry pick request.

Issue Link:

What is the link to the issue this cherry-pick is addressing?

I didn't file an issue, but the problem is that the --enable-hcpp flag was not respected in release mode. This change aligns this flag with the pattern used by some other existing flags, such as --enable-impeller.

Impact Description:

Users of the tool will think they are opting in to the HCPP platform view mode, but they will not be (in release mode)

< Replace with impact description here >

Changelog Description:

Explain this cherry pick:

  • In one line that is accessible to most Flutter developers.
  • That describes the state prior to the fix.
  • That includes which platforms are impacted.
    See best practices for examples.

Fixes --enable-hcpp tool flag being ignored in release mode.

< Replace with changelog description here >
[flutter/185692] Respects --enable-hcpp argument for flutter run on android in release mode.

Workaround:

Is there a workaround for this issue?

They can use the manifest value instead, but it doesn't replicate the convenience.

Risk:

What is the risk level of this cherry-pick?

  • Low
  • Medium
  • High

Test Coverage:

Are you confident that your fix is well-tested by automated tests?

  • Yes
  • No

Validation Steps:

What are the steps to validate that this fix works?

Run an app with a platform view in it on android on a device on api 34+ w/ vulkan, and inspect the logcat for logs indicating HCPP is in use.

The flag needed to be moved outside of the 
```dart
if (debuggingOptions.debuggingEnabled) {
...
}
```
block, as impeller is
@flutteractionsbot flutteractionsbot added the cp: review Cherry-picks in the review queue label Apr 29, 2026
@flutteractionsbot

Copy link
Copy Markdown
Contributor Author

@gmackall please fill out the PR description above, afterwards the release team will review this request.

@flutteractionsbot flutteractionsbot requested a review from a team as a code owner April 29, 2026 02:06
@flutteractionsbot flutteractionsbot requested review from reidbaker and removed request for a team April 29, 2026 02:06
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Apr 29, 2026
@flutter-dashboard

Copy link
Copy Markdown

This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter.

Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed.

@github-actions github-actions Bot added tool Affects the "flutter" command-line tool. See also t: labels. team-android Owned by Android platform team labels Apr 29, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies the Android device implementation to forward the HCPP and surface control flag regardless of whether debugging is enabled. It includes updates to existing tests and a new test case to verify that Impeller and HCPP flags are correctly passed during application startup in release mode. I have no feedback to provide.

@camsim99 camsim99 added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 29, 2026
@auto-submit auto-submit Bot merged commit b9d0496 into flutter:flutter-3.44-candidate.0 Apr 29, 2026
154 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD cp: review Cherry-picks in the review queue team-android Owned by Android platform team tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants