Repository: flutter
Issue: [webview_flutter] webview does not work properly in Huawei P30 after hot-restarting many times.
Labels: e: device-specific,platform-android,p: webview,package,P3,team-android,triaged-android

### What package does this bug report belong to?

webview_flutter

### What target platforms are you seeing this bug on?

Android

### Have you already upgraded your packages?

Yes

### Dependency versions

<details><summary>pubspec.lock</summary>

```lock
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
  async:
    dependency: transitive
    description:
      name: async
      sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63
      url: "https://pub.dev"
    source: hosted
    version: "2.12.0"
  boolean_selector:
    dependency: transitive
    description:
      name: boolean_selector
      sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.2"
  characters:
    dependency: transitive
    description:
      name: characters
      sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803
      url: "https://pub.dev"
    source: hosted
    version: "1.4.0"
  clock:
    dependency: transitive
    description:
      name: clock
      sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
      url: "https://pub.dev"
    source: hosted
    version: "1.1.2"
  collection:
    dependency: transitive
    description:
      name: collection
      sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
      url: "https://pub.dev"
    source: hosted
    version: "1.19.1"
  fake_async:
    dependency: transitive
    description:
      name: fake_async
      sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc"
      url: "https://pub.dev"
    source: hosted
    version: "1.3.2"
  flutter:
    dependency: "direct main"
    description: flutter
    source: sdk
    version: "0.0.0"
  flutter_inappwebview:
    dependency: "direct main"
    description:
      name: flutter_inappwebview
      sha256: "80092d13d3e29b6227e25b67973c67c7210bd5e35c4b747ca908e31eb71a46d5"
      url: "https://pub.dev"
    source: hosted
    version: "6.1.5"
  flutter_inappwebview_android:
    dependency: transitive
    description:
      name: flutter_inappwebview_android
      sha256: "62557c15a5c2db5d195cb3892aab74fcaec266d7b86d59a6f0027abd672cddba"
      url: "https://pub.dev"
    source: hosted
    version: "1.1.3"
  flutter_inappwebview_internal_annotations:
    dependency: transitive
    description:
      name: flutter_inappwebview_internal_annotations
      sha256: "787171d43f8af67864740b6f04166c13190aa74a1468a1f1f1e9ee5b90c359cd"
      url: "https://pub.dev"
    source: hosted
    version: "1.2.0"
  flutter_inappwebview_ios:
    dependency: transitive
    description:
      name: flutter_inappwebview_ios
      sha256: "5818cf9b26cf0cbb0f62ff50772217d41ea8d3d9cc00279c45f8aabaa1b4025d"
      url: "https://pub.dev"
    source: hosted
    version: "1.1.2"
  flutter_inappwebview_macos:
    dependency: transitive
    description:
      name: flutter_inappwebview_macos
      sha256: c1fbb86af1a3738e3541364d7d1866315ffb0468a1a77e34198c9be571287da1
      url: "https://pub.dev"
    source: hosted
    version: "1.1.2"
  flutter_inappwebview_platform_interface:
    dependency: transitive
    description:
      name: flutter_inappwebview_platform_interface
      sha256: cf5323e194096b6ede7a1ca808c3e0a078e4b33cc3f6338977d75b4024ba2500
      url: "https://pub.dev"
    source: hosted
    version: "1.3.0+1"
  flutter_inappwebview_web:
    dependency: transitive
    description:
      name: flutter_inappwebview_web
      sha256: "55f89c83b0a0d3b7893306b3bb545ba4770a4df018204917148ebb42dc14a598"
      url: "https://pub.dev"
    source: hosted
    version: "1.1.2"
  flutter_inappwebview_windows:
    dependency: transitive
    description:
      name: flutter_inappwebview_windows
      sha256: "8b4d3a46078a2cdc636c4a3d10d10f2a16882f6be607962dbfff8874d1642055"
      url: "https://pub.dev"
    source: hosted
    version: "0.6.0"
  flutter_lints:
    dependency: "direct dev"
    description:
      name: flutter_lints
      sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c"
      url: "https://pub.dev"
    source: hosted
    version: "4.0.0"
  flutter_test:
    dependency: "direct dev"
    description: flutter
    source: sdk
    version: "0.0.0"
  flutter_web_plugins:
    dependency: transitive
    description: flutter
    source: sdk
    version: "0.0.0"
  leak_tracker:
    dependency: transitive
    description:
      name: leak_tracker
      sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec
      url: "https://pub.dev"
    source: hosted
    version: "10.0.8"
  leak_tracker_flutter_testing:
    dependency: transitive
    description:
      name: leak_tracker_flutter_testing
      sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573
      url: "https://pub.dev"
    source: hosted
    version: "3.0.9"
  leak_tracker_testing:
    dependency: transitive
    description:
      name: leak_tracker_testing
      sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
      url: "https://pub.dev"
    source: hosted
    version: "3.0.1"
  lints:
    dependency: transitive
    description:
      name: lints
      sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"
      url: "https://pub.dev"
    source: hosted
    version: "4.0.0"
  matcher:
    dependency: transitive
    description:
      name: matcher
      sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
      url: "https://pub.dev"
    source: hosted
    version: "0.12.17"
  material_color_utilities:
    dependency: transitive
    description:
      name: material_color_utilities
      sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
      url: "https://pub.dev"
    source: hosted
    version: "0.11.1"
  meta:
    dependency: transitive
    description:
      name: meta
      sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
      url: "https://pub.dev"
    source: hosted
    version: "1.16.0"
  path:
    dependency: transitive
    description:
      name: path
      sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
      url: "https://pub.dev"
    source: hosted
    version: "1.9.1"
  plugin_platform_interface:
    dependency: transitive
    description:
      name: plugin_platform_interface
      sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.8"
  sky_engine:
    dependency: transitive
    description: flutter
    source: sdk
    version: "0.0.0"
  source_span:
    dependency: transitive
    description:
      name: source_span
      sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c"
      url: "https://pub.dev"
    source: hosted
    version: "1.10.1"
  stack_trace:
    dependency: transitive
    description:
      name: stack_trace
      sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
      url: "https://pub.dev"
    source: hosted
    version: "1.12.1"
  stream_channel:
    dependency: transitive
    description:
      name: stream_channel
      sha256: "4ac0537115a24d772c408a2520ecd0abb99bca2ea9c4e634ccbdbfae64fe17ec"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.3"
  string_scanner:
    dependency: transitive
    description:
      name: string_scanner
      sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
      url: "https://pub.dev"
    source: hosted
    version: "1.4.1"
  term_glyph:
    dependency: transitive
    description:
      name: term_glyph
      sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
      url: "https://pub.dev"
    source: hosted
    version: "1.2.2"
  test_api:
    dependency: transitive
    description:
      name: test_api
      sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
      url: "https://pub.dev"
    source: hosted
    version: "0.7.4"
  vector_math:
    dependency: transitive
    description:
      name: vector_math
      sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.4"
  vm_service:
    dependency: transitive
    description:
      name: vm_service
      sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14"
      url: "https://pub.dev"
    source: hosted
    version: "14.3.1"
  web:
    dependency: transitive
    description:
      name: web
      sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
      url: "https://pub.dev"
    source: hosted
    version: "1.1.0"
  webview_flutter:
    dependency: "direct main"
    description:
      name: webview_flutter
      sha256: "889a0a678e7c793c308c68739996227c9661590605e70b1f6cf6b9a6634f7aec"
      url: "https://pub.dev"
    source: hosted
    version: "4.10.0"
  webview_flutter_android:
    dependency: transitive
    description:
      name: webview_flutter_android
      sha256: "285cedfd9441267f6cca8843458620b5fda1af75b04f5818d0441acda5d7df19"
      url: "https://pub.dev"
    source: hosted
    version: "4.1.0"
  webview_flutter_platform_interface:
    dependency: transitive
    description:
      name: webview_flutter_platform_interface
      sha256: d937581d6e558908d7ae3dc1989c4f87b786891ab47bb9df7de548a151779d8d
      url: "https://pub.dev"
    source: hosted
    version: "2.10.0"
  webview_flutter_wkwebview:
    dependency: transitive
    description:
      name: webview_flutter_wkwebview
      sha256: b7e92f129482460951d96ef9a46b49db34bd2e1621685de26e9eaafd9674e7eb
      url: "https://pub.dev"
    source: hosted
    version: "3.16.3"
sdks:
  dart: ">=3.7.0-0 <4.0.0"
  flutter: ">=3.24.0"
```

</details>


### Steps to reproduce

This behavior was originally observed in #159688 but the fix only addressed the pixelation issue

1. run the example in a Huawei P30 (ELE-L04) with EMUI 12.0.0 (latest update)
2. Hot restart the app many times to see the different error states

### Expected results

The webview displays the webpage normally as any web browser or the flutter_inappwebview package and you can scroll

### Actual results

The webview sometimes displays a blank screen, sometimes the page partially loads but I can't scroll and sometimes the page layout is broken.

### Code sample

<details open><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'package:webview_flutter/webview_flutter.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
        appBar: AppBar(title: Text('test')),
        body: OfficialWebview(),
      ),
    );
  }
}

class OfficialWebview extends StatefulWidget {
  const OfficialWebview({super.key});

  @override
  State<OfficialWebview> createState() => _OfficialWebviewState();
}

class _OfficialWebviewState extends State<OfficialWebview> {
  late final WebViewController _controller;

  @override
  void initState() {
    super.initState();

    _controller = WebViewController()
      ..setJavaScriptMode(JavaScriptMode.unrestricted)
      ..loadRequest(Uri.parse('https://flutter.dev/'));
  }

  @override
  Widget build(BuildContext context) {
    return WebViewWidget(controller: _controller);
  }
}
```

</details>


### Screenshots or Videos

<details open>
<summary>Screenshots / Video demonstration</summary>

![Image](https://github.com/user-attachments/assets/7f6f024d-85a6-4a2f-9067-720844824ae1)

![Image](https://github.com/user-attachments/assets/ad8e640d-3817-47a9-9560-ca617a2e43c0)

</details>


### Logs

<details open><summary>Logs</summary>

```console
Launching lib/main.dart on ELE L04 in debug mode...
Your project is configured with Android NDK 26.3.11579264, but the following plugin(s) depend on a different Android NDK version:
- flutter_inappwebview_android requires Android NDK 27.0.12077973
- webview_flutter_android requires Android NDK 27.0.12077973
Fix this issue by using the highest Android NDK version (they are backward compatible).
Add the following to /Users/victorcatano/development/p30webview/android/app/build.gradle.kts:

    android {
        ndkVersion = "27.0.12077973"
        ...
    }

✓ Built build/app/outputs/flutter-apk/app-debug.apk
I/flutter (24700): [IMPORTANT:flutter/shell/platform/android/android_context_vk_impeller.cc(60)] Using the Impeller rendering backend (Vulkan).
Connecting to VM Service at ws://127.0.0.1:60255/WnPcWjBrlJY=/ws
Connected to the VM Service.
I/Choreographer(24700): Skipped 57 frames!  The application may be doing too much work on its main thread.
D/ApplicationLoaders(24700): createClassLoader zip: /data/app/com.google.android.trichromelibrary_677820033-h_MTD1WOdwlyswolmFAhvw==/base.apk librarySearchPath: /data/app/com.google.android.webview-5v6ABbFqtHSZzOuqwII55Q==/lib/arm64:/data/app/com.google.android.webview-5v6ABbFqtHSZzOuqwII55Q==/base.apk!/lib/arm64-v8a:/data/app/com.google.android.webview-5v6ABbFqtHSZzOuqwII55Q==/split_config.en.apk!/lib/arm64-v8a:/data/app/com.google.android.webview-5v6ABbFqtHSZzOuqwII55Q==/split_config.es.apk!/lib/arm64-v8a:/data/app/com.google.android.trichromelibrary_677820033-h_MTD1WOdwlyswolmFAhvw==/base.apk!/lib/arm64-v8a libraryPermittedPath:  parent: java.lang.BootClassLoader@554d021 targetSdkVersion: 34 isBundled: false classLoaderName: null sharedLibraries: null
D/ApplicationLoaders(24700): createClassLoader zip: /data/app/com.google.android.webview-5v6ABbFqtHSZzOuqwII55Q==/base.apk librarySearchPath: /data/app/com.google.android.webview-5v6ABbFqtHSZzOuqwII55Q==/lib/arm64:/data/app/com.google.android.webview-5v6ABbFqtHSZzOuqwII55Q==/base.apk!/lib/arm64-v8a:/data/app/com.google.android.webview-5v6ABbFqtHSZzOuqwII55Q==/split_config.en.apk!/lib/arm64-v8a:/data/app/com.google.android.webview-5v6ABbFqtHSZzOuqwII55Q==/split_config.es.apk!/lib/arm64-v8a:/data/app/com.google.android.trichromelibrary_677820033-h_MTD1WOdwlyswolmFAhvw==/base.apk!/lib/arm64-v8a libraryPermittedPath:  parent: java.lang.BootClassLoader@554d021 targetSdkVersion: 34 isBundled: false classLoaderName: null sharedLibraries: [dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.google.android.trichromelibrary_677820033-h_MTD1WOdwlyswolmFAhvw==/base.apk"],nativeLibraryDirectories=[/data/app/com.google.android.webview-5v6ABbFqtHSZzOuqwII55Q==/lib/arm64, /data/app/com.google.android.webview-5v6ABbFqtHSZzOuqwII55Q==/base.apk!/lib/arm64-v8a, /data/app/com.google.android.webview-5v6ABbFqtHSZzOuqwII55Q==/split_config.en.apk!/lib/arm64-v8a, /data/app/com.google.android.webview-5v6ABbFqtHSZzOuqwII55Q==/split_config.es.apk!/lib/arm64-v8a, /data/app/com.google.android.trichromelibrary_677820033-h_MTD1WOdwlyswolmFAhvw==/base.apk!/lib/arm64-v8a, /system/lib64, /hw_product/lib64, /system/product/lib64, /prets/lib64]]]]
I/WebViewFactory(24700): Loading com.google.android.webview version 131.0.6778.200 (code 677820033)
W/linker  (24700): Warning: "/data/app/com.google.android.trichromelibrary_677820033-h_MTD1WOdwlyswolmFAhvw==/base.apk!/lib/arm64-v8a/libmonochrome_64.so" unused DT entry: unknown processor-specific (type 0x70000001 arg 0x0) (ignoring)
I/cr_WVCFactoryProvider(24700): version=131.0.6778.200 (677820033) minSdkVersion=29 isBundle=true multiprocess=true packageId=3
I/cr_LibraryLoader(24700): Successfully loaded native library
I/cr_CachingUmaRecorder(24700): Flushed 5 samples from 5 histograms, 0 samples were dropped.
I/cr_CombinedPProvider(24700): #registerProvider() provider:WV.y8@cea229a isPolicyCacheEnabled:false policyProvidersSize:0
I/cr_PolicyProvider(24700): #setManagerAndSource() 0
I/cr_CombinedPProvider(24700): #linkNativeInternal() 1
I/cr_AppResProvider(24700): #getApplicationRestrictionsFromUserManager() Bundle[EMPTY_PARCEL]
I/cr_PolicyProvider(24700): #notifySettingsAvailable() 0
I/cr_CombinedPProvider(24700): #onSettingsAvailable() 0
I/cr_CombinedPProvider(24700): #flushPolicies()
W/chromium(24700): [WARNING:dns_config_service_android.cc(81)] Failed to read DnsConfig.
E/chromium(24700): [ERROR:simple_index_file.cc(307)] Could not create a directory to hold the index file
E/chromium(24700): [ERROR:simple_file_enumerator.cc(21)] opendir /data/user/0/com.example.p30webview/cache/WebView/Default/HTTP Cache/Code Cache/wasm: No such file or directory (2)
E/chromium(24700): [ERROR:simple_index_file.cc(620)] Could not reconstruct index from disk
I/HwViewRootImpl(24700): removeInvalidNode jank list is null
W/cr_media(24700): getBluetoothAdapter() requires BLUETOOTH permission
W/cr_media(24700): registerBluetoothIntentsIfNeeded: Requires BLUETOOTH permission
I/PlatformViewsController(24700): Hosting view in view hierarchy for platform view: 0
I/flutter (24700): [IMPORTANT:flutter/shell/platform/android/platform_view_android.cc(308)] Flutter recommends migrating plugins that create and register surface textures to the new surface producer API. See https://docs.flutter.dev/release/breaking-changes/android-surface-plugins
W/chromium(24700): [WARNING:viz_main_impl.cc(85)] VizNullHypothesis is disabled (not a warning)
I/PlatformViewsController(24700): PlatformView is using SurfaceProducer backend
D/mali_winsys(24700): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
W/Gralloc3(24700): allocator 3.x is not supported
W/VideoCapabilities(24700): Unrecognized profile/level 0/0 for video/mpeg2
W/VideoCapabilities(24700): Unrecognized profile/level 0/2 for video/mpeg2
W/VideoCapabilities(24700): Unrecognized profile/level 0/3 for video/mpeg2
I/VideoCapabilities(24700): Unsupported profile 5 for video/mpeg2
I/chatty  (24700): uid=10542(com.example.p30webview) ThreadPoolSingl identical 2 lines
I/VideoCapabilities(24700): Unsupported profile 5 for video/mpeg2
W/VideoCapabilities(24700): Unrecognized profile/level 1/32 for video/mp4v-es
W/VideoCapabilities(24700): Unrecognized profile/level 32768/2 for video/mp4v-es
W/VideoCapabilities(24700): Unrecognized profile/level 32768/64 for video/mp4v-es
D/SensorManager(24700): 0x7251cb8dc0 addFd fd=280
I/DecorView[](24700): pkgName:com.example.p30webview old windowMode:1 new windoMode:1, isFixedSize:false
W/OpenGLRenderer(24700): dequeueBuffer failed, error = -110; switching to fallback
D/NetworkSecurityConfig(24700): No Network Security Config specified, using platform default
W/mple.p30webvie(24700): Accessing hidden field Landroid/content/pm/ApplicationInfo;->primaryCpuAbi:Ljava/lang/String; (greylist, reflection, allowed)
D/HwGalleryCacheManagerImpl(24700): mIsEffect:false
I/Choreographer(24700): Skipped 31 frames!  The application may be doing too much work on its main thread.
I/cr_MediaCodecBridge(24700): create MediaCodec video decoder, mime video/avc, decoder name OMX.hisi.video.decoder.avc
W/OpenGLRenderer(24700): reserveNext failed, error = -2147483648 (Unknown error -2147483648)
W/BufferQueueProducer(24700): [SurfaceTexture-0-24700-0]:1390: disconnect: not connected (req=1)
W/libEGL  (24700): EGLNativeWindowType 0x7212f42550 disconnect failed
I/HwViewRootImpl(24700): removeInvalidNode jank list is null
I/OMXClient(24700): IOmx service obtained
I/ACodec  (24700): In onAllocateComponent create compenent, codec name: OMX.hisi.video.decoder.avc
I/MediaCodec(24700): MediaCodec will operate in async mode
D/SurfaceUtils(24700): connecting to surface 0x7214db2010, reason connectToSurface
I/MediaCodec(24700): [OMX.hisi.video.decoder.avc] setting surface generation to 25292801
D/SurfaceUtils(24700): disconnecting from surface 0x7214db2010, reason connectToSurface(reconnect)
D/SurfaceUtils(24700): connecting to surface 0x7214db2010, reason connectToSurface(reconnect)
E/ACodec  (24700): [OMX.hisi.video.decoder.avc] setPortMode on output to DynamicANWBuffer failed w/ err -2147483648
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] using color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) and dataspace 0x104
I/ACodec  (24700): onStart
I/HwExtendedUtils(24700): Set to window composer mode as 2
I/ACodec  (24700): gralloc usage: 0(OMX) => 0x2900(ACodec)
D/SurfaceUtils(24700): disconnecting from surface 0x7214db2010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(24700): connecting to surface 0x7214db2010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(24700): set up nativeWindow 0x7214db2010 for 1632x1080, color 0x30d, rotation 0, usage 0x2900
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] Allocating 7 buffers from a native window of size 2924544 on output port
I/cr_MediaCodecBridge(24700): create MediaCodec video decoder, mime video/avc, decoder name OMX.hisi.video.decoder.avc
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] using color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) and dataspace 0x104
I/OMXClient(24700): IOmx service obtained
I/ACodec  (24700): In onAllocateComponent create compenent, codec name: OMX.hisi.video.decoder.avc
I/MediaCodec(24700): MediaCodec will operate in async mode
D/SurfaceUtils(24700): connecting to surface 0x7214df1010, reason connectToSurface
I/MediaCodec(24700): [OMX.hisi.video.decoder.avc] setting surface generation to 25292802
D/SurfaceUtils(24700): disconnecting from surface 0x7214df1010, reason connectToSurface(reconnect)
D/SurfaceUtils(24700): connecting to surface 0x7214df1010, reason connectToSurface(reconnect)
E/ACodec  (24700): [OMX.hisi.video.decoder.avc] setPortMode on output to DynamicANWBuffer failed w/ err -2147483648
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] using color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) and dataspace 0x104
I/ACodec  (24700): onStart
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] using color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) and dataspace 0x104
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] Now handling output port settings change
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] Output port now disabled.
I/HwExtendedUtils(24700): Set to window composer mode as 2
I/HwExtendedUtils(24700): Set to window composer mode as 2
I/ACodec  (24700): gralloc usage: 0(OMX) => 0x2900(ACodec)
D/SurfaceUtils(24700): disconnecting from surface 0x7214df1010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(24700): connecting to surface 0x7214df1010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(24700): set up nativeWindow 0x7214df1010 for 1632x1080, color 0x30d, rotation 0, usage 0x2900
I/ACodec  (24700): gralloc usage: 0(OMX) => 0x2900(ACodec)
D/SurfaceUtils(24700): disconnecting from surface 0x7214db2010, reason setNativeWindowSizeFormatAndUsage
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] Allocating 7 buffers from a native window of size 2924544 on output port
D/SurfaceUtils(24700): connecting to surface 0x7214db2010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(24700): set up nativeWindow 0x7214db2010 for 1632x1088, color 0x30d, rotation 0, usage 0x2900
W/ACodec  (24700): [OMX.hisi.video.decoder.avc] setting nBufferCountActual to 13 failed: -1010
W/ACodec  (24700): [OMX.hisi.video.decoder.avc] setting nBufferCountActual to 12 failed: -1010
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] Allocating 11 buffers from a native window of size 2715648 on output port
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] using color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) and dataspace 0x104
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] Output port now reenabled.
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] using color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) and dataspace 0x104
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] Now handling output port settings change
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] Output port now disabled.
I/HwExtendedUtils(24700): Set to window composer mode as 2
I/ACodec  (24700): gralloc usage: 0(OMX) => 0x2900(ACodec)
D/SurfaceUtils(24700): disconnecting from surface 0x7214df1010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(24700): connecting to surface 0x7214df1010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(24700): set up nativeWindow 0x7214df1010 for 1632x1088, color 0x30d, rotation 0, usage 0x2900
W/ACodec  (24700): [OMX.hisi.video.decoder.avc] setting nBufferCountActual to 13 failed: -1010
W/ACodec  (24700): [OMX.hisi.video.decoder.avc] setting nBufferCountActual to 12 failed: -1010
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] Allocating 11 buffers from a native window of size 2715648 on output port
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] Output port now reenabled.
D/ACodec  (24700): sendVideoFpsDataToiAware time:0 fps:-1 msg:-1
D/ACodec  (24700): sendVideoFpsDataToiAware time:0 fps:-1 msg:-1
I/cr_MediaCodecBridge(24700): create MediaCodec video decoder, mime video/avc, decoder name OMX.hisi.video.decoder.avc
I/OMXClient(24700): IOmx service obtained
I/ACodec  (24700): In onAllocateComponent create compenent, codec name: OMX.hisi.video.decoder.avc
I/MediaCodec(24700): MediaCodec will operate in async mode
D/SurfaceUtils(24700): connecting to surface 0x72152e3010, reason connectToSurface
I/MediaCodec(24700): [OMX.hisi.video.decoder.avc] setting surface generation to 25292803
D/SurfaceUtils(24700): disconnecting from surface 0x72152e3010, reason connectToSurface(reconnect)
D/SurfaceUtils(24700): connecting to surface 0x72152e3010, reason connectToSurface(reconnect)
E/ACodec  (24700): [OMX.hisi.video.decoder.avc] setPortMode on output to DynamicANWBuffer failed w/ err -2147483648
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] using color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) and dataspace 0x104
I/ACodec  (24700): onStart
I/HwExtendedUtils(24700): Set to window composer mode as 2
I/ACodec  (24700): gralloc usage: 0(OMX) => 0x2900(ACodec)
D/SurfaceUtils(24700): disconnecting from surface 0x72152e3010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(24700): connecting to surface 0x72152e3010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(24700): set up nativeWindow 0x72152e3010 for 1632x1080, color 0x30d, rotation 0, usage 0x2900
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] Allocating 7 buffers from a native window of size 2924544 on output port
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] using color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) and dataspace 0x104
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] using color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) and dataspace 0x104
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] Now handling output port settings change
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] Output port now disabled.
I/HwExtendedUtils(24700): Set to window composer mode as 2
I/ACodec  (24700): gralloc usage: 0(OMX) => 0x2900(ACodec)
D/SurfaceUtils(24700): disconnecting from surface 0x72152e3010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(24700): connecting to surface 0x72152e3010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(24700): set up nativeWindow 0x72152e3010 for 1632x1088, color 0x30d, rotation 0, usage 0x2900
W/ACodec  (24700): [OMX.hisi.video.decoder.avc] setting nBufferCountActual to 13 failed: -1010
W/ACodec  (24700): [OMX.hisi.video.decoder.avc] setting nBufferCountActual to 12 failed: -1010
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] Allocating 11 buffers from a native window of size 2715648 on output port
I/ACodec  (24700): [OMX.hisi.video.decoder.avc] Output port now reenabled.
D/ACodec  (24700): sendVideoFpsDataToiAware time:0 fps:-1 msg:-1
I/AwareBitmapCacher(24700): init lrucache size: 2097152 pid=24700
D/ProfileInstaller(24700): Installing profile for com.example.p30webview
W/mple.p30webvie(24700): Accessing hidden method Llibcore/io/Memory;->peekLong(JZ)J (greylist, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Llibcore/io/Memory;->pokeLong(JJZ)V (greylist, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Llibcore/io/Memory;->pokeInt(JIZ)V (greylist, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Llibcore/io/Memory;->peekInt(JZ)I (greylist, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Llibcore/io/Memory;->pokeByte(JB)V (greylist, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Llibcore/io/Memory;->peekByte(J)B (greylist, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Llibcore/io/Memory;->pokeByteArray(J[BII)V (greylist, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Llibcore/io/Memory;->peekByteArray(J[BII)V (greylist, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J (greylist,core-platform-api, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden field Ljava/nio/Buffer;->address:J (greylist, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->arrayBaseOffset(Ljava/lang/Class;)I (greylist,core-platform-api, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->arrayIndexScale(Ljava/lang/Class;)I (greylist, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, reflection, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->getUnsafe()Lsun/misc/Unsafe; (greylist,core-platform-api, linking, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->compareAndSwapObject(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z (greylist, linking, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/cr_MediaCodecBridge(24700): Releasing: OMX.hisi.video.decoder.avc
W/ACodec  (24700): forcing OMX state to Idle when received shutdown in ExecutingState
D/ACodec  (24700): sendVideoFpsDataToiAware time:33333 fps:30 msg:30
D/SurfaceUtils(24700): disconnecting from surface 0x7214db2010, reason disconnectFromSurface
W/cr_MediaCodecBridge(24700): Codec released
W/cr_MediaCodecBridge(24700): Releasing: OMX.hisi.video.decoder.avc
W/ACodec  (24700): forcing OMX state to Idle when received shutdown in ExecutingState
D/SurfaceUtils(24700): disconnecting from surface 0x7214df1010, reason disconnectFromSurface
W/cr_MediaCodecBridge(24700): Codec released
W/cr_MediaCodecBridge(24700): Releasing: OMX.hisi.video.decoder.avc
W/ACodec  (24700): forcing OMX state to Idle when received shutdown in ExecutingState
D/SurfaceUtils(24700): disconnecting from surface 0x72152e3010, reason disconnectFromSurface
W/cr_MediaCodecBridge(24700): Codec released
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/mple.p30webvie(24700): Accessing hidden method Lsun/misc/Unsafe;->compareAndSwapObject(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z (greylist, linking, allowed)

```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[✓] Flutter (Channel master, 3.28.0-2.0.pre.38698, on macOS 15.2 24C101 darwin-arm64, locale en-CO)
    • Flutter version 3.28.0-2.0.pre.38698 on channel master at /Users/victorcatano/fvm/versions/master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision bd1ebf2e14 (3 days ago), 2025-01-11 13:16:21 -0800
    • Engine revision bd1ebf2e14
    • Dart version 3.7.0 (build 3.7.0-312.0.dev)
    • DevTools version 2.42.0

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/victorcatano/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.

[✓] Android Studio (version 2024.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)

[✓] Connected device (5 available)
    • ELE L04 (mobile)                    • JND0219517003286          • android-arm64  • Android 10 (API 29)

```

</details>