From b01ddc89582011328495dfd30a85efe58c5b441f Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 01:58:21 +0000 Subject: [PATCH] fix: use microphone foreground service type instead of phoneCall phoneCall type requires MANAGE_OWN_CALLS on SDK 34+, which needs the app to be a default dialer. microphone type only requires RECORD_AUDIO which is already granted via runtime permission. https://claude.ai/code/session_017hZm7yu7CzmcQgZGSaqSXS --- amethyst/src/main/AndroidManifest.xml | 4 ++-- .../amethyst/service/call/CallForegroundService.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/amethyst/src/main/AndroidManifest.xml b/amethyst/src/main/AndroidManifest.xml index e605b4576..dc94b6ed5 100644 --- a/amethyst/src/main/AndroidManifest.xml +++ b/amethyst/src/main/AndroidManifest.xml @@ -39,7 +39,7 @@ - + @@ -228,7 +228,7 @@ diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/call/CallForegroundService.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/call/CallForegroundService.kt index 7c58e9648..448b3fad3 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/call/CallForegroundService.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/call/CallForegroundService.kt @@ -62,7 +62,7 @@ class CallForegroundService : Service() { NOTIFICATION_ID, notification, if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) { - ServiceInfo.FOREGROUND_SERVICE_TYPE_PHONE_CALL + ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE } else { 0 },