Skip to content

Commit 31a157d

Browse files
author
Sergii Pylypenko
committed
SDL: specify service type in AndroidManifest.xml
1 parent 53d8902 commit 31a157d

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

project/AndroidManifestTemplate.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
<service android:name=".DummyService"
6363
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation|screenSize|smallestScreenSize|layoutDirection"
6464
android:enabled="true"
65+
android:foregroundServiceType="specialUse"
66+
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
67+
android:value="Keep the app running in background"/>
6568
/>
6669
</application>
6770

project/jni/application/xserver/project.patch

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
--- a/project/AndroidManifest.xml 2015-01-01 23:59:34.805231773 +0200
2-
+++ a/project/AndroidManifest.xml 2015-01-01 23:59:45.189378809 +0200
3-
@@ -43,5 +43,19 @@
4-
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation|screenSize|smallestScreenSize|layoutDirection"
1+
--- a/project/AndroidManifest.xml 2025-05-02 10:27:57.225677144 +0300
2+
+++ b/project/AndroidManifest.xml 2025-05-02 10:28:19.613269757 +0300
3+
@@ -47,8 +47,22 @@
54
android:enabled="true"
5+
android:foregroundServiceType="specialUse"
6+
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
7+
- android:value="Keep the app running in background"/>
8+
+ android:value="Keep the X server running in background. Stopping it will terminate all X11 applications that are connected to this server."/>
69
/>
710
+ <activity android:name=".RunFromOtherApp"
811
+ android:label="@string/app_name"
@@ -20,3 +23,4 @@
2023
+ </activity>
2124
</application>
2225

26+
<!-- ==INTERNET== --> <uses-permission android:name="android.permission.INTERNET" />

0 commit comments

Comments
 (0)