Repository: flutter
Issue: Flutter app does not start fullscreen even if I specify the activity to run in full screen in AndroidManifest.xml
Labels: platform-android,has reproducible steps,P3,team-android,triaged-android,found in release: 3.16,found in release: 3.18

### Steps to reproduce

1. Add the following code in the activity in `android/src/main/AndroidManifest.xml`
```
            <meta-data android:name="WindowManagerPreference:FreeformWindowSize"
                    android:value="maximize" />
            <meta-data android:name="WindowManagerPreference:FreeformWindowOrientation"
                    android:value="portrait" />
```
2. Start the application on a desktop device

### Expected results

The app starts full screen

### Actual results

The app starts in phone-sized window

### Code sample

<details><summary>Code sample</summary>

```xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
    <application
        android:label="bug"
        android:name="${applicationName}"
        android:icon="@mipmap/ic_launcher">
        <activity
            android:name=".MainActivity"
            android:exported="true"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
              android:name="io.flutter.embedding.android.NormalTheme"
              android:resource="@style/NormalTheme"
              />
            <meta-data android:name="WindowManagerPreference:FreeformWindowSize"
                    android:value="maximize" />
            <meta-data android:name="WindowManagerPreference:FreeformWindowOrientation"
                    android:value="portrait" />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
    </application>
</manifest>
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

![image](https://github.com/flutter/flutter/assets/2827264/3b7897aa-3778-4f3b-98a3-2a75c06d7aeb)


</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.10.5, on Ubuntu 23.10 6.5.0-14-generic, locale en_GB.UTF-8)
    • Flutter version 3.10.5 on channel stable at /home/michael/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (6 months ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1

Error 1 retrieving device properties for HZQL1849FAKC1001147:
adb: insufficient permissions for device: missing udev rules? user is in the plugdev group
See [http://developer.android.com/tools/device.html] for more information


[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /home/michael/Android/Sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /usr/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+9-Ubuntu-123.10)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = microsoft-edge

[✓] Linux toolchain - develop for Linux desktop
    • clang version 10.0.0-4ubuntu1
    • cmake version 3.16.3
    • ninja version 1.10.0
    • pkg-config version 0.29.1

[!] Android Studio (version 2023.1)
    • Android Studio at /opt/android-studio
    • Flutter plugin version 76.3.3
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] Connected device (4 available)
    • HZQL1849FAKC1001147 (mobile) • HZQL1849FAKC1001147 • android-arm    • Android null (API null)
    • sdk gpc x86 64 (mobile)      • emulator-5558       • android-x64    • Android 13 (API 33) (emulator)
    • Linux (desktop)              • linux               • linux-x64      • Ubuntu 23.10 6.5.0-14-generic
    • Chrome (web)                 • chrome              • web-javascript • Microsoft Edge 119.0.2151.97
    ! Device emulator-5554 is offline.
    ! Device emulator-5556 is offline.

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

```

</details>