Repository: flutter
Issue: [Camera] Android Camera Plugin startImageStream gets stuck. 
Labels: e: device-specific,platform-android,p: camera,package,P2,needs repro info,team-android,triaged-android

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->
## Basic info
Development env：
1. Flutter version：3.3.5
2. Camera plugin: 0.10.0+4 (Tried all versions of 0.10.0)  

Device info:
1. Model:Xiaomi 10 Ultra
2. Android version:Android 12  

## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

1. Execute `flutter run` on the code sample
2. Call startImageStream after camera initialize

**Expected results:** <!-- what did you want to see? -->
Can see Camera preview normally.
**Actual results:** <!-- what did you see? -->
On some models(like Xiaomi 10 Ultra), the camera preview page gets stuck.And some devices work fine.I've seen similar issues with devices that seem to have Black Sharks in the issues.  
In order to rule out a single device abnormal factor. I found 2 Xiaomi 10 Ultra for testing, and they can all reproduce.
<details>
<summary>Code sample</summary>

<!--
      Please create a minimal reproducible sample that shows the problem
      and attach it below between the lines with the backticks.

      To create it you can use `flutter create bug` command and update the `main.dart` file.

      Alternatively, you can use https://dartpad.dev/
      which is capable of creating and running small Flutter apps.

      Without this we will unlikely be able to progress on the issue, and because of that
      we regretfully will have to close it.
-->
The code is the same as the Camera plugin example, except that startimagestream is called after initialize.  
 https://github.com/flutter/plugins/blob/main/packages/camera/camera/example/lib/main.dart
```dart
      await cameraController.initialize();
      await cameraController.startImageStream((image) => null);
```

</details>

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue. If there is a crash, please include
      the entirety of the crash log including the backtrace.
-->

```
2022-11-08 09:47:59.271 10339-10339/io.flutter.plugins.cameraexample D/CameraDevice-JV-0: waitUntilIdle: E. id = 0
2022-11-08 09:47:59.449 10339-10339/io.flutter.plugins.cameraexample D/CameraDevice-JV-0: waitUntilIdle: X
2022-11-08 09:47:59.823 10339-10339/io.flutter.plugins.cameraexample W/BpBinder: PerfMonitor binderTransact :  time=369ms interface=android.hardware.camera2.ICameraDeviceUser code=6
2022-11-08 09:47:59.831 10339-10339/io.flutter.plugins.cameraexample I/Camera: startPreviewWithImageStream
2022-11-08 09:47:59.831 10339-10899/io.flutter.plugins.cameraexample I/Camera: CameraCaptureSession onConfigured
2022-11-08 09:47:59.831 10339-10899/io.flutter.plugins.cameraexample I/Camera: Updating builder settings
2022-11-08 09:47:59.831 10339-10899/io.flutter.plugins.cameraexample D/Camera: Updating builder with feature: ExposureLockFeature
2022-11-08 09:47:59.831 10339-10899/io.flutter.plugins.cameraexample D/Camera: Updating builder with feature: ExposurePointFeature
2022-11-08 09:47:59.831 10339-10899/io.flutter.plugins.cameraexample D/Camera: Updating builder with feature: ZoomLevelFeature
2022-11-08 09:47:59.831 10339-10899/io.flutter.plugins.cameraexample D/Camera: Updating builder with feature: AutoFocusFeature
2022-11-08 09:47:59.831 10339-10899/io.flutter.plugins.cameraexample D/Camera: Updating builder with feature: NoiseReductionFeature
2022-11-08 09:47:59.831 10339-10899/io.flutter.plugins.cameraexample I/Camera: updateNoiseReduction | currentSetting: fast
2022-11-08 09:47:59.831 10339-10899/io.flutter.plugins.cameraexample D/Camera: Updating builder with feature: FocusPointFeature
2022-11-08 09:47:59.831 10339-10899/io.flutter.plugins.cameraexample D/Camera: Updating builder with feature: ResolutionFeature
2022-11-08 09:47:59.832 10339-10899/io.flutter.plugins.cameraexample D/Camera: Updating builder with feature: SensorOrientationFeature
2022-11-08 09:47:59.832 10339-10432/io.flutter.plugins.cameraexample W/s.cameraexampl: Long monitor contention with owner main (10339) at void android.hardware.camera2.impl.CameraDeviceImpl.waitUntilIdle()(CameraDeviceImpl.java:1424) waiters=0 in void android.hardware.camera2.impl.CameraDeviceImpl$4.run() for 559ms
2022-11-08 09:47:59.832 10339-10899/io.flutter.plugins.cameraexample D/Camera: Updating builder with feature: FlashFeature
2022-11-08 09:47:59.832 10339-10362/io.flutter.plugins.cameraexample W/s.cameraexampl: Long monitor contention with owner main (10339) at void android.hardware.camera2.impl.CameraDeviceImpl.waitUntilIdle()(CameraDeviceImpl.java:1424) waiters=1 in void android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onResultReceived(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.camera2.impl.CaptureResultExtras, android.hardware.camera2.impl.PhysicalCaptureResultInfo[]) for 551ms
2022-11-08 09:47:59.836 10339-10899/io.flutter.plugins.cameraexample D/Camera: Updating builder with feature: ExposureOffsetFeature
2022-11-08 09:47:59.837 10339-10899/io.flutter.plugins.cameraexample D/Camera: Updating builder with feature: FpsRangeFeature
2022-11-08 09:47:59.837 10339-10899/io.flutter.plugins.cameraexample I/Camera: refreshPreviewCaptureSession
2022-11-08 09:47:59.849 10339-10568/io.flutter.plugins.cameraexample I/Camera: CameraCaptureSession onClosed
2022-11-08 09:48:00.125 10339-10571/io.flutter.plugins.cameraexample W/CameraDevice-JV-0: Device error received, code 1, frame number 0, request ID -1, subseq ID 0
2022-11-08 09:48:00.126 10339-10432/io.flutter.plugins.cameraexample I/Camera: open | onError
2022-11-08 09:48:00.126 10339-10432/io.flutter.plugins.cameraexample I/Camera: close
2022-11-08 09:48:00.127 10339-10432/io.flutter.plugins.cameraexample D/CameraExtImplXiaoMi: releaseCameraDevice: 0
2022-11-08 09:48:00.128 10339-10432/io.flutter.plugins.cameraexample D/CameraDevice-JV-0: close: E. id = 0
2022-11-08 09:48:00.129 10339-11012/io.flutter.plugins.cameraexample D/CameraInjector: notify Powerkeeper in async thread..
2022-11-08 09:48:00.200 10339-10362/io.flutter.plugins.cameraexample W/CameraDevice-JV-0: Device error received, code 3, frame number 386, request ID -1, subseq ID 0
2022-11-08 09:48:00.285 10339-10571/io.flutter.plugins.cameraexample W/libc: Access denied finding property "vendor.camera.aux.packagelist"
2022-11-08 09:48:00.285 10339-10571/io.flutter.plugins.cameraexample W/CameraManagerGlobal: ignore the torch status update of camera: 2
2022-11-08 09:48:00.287 10339-10571/io.flutter.plugins.cameraexample W/libc: Access denied finding property "vendor.camera.aux.packagelist"
2022-11-08 09:48:00.287 10339-10571/io.flutter.plugins.cameraexample W/CameraManagerGlobal: ignore the torch status update of camera: 3
2022-11-08 09:48:00.288 10339-10571/io.flutter.plugins.cameraexample W/libc: Access denied finding property "vendor.camera.aux.packagelist"
2022-11-08 09:48:00.288 10339-10571/io.flutter.plugins.cameraexample W/CameraManagerGlobal: ignore the torch status update of camera: 4
2022-11-08 09:48:00.288 10339-10611/io.flutter.plugins.cameraexample W/libc: Access denied finding property "vendor.camera.aux.packagelist"
2022-11-08 09:48:00.288 10339-10611/io.flutter.plugins.cameraexample W/CameraManagerGlobal: ignore the torch status update of camera: 5
2022-11-08 09:48:00.288 10339-10611/io.flutter.plugins.cameraexample W/libc: Access denied finding property "vendor.camera.aux.packagelist"
2022-11-08 09:48:00.289 10339-10611/io.flutter.plugins.cameraexample W/CameraManagerGlobal: ignore the torch status update of camera: 6
2022-11-08 09:48:00.289 10339-10611/io.flutter.plugins.cameraexample W/libc: Access denied finding property "vendor.camera.aux.packagelist"
2022-11-08 09:48:00.289 10339-10611/io.flutter.plugins.cameraexample W/CameraManagerGlobal: ignore the torch status update of camera: 7
2022-11-08 09:48:00.289 10339-10749/io.flutter.plugins.cameraexample W/libc: Access denied finding property "vendor.camera.aux.packagelist"
2022-11-08 09:48:00.289 10339-10749/io.flutter.plugins.cameraexample W/CameraManagerGlobal: ignore the torch status update of camera: 9
2022-11-08 09:48:00.290 10339-10749/io.flutter.plugins.cameraexample W/libc: Access denied finding property "vendor.camera.aux.packagelist"
2022-11-08 09:48:00.290 10339-10749/io.flutter.plugins.cameraexample W/CameraManagerGlobal: ignore the torch status update of camera: 10
2022-11-08 09:48:00.290 10339-10749/io.flutter.plugins.cameraexample W/libc: Access denied finding property "vendor.camera.aux.packagelist"
2022-11-08 09:48:00.290 10339-10749/io.flutter.plugins.cameraexample W/CameraManagerGlobal: ignore the torch status update of camera: 11
2022-11-08 09:48:00.291 10339-10749/io.flutter.plugins.cameraexample E/CameraManagerGlobal: Camera 5 is not available. Ignore physical camera status change
2022-11-08 09:48:00.291 10339-10571/io.flutter.plugins.cameraexample E/CameraManagerGlobal: Camera 6 is not available. Ignore physical camera status change
2022-11-08 09:48:00.292 10339-10571/io.flutter.plugins.cameraexample E/CameraManagerGlobal: Camera 9 is not available. Ignore physical camera status change
2022-11-08 09:48:00.294 10339-10432/io.flutter.plugins.cameraexample D/CameraDevice-JV-0: close: X
2022-11-08 09:48:00.295 10339-10432/io.flutter.plugins.cameraexample I/Camera: The camera device has encountered a fatal error
2022-11-08 09:48:00.295 10339-10432/io.flutter.plugins.cameraexample I/Camera: open | onClosed
```
</details>


<!-- Finally, paste the output of running `flutter doctor -v` here. -->

<details>
  <summary>Flutter doctor </summary>
``` 

[✓] Flutter (Channel stable, 3.3.5, on macOS 13.0 22A380 darwin-arm, locale en-CN)
    • Flutter version 3.3.5 on channel stable at /Users/xxx/Documents/work/flutter sdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d9111f6402 (3 weeks ago), 2022-10-19 12:27:13 -0700
    • Engine revision 3ad69d7be3
    • Dart version 2.18.2
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/xxx/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • 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 11.0.13+0-b1751.21-8125866)

[✓] Connected device (2 available)
```
</details>