[PR #1987] [CLOSED] fix: fix Android 14 foreground service crash for VPN services #2621

Closed
opened 2026-10-15 04:03:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-client/pull/1987
Author: @eclecticBelletrist
Created: 11/13/2025
Status: ❌ Closed

Base: dev ← Head: claude/fix-android14-foreground-service-011CV5x9RDbNy8cpMi6ihSHq


📝 Commits (1)

  • a95134c fix: fix Android 14 foreground service crash for VPN services

📊 Changes

2 files changed (+6 additions, -6 deletions)

View changed files

📝 client/android/AndroidManifest.xml (+4 -4)
📝 client/android/src/org/amnezia/vpn/AmneziaVpnService.kt (+2 -2)

📄 Description

Replace FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTED with FOREGROUND_SERVICE_TYPE_SPECIAL_USE to fix InvalidForegroundServiceTypeException on Android 14 (SDK 34).

Changes:

  • Update AmneziaVpnService.kt to use FOREGROUND_SERVICE_TYPE_SPECIAL_USE for Android 14+
  • Update AndroidManifest.xml permission from FOREGROUND_SERVICE_SYSTEM_EXEMPTED to FOREGROUND_SERVICE_SPECIAL_USE
  • Change foregroundServiceType from "systemExempted" to "specialUse" for all VPN services (AwgService, OpenVpnService, XrayService)

Fixes crash on Samsung A33 Android 14 when starting VPN services.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amnezia-client/pull/1987 **Author:** [@eclecticBelletrist](https://github.com/eclecticBelletrist) **Created:** 11/13/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `claude/fix-android14-foreground-service-011CV5x9RDbNy8cpMi6ihSHq` --- ### 📝 Commits (1) - [`a95134c`](https://github.com/amnezia-vpn/amnezia-client/commit/a95134c800c8dc1611ec672ec65ce1e9daf535ea) fix: fix Android 14 foreground service crash for VPN services ### 📊 Changes **2 files changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `client/android/AndroidManifest.xml` (+4 -4) 📝 `client/android/src/org/amnezia/vpn/AmneziaVpnService.kt` (+2 -2) </details> ### 📄 Description Replace FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTED with FOREGROUND_SERVICE_TYPE_SPECIAL_USE to fix InvalidForegroundServiceTypeException on Android 14 (SDK 34). Changes: - Update AmneziaVpnService.kt to use FOREGROUND_SERVICE_TYPE_SPECIAL_USE for Android 14+ - Update AndroidManifest.xml permission from FOREGROUND_SERVICE_SYSTEM_EXEMPTED to FOREGROUND_SERVICE_SPECIAL_USE - Change foregroundServiceType from "systemExempted" to "specialUse" for all VPN services (AwgService, OpenVpnService, XrayService) Fixes crash on Samsung A33 Android 14 when starting VPN services. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-15 04:03:31 +07:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#2621
No description provided.