From f0ec6612237e389b17f32d19df6300e9e289e8fe Mon Sep 17 00:00:00 2001 From: Zane Schepke Date: Thu, 21 Dec 2023 12:17:03 -0500 Subject: [PATCH] fix: android 14 foreground permissions Closes #71 --- .github/workflows/android.yml | 2 +- app/src/main/AndroidManifest.xml | 15 +++++++++------ .../service/foreground/WireGuardTunnelService.kt | 8 +++++++- buildSrc/src/main/kotlin/Constants.kt | 4 ++-- .../metadata/android/en-US/changelogs/32500.txt | 2 ++ 5 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 fastlane/metadata/android/en-US/changelogs/32500.txt diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 6f928bd..b3ba25f 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -70,7 +70,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: # fix hardcode changelog file name - body_path: ${{ github.workspace }}/fastlane/metadata/android/en-US/changelogs/32400.txt + body_path: ${{ github.workspace }}/fastlane/metadata/android/en-US/changelogs/32500.txt tag_name: ${{ github.ref_name }} name: Release ${{ github.ref_name }} draft: false diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d01d137..bd4e55e 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -20,9 +20,8 @@ + - - @@ -46,6 +45,7 @@ + tools:targetApi="tiramisu"> @@ -119,7 +121,8 @@ android:enabled="true" android:stopWithTask="false" android:persistent="true" - android:foregroundServiceType="systemExempted" + android:foregroundServiceType="systemExempted|specialUse" + tools:node="merge" android:exported="false">