Repository: flutter
Issue: Flutter-3.22.2 - Repeated launches of any application in the Android emulator freeze
Labels: platform-android,P2,team-android,triaged-android

### Steps to reproduce

1. upgrade the Flutter to 3.22.2
2. create from scratch an any flutter app, for example "flutter create test_drive"
    * *I try to do it with my old, flutter-3.13.x apps - they freeze too*
      * *I try to run my old flutter-3.13.x apps without the "https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply" updates - result is freeze*
      * *I try to run my old flutter-3.13.x apps with the "https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply" updates - result is freeze*
      * *I try to run a new app, created from scratch by command "flutter create test_drive" - result is freeze*
3. open this project in any IDE  (Visual Studio Code or Android Studio)
   * *I try to do it into Android Studio from 2022 year, with outdated Flutter & Dart plugins - result is freeze*
   * *I try to do it into Android Studio from 2022 year, with updated Flutter & Dart plugins - result is freeze*
   * *I try to do it into latest Android Studio-2023.3.1.19, with fresh Flutter & Dart plugins - result is freeze*
   * *I try to do it into latest Microsoft Visual Code, with fresh Flutter plugin - result is freeze*
5. create any Virtual Mobile Device (I try API 29 and API 34)
6. build and run this app
7. First run will be OK, but if your project has the flutter_native_splash feature you will some slow motion switch between splash screen and main screen 
8. Return the virtual mobile screen to Home page mode
9. Remove app from virtual mobile history cache (square button, find and remove the app screen)
10. Find app in your virtual mobile and Start it again
11. Application will freeze and you can't see the main screen of app.

I check it on real Andoid device:
* I can't get this bug
* But I see the slow motion switch between splash screen and main screen (my real developed app uses the flutter_native_splash feature

### Expected results

1. Repeated launches of application in the Android emulator should run successfully,
2. No slow motion switch between splash screen mode and main screen


### Actual results

1. Repeated launches of application in the Android emulator freeze,
   * if your app has a splash screen, the freeze will be after splash screen, on the Main page init phase
   * if your app hasn't a splash screen, the freeze will be on the Main page init phase
2. Slow motion switch between splash screen mode and main screen on first run in Android emulator
3. Slow motion switch between splash screen mode and main screen in any run on real Android device

### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```
\flutter-apps>flutter doctor                                                                                                                        Doctor summary (to see all details, run flutter doctor -v):                                                                                                             [!] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.19045.4474], locale en-US)                                                                          ! Warning: `flutter` on your path resolves to G:\opt\flutter\bin\flutter, which is not inside your current Flutter SDK checkout at C:\opt\flutter. Consider adding        C:\opt\flutter\bin to the front of your path.                                                                                                                         ! Warning: `dart` on your path resolves to G:\opt\flutter\bin\dart, which is not inside your current Flutter SDK checkout at C:\opt\flutter. Consider adding              C:\opt\flutter\bin to the front of your path.                                                                                                                     [√] Windows Version (Installed version of Windows is version 10 or higher)                                                                                              [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)                                                                                        [√] Chrome - develop for the web                                                                                                                                        [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 2023.3)                                                                                                                                     [√] VS Code (version 1.90.0)                                                                                                                                            [√] Connected device (3 available)                                                                                                                                      [√] Network resources                                                                                                                                                                                                                                                                                                                           ! Doctor found issues in 2 categories.     
```

</details>