Skip to content

[CP] Beta/3.22 Platform view android 14 workaround #147644

@reidbaker

Description

@reidbaker

Issue Link

#146499

Target

beta

PR Link

Source pr:
flutter/engine#52370
CP pr: flutter/engine#52491

Changelog Description

Workaround for Android Platform views not displaying after background + trimMemory on android 14.

Impacted Users

Flutter Android developers who use platform views

Impact Description

Apps using platform views when backgrounded and under memory pressure (trimMemory) the platform views fail to render more frames.

Workaround

No work around other than to update the engine.

Risk

medium

Test Coverage

Some

Validation Steps

  • Launch app with platform view on an Android 14 host device.
  • Background the app and either open the camera or run adb shell am send-trim-memory <APP PACKAGE> BACKGROUND
  • Re launch the app
  • Notice platform views are not getting new frames but are still interactable.

Metadata

Metadata

Assignees

Labels

cp: approvedApproved cherry-pick requestcp: reviewCherry-picks in the review queue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions