From 98322889832a880ce48bbc1c81f6ad6c5c405530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Fri, 6 Sep 2024 21:07:56 +0200 Subject: [PATCH] Adopt changes to `AndroidManifest.xml` from SDL sample project Specify `android:installLocation="auto"` so the app can be installed on and move to the external storage. Specify optional features which the app may use (touchscreen, game controller, external mouse). Specify `android:preferMinimalPostProcessing="true"` so lower latency HDMI mode is enabled when available. Specify `android:hardwareAccelerated="true"` for consistency (it is already the default setting). Specify same `android:configChanges` and `android:alwaysRetainTaskState` values as SDL to avoid potential bugs due to inconsistency with what the `SDLActivity` expects. See https://github.com/libsdl-org/SDL/blob/f5ed158d1f59d0d3bfe65f6c3603c5082c560797/android-project/app/src/main/AndroidManifest.xml --- scripts/android/files/AndroidManifest.xml | 38 +++++++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/scripts/android/files/AndroidManifest.xml b/scripts/android/files/AndroidManifest.xml index fcf771bec..3106bd9a3 100644 --- a/scripts/android/files/AndroidManifest.xml +++ b/scripts/android/files/AndroidManifest.xml @@ -1,15 +1,40 @@ - + + + + + + + + + + + + + + + @@ -25,17 +50,24 @@ android:isGame="true" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" - android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> + android:theme="@android:style/Theme.NoTitleBar.Fullscreen" + android:hardwareAccelerated="true"> + + + +