From 53387e66175938f8fccb5038b8189741196876ce Mon Sep 17 00:00:00 2001 From: AmitShilo Date: Fri, 20 Sep 2024 15:19:42 +0300 Subject: [PATCH] Implemented a microphone access service to handle background microphone usage in calls. Signed-off-by: AmitShilo --- .../src/main/res/values/strings.xml | 2 + vector/src/main/AndroidManifest.xml | 7 +++ .../app/core/services/CallAndroidService.kt | 4 ++ .../app/features/call/VectorCallActivity.kt | 29 ++++++++++ .../call/audio/MicrophoneAccessService.kt | 53 +++++++++++++++++++ .../notifications/NotificationUtils.kt | 13 +++++ 6 files changed, 108 insertions(+) create mode 100644 vector/src/main/java/im/vector/app/features/call/audio/MicrophoneAccessService.kt diff --git a/library/ui-strings/src/main/res/values/strings.xml b/library/ui-strings/src/main/res/values/strings.xml index ef02e525af..5bbb6351f7 100644 --- a/library/ui-strings/src/main/res/values/strings.xml +++ b/library/ui-strings/src/main/res/values/strings.xml @@ -652,6 +652,8 @@ Ending call… + Microphone in use + Information diff --git a/vector/src/main/AndroidManifest.xml b/vector/src/main/AndroidManifest.xml index d13037b4a9..2a92e54865 100644 --- a/vector/src/main/AndroidManifest.xml +++ b/vector/src/main/AndroidManifest.xml @@ -395,6 +395,13 @@ android:foregroundServiceType="mediaProjection" tools:targetApi="Q" /> + + +