Skip to content

HCPP auto upgrade mechanism does not work for VD/TLHC due to expected return value #181000

Closed

Description

@gmackall

Currently we are attempting to launch HCPP as a universal upgrade, where when a manifest flag is set, all PVs are auto upgraded to HCPP.

Mechanically this is done by intercepting the create request in PlatformViewsChannel.java
https://github.com/flutter/flutter/blob/master/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/systemchannels/PlatformViewsChannel.java#L94
Inspecting the state of HCPP support, and returning HCPP if it is supported/enabled. However, this currently results in a NPE because the return is null.

This works with HC, but the other modes expect a texture id return, and then do stuff with that texture id. Returning null results in a NPE. Need to fix this.

Activity

  1. self-assigned this
    on Jan 14, 2026
  2. added
    platform-views: hcppIssues which affect the HCPP platform views backend
    P1High-priority issues at the top of the work list
    team-androidOwned by Android platform team
    triaged-androidTriaged by Android platform team
    on Jan 14, 2026
  3. jaredjhallen commented on Feb 9, 2026

    @jaredjhallen
  4. github-actions commented on Feb 26, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listplatform-androidAndroid applications specificallyplatform-views: hcppIssues which affect the HCPP platform views backendteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions