summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2023-04-18 14:02:57 +0200
committerArne Schwabe <arne@rfc2549.org>2023-04-18 14:02:57 +0200
commit6871a5a4734890e7b5e01040a38fb34b0a05a9fc (patch)
tree579a37cb4ab576260e9293a2f4c55d2cf846819f
parentba6ff09670679affd97cb410e5416f976c3cac0c (diff)
Use special use foregroundServiceType
This seems to be the only type we are left with to use. See also https://issuetracker.google.com/issues/278572216
-rw-r--r--main/src/main/AndroidManifest.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/src/main/AndroidManifest.xml b/main/src/main/AndroidManifest.xml
index 1afe859e..4a8348e1 100644
--- a/main/src/main/AndroidManifest.xml
+++ b/main/src/main/AndroidManifest.xml
@@ -8,6 +8,7 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
<!-- Used to show all apps in the allowed Apps selection,
this app needs the list the app in the allow/deny apps over the VPN -->
@@ -52,11 +53,13 @@
android:name=".core.OpenVPNService"
android:exported="true"
android:permission="android.permission.BIND_VPN_SERVICE"
- android:foregroundServiceType="connectedDevice"
+ android:foregroundServiceType="specialUse"
android:process=":openvpn">
<intent-filter>
<action android:name="android.net.VpnService" />
</intent-filter>
+ <property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" android:value="vpn"/>
+
</service>
<service
android:name=".api.ExternalOpenVPNService"