Repository: flutter
Issue: [Android] Autofill from saved credentials doesn't work
Labels: a: text input,platform-android,framework,customer: crowd,has reproducible steps,P2,team-android,triaged-android,found in release: 3.13,found in release: 3.16

### 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. Create a form with username and password field
2. Try to use password manager such as Google Password Manager
3. Ensure that password usage requires biometric auth (not sure if it changes anything)
4. Click in Key icon on keyboard and select password

### Device for testing
Google Pixel 7 pro, Android 14 (34)

### Expected results

Form prepopulates with the selected username/password combination

### Actual results

Input loses focus and nothing happens.

Form can be prepopulated only if login/password combination is selected from Keyboard quick actions and no biometric check is requested

### Code sample

<details><summary>Code sample (very simple autofillgroup with 2 inputs)</summary>

```dart
           AutofillGroup(
              child: Column(
                children: [
                  TextField(
                    autofillHints: [AutofillHints.username],
                  ),
                  TextField(
                    autofillHints: [AutofillHints.password],
                  ),
                ],
              ),
            ),
```

</details>


### Screenshots or Video

<details><summary>Video</summary>

https://github.com/flutter/flutter/assets/621542/c669e975-df2f-40cf-86a6-2b46ad15f05e


</details>

### Logs

<details><summary>Logs</summary>

```console
[+1656 ms] I/ImeTracker(29289): com.example.flutter_three_thirteen:355d8ebd: onRequestShow at ORIGIN_CLIENT_SHOW_SOFT_INPUT reason SHOW_SOFT_INPUT
[        ] D/InputMethodManager(29289): showSoftInput() view=io.flutter.embedding.android.FlutterView{5267c32 VFE...... .F...... 0,0-1440,3036 #1 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT
[  +21 ms] D/InputConnectionAdaptor(29289): The input method toggled cursor monitoring on
[  +43 ms] D/InsetsController(29289): show(ime(), fromIme=true)
[ +298 ms] I/ImeTracker(29289): com.example.flutter_three_thirteen:355d8ebd: onShown
[+1871 ms] D/InputConnectionAdaptor(29289): The input method toggled cursor monitoring off
[        ] W/WindowOnBackDispatcher(29289): sendCancelIfRunning: isInProgress=falsecallback=ImeCallback=ImeOnBackInvokedCallback@122401794 Callback=android.window.IOnBackInvokedCallback$Stub$Proxy@dd07025
[        ] I/ImeTracker(29289): com.google.android.gms:418f75e2: onCancelled at PHASE_CLIENT_ANIMATION_CANCEL
[   +9 ms] I/ImeTracker(29289): com.example.flutter_three_thirteen:f278d0eb: onRequestHide at ORIGIN_CLIENT_HIDE_SOFT_INPUT reason HIDE_SOFT_INPUT_BY_INSETS_API
[        ] I/ImeTracker(29289): com.example.flutter_three_thirteen:f278d0eb: onFailed at PHASE_CLIENT_VIEW_SERVED

```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.13.9, on macOS 13.5.2 22G91 darwin-arm64, locale ru)
    • Flutter version 3.13.9 on channel stable at /Users/tatsu/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d211f42860 (8 days ago), 2023-10-25 13:42:25 -0700
    • Engine revision 0545f8705d
    • Dart version 3.1.5
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at ****
    • Platform android-33, build-tools 33.0.0
    • ANDROID_HOME = ****
    • Java binary at: ****
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.13.0

[✓] Android Studio (version 2022.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 17.0.6+0-17.0.6b829.9-10027231)

[✓] Connected device (4 available)


[✓] Network resources
    • All expected network resources are available.

```

</details>