Repository: flutter
Issue: `image_picker`s `pickMedia` allows non-image files to be picked on Android
Labels: platform-android,p: image_picker,package,has reproducible steps,P2,team-android,triaged-android,found in release: 3.22,found in release: 3.24

### Steps to reproduce

1. Start image picker with `imagePicker.pickMedia`
2. File picker is shown

### Expected results

Only images or videos should be allowed to be selected

### Actual results

Any file is selectable

### Code sample

<details open><summary>Code sample</summary>

```dart
final imagePicker = ImagePicker();
final media = imagePicker.pickMedia(
  requestFullMetadata: false,
);
```

</details>

### Minimal Project

<details open><summary>Mini,al Project</summary>
https://github.com/user-attachments/files/16353849/image_picker_demo.zip

</details>


### Screenshots or Video
[untitled.webm](https://github.com/user-attachments/assets/c1fe0e2f-5703-4749-9c0c-2b5892fb0796)


### Logs

```
D/EGL_emulation(19593): app_time_stats: avg=2731.61ms min=50.06ms max=8084.40ms count=3
D/OpenGLRenderer(19593): --- Failed to create image decoder with message 'unimplemented'
E/OpenGLRenderer(19593): Unable to match the desired swap behavior.
```

### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[√] Flutter (Channel stable, 3.22.3, on Microsoft Windows [Version 10.0.22631.3593], locale en-GB)
    • Flutter version 3.22.3 on channel stable at C:\Programming\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0850beeb2 (6 days ago), 2024-07-16 21:43:41 -0700
    • Engine revision 235db911ba
    • Dart version 3.4.4
    • DevTools version 2.34.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Programming\Android_SDK
    • Platform android-VanillaIceCream, build-tools 34.0.0
    • Java binary at: C:\Programming\Android_Studio_Beta\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
    • All Android licenses accepted.

[X] Visual Studio - develop Windows apps
    X Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2024.1)
    • Android Studio at C:\Programming\Android_Studio_Beta
    • 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.11+0--11852314)

[√] IntelliJ IDEA Community Edition (version 2023.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.1.2
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 232.8660.129

[√] VS Code, 64-bit edition (version 1.89.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (2 available)
    • SM G991U1 (mobile) • R5CR418H3FL • android-arm64 • Android 14 (API 34)
    • Windows (desktop)  • windows     • windows-x64   • Microsoft Windows [Version 10.0.22631.3593]

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.
```

</details>