summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2024-01-02 23:24:02 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2024-01-02 23:33:10 +0100
commite44db974b35e1e17a48897f5719c146835f28851 (patch)
tree75d1eb78ca24d3e3f133336ea52ffd75b1cd7008
parentd6df7ef1aff897bd3161f693202081cd69cb1aab (diff)
WIP: tunnel, ui: declare systemExempted service
-rw-r--r--tunnel/src/main/AndroidManifest.xml3
-rw-r--r--ui/src/main/AndroidManifest.xml3
2 files changed, 5 insertions, 1 deletions
diff --git a/tunnel/src/main/AndroidManifest.xml b/tunnel/src/main/AndroidManifest.xml
index 99509a20..bbefdb1c 100644
--- a/tunnel/src/main/AndroidManifest.xml
+++ b/tunnel/src/main/AndroidManifest.xml
@@ -9,7 +9,8 @@
<service
android:name="com.wireguard.android.backend.GoBackend$VpnService"
android:permission="android.permission.BIND_VPN_SERVICE"
- android:exported="false">
+ android:exported="false"
+ android:foregroundServiceType="systemExempted">
<intent-filter>
<action android:name="android.net.VpnService" />
</intent-filter>
diff --git a/ui/src/main/AndroidManifest.xml b/ui/src/main/AndroidManifest.xml
index 902c6530..e49efd8e 100644
--- a/ui/src/main/AndroidManifest.xml
+++ b/ui/src/main/AndroidManifest.xml
@@ -6,6 +6,9 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
+ <uses-permission
+ android:name="android.permission.FOREGROUND_SERVICE_SYSTEM_EXEMPTED"
+ android:minSdkVersion="34" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />