Repository: flutter
Issue: [camera] `takePicture` freezes on Android 12 emulator
Labels: platform-android,p: camera,package,e: OS-version specific,P3,found in release: 3.7,found in release: 3.11,team-android,triaged-android

Related #92973

Tested and works on:
iPhone 14 Pro - iOS 16.4.1
Pixel 3a Emulator - Andriod 13

Doesn't work on:
Pixel 4 - Andriod 12

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

1. Clone and run `camera` example app.
2. Choose the back camera 
3. Take a picture

### Expected results

Picture should be saved and displayed

### Actual results

`cameraController.takePicture();` freezes and doesn't return anything

### Code sample

Use example app from `camera` pacakge

### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

https://user-images.githubusercontent.com/68549184/236374521-fcd086b0-7dd8-4b6b-a94d-e6a2cb7a939b.mov


</details>


### Logs

<details><summary>Logs</summary>

```console
D/Camera  (16501): Updating builder with feature: SensorOrientationFeature
D/Camera  (16501): Updating builder with feature: FlashFeature
D/Camera  (16501): Updating builder with feature: ExposureOffsetFeature
D/Camera  (16501): Updating builder with feature: FpsRangeFeature
I/Camera  (16501): sending capture request
2
D/CameraCaptureCallback(16501): CameraCaptureCallback | state: STATE_CAPTURING | afState: 0 | aeState: 2
2
D/CameraCaptureCallback(16501): CameraCaptureCallback | state: STATE_CAPTURING | afState: 0 | aeState: 5
I/Camera  (16501): unlockAutoFocus
I/Camera  (16501): refreshPreviewCaptureSession
I/Camera  (16501): open | onError
I/Camera  (16501): close
I/Camera  (16501): open | onClosed
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel beta, 3.10.0-1.5.pre, on macOS 13.3.1 22E772610a darwin-arm64, locale en-MY)
    • Flutter version 3.10.0-1.5.pre on channel beta at /Users/samuel/Flutter/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b1c77b7ed3 (2 days ago), 2023-05-02 21:11:36 -0600
    • Engine revision 50e509c2bd
    • Dart version 3.0.0 (build 3.0.0-417.4.beta)
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/samuel/Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.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 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.78.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.62.0

[✓] Connected device (3 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 12 (API 31) (emulator)
    • macOS (desktop)             • macos         • darwin-arm64   • macOS 13.3.1 22E772610a darwin-arm64
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 112.0.5615.137

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>