Skip to content

Android 16 emulators do not display platform views across many modes (API 36) #170024

Description

@jesswrd

When updating test target linux_android_emu to depend on an AVD that supports Android 16, all test targets on CI pass except for android_engine_vulkan_tests. The failing tests suggest this could be an issue with virtual display TLHC, which could be no longer working on Android 16 (possibly due to an Android change). PR with Android 16 AVD here and error logs here.

One such failing test is driver test surface_texture_smiley_face_main.dart.

Steps to Reproduce:

  1. Update avd_cipd_version and android_virtual_device in the .ci.yaml to these 36 values here
  2. Create then run a API 36 emulator. I used a Pixel 9 API 36 emulator. Directions here
  3. Run flutter run lib/external_texture/surface_texture_smiley_face_main.dart from flutter/dev/integration_tests/android_engine_test

Expected Behavior
A smiley face exists behind a dialog box

Actual Behavior
A black screen is behind a dialog box

Activity

  1. jonahwilliams commented on Jun 6, 2025

    @jonahwilliams
    Contributor

    surface_texture_smiley_face_main is not using virtual display, its using texture composition

  2. added
    platform-androidAndroid applications specifically
    platform-views: tlhcIssues specific to the Android Texture Layer Hybrid Composition platform views backend
    P1High-priority issues at the top of the work list
    on Jun 6, 2025
  3. reidbaker commented on Jun 6, 2025

    @reidbaker
    Member

    My pixel 8a running android 36 shows the following image from

    cd dev/integration_tests/android_engine_test
    flutter run lib/external_texture/surface_texture_smiley_face_main.dart
    
    Image
  4. reidbaker commented on Jun 6, 2025

    @reidbaker
    Member

    My pixel 8a running android 36 shows the following image from

    cd dev/integration_tests/android_engine_test
    flutter run lib/external_texture/surface_producer_smiley_face_main.dart
    
    Image
  5. reidbaker commented on Jun 6, 2025

    @reidbaker
    Member

    Testing on an emulator running android api 36 shows a black screen for 09405e8

    • flutter run lib/external_texture/surface_producer_smiley_face_main.dart
    • flutter run lib/external_texture/surface_producer_smiley_face_main.dart
    • flutter run lib/platform_view/texture_layer_hybrid_composition_platform_view_main.dart
    • flutter run lib/platform_view_tap_color_change_main.dart
    • flutter run lib/platform_view/hybrid_composition_platform_view_main.dart
    • flutter run lib/platform_view/virtual_display_platform_view_main.dart
    • flutter run lib/hcpp/platform_view_main.dart
    • flutter run lib/hcpp/platform_view_overlapping_main.dart
    • flutter run lib/hcpp/platform_view_overlapping_main.dart

    Testing these on an emulator crashes the emulator.

    • flutter run lib/hcpp/platform_view_main.dart

    The following apps ran successfully.
    flutter run lib/flutter_rendered_blue_rectangle_main.dart

  6. reidbaker commented on Jun 6, 2025

    @reidbaker
    Member

    Given how many modes are having issues but they are all on emulators I am going to pass this over to the engine team for investigation.

    @jonahwilliams My hope is that there is something these tests need to opt into or out of if that is the case can you comment what the things are and I will get the the tests are migrated.

  7. added
    fyi-androidFor the attention of Android platform team
    and removed
    team-androidOwned by Android platform team
    on Jun 6, 2025
  8. 60 remaining items

  9. flutter-triage-bot commented on Jul 10, 2026

    @flutter-triage-bot

    This issue was assigned to @reidbaker but has had no status updates in a long time. To remove any ambiguity about whether the issue is being worked on, the assignee was removed.

  10. removed
    ⏳Bot is counting down the days until it unassigns the issue
    on Jul 10, 2026
  11. added
    P2Important issues not at the top of the work list
    triaged-androidTriaged by Android platform team
    and removed
    P1High-priority issues at the top of the work list
    on Jul 14, 2026
  12. reidbaker commented on Jul 17, 2026

    @reidbaker
    Member

    Context from triage: The issue currently is not that platform views do not display on emulators it it is that they do not display on emulators that work in luci. The root cause last time this was investigated was that the luci config we use for emaultors (a dependency we download that downloads something else) has in it proto config a renderer that is incompatible with platform views for api 36. The android emulator team changed the default for the public so this is not an issue for them. For chrome changing the renderer caused too many issues with their visual tests so it was specified to be the older renderer.

    Flutter does not control those configs or the software that links those configs to luci enabled emulators.

  13. added a commit that references this issue on Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listplatform-androidAndroid applications specificallyplatform-views: hcIssues specific to the Hybrid Composition platform views backendplatform-views: hcppIssues which affect the HCPP platform views backendplatform-views: tlhcIssues specific to the Android Texture Layer Hybrid Composition platform views backendplatform-views: vdIssues specific to the Android VirtualDisplay platform views backendteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions