Skip to content

Commit

Permalink
Enable capture capabilities
Browse files Browse the repository at this point in the history
This patch adds permission of capture audio output,
which is required by echo-reference device to capture
output for looopback purpose.

Test Done:
-loopback verification with kitchen sink app.

Tracked-On: OAM-116907

Signed-off-by: sadhansx <[email protected]>
Signed-off-by: sgnanase <[email protected]>
  • Loading branch information
sadhan-intel committed Jan 12, 2025
1 parent 4f69d95 commit abbb51c
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
From 778d9230cc277b0b25bdfeec9177a197b46891b8 Mon Sep 17 00:00:00 2001
From: sadhansx <[email protected]>
Date: Sun, 12 Jan 2025 06:46:12 +0000
Subject: [PATCH] Enable capture capabilities

This patch adds permission of capture audio output,
which is required by echo-reference device to capture
output for looopback purpose.

Test Done:
-loopback verification with kitchen sink app

Tracked-On: OAM-116907
Signed-off-by: sadhansx <[email protected]>
Signed-off-by: sgnanase <[email protected]>
---
data/etc/privapp-permissions-platform.xml | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml
index 880f30c6cdc0..6580437b1e1c 100644
--- a/data/etc/privapp-permissions-platform.xml
+++ b/data/etc/privapp-permissions-platform.xml
@@ -25,6 +25,10 @@ applications that come with the platform
<permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
</privapp-permissions>

+ <privapp-permissions package="com.google.android.car.kitchensink">
+ <permission name="android.permission.CAPTURE_AUDIO_OUTPUT"/>
+ </privapp-permissions>
+
<privapp-permissions package="com.android.angle">
<permission name="android.permission.WRITE_SECURE_SETTINGS"/>
</privapp-permissions>
--
2.34.1

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From d131c47dee69e297fc6b762f1c57c4ab10873e28 Mon Sep 17 00:00:00 2001
From: sadhansx <[email protected]>
Date: Sun, 12 Jan 2025 06:52:55 +0000
Subject: [PATCH] In AndroidManifest.xml enable capture capabilities

This patch adds permission of capture audio output,
which is required by echo-reference device to capture
output for looopback purpose.

Test Done:
-loopback verification with kitchen sink app.

Tracked-On: OAM-116907
Signed-off-by: sadhansx <[email protected]>
Signed-off-by: sgnanase <[email protected]>
---
tests/EmbeddedKitchenSinkApp/AndroidManifest.xml | 1 +
1 file changed, 1 insertion(+)

diff --git a/tests/EmbeddedKitchenSinkApp/AndroidManifest.xml b/tests/EmbeddedKitchenSinkApp/AndroidManifest.xml
index 922e3f06aa..2bcdd0e554 100644
--- a/tests/EmbeddedKitchenSinkApp/AndroidManifest.xml
+++ b/tests/EmbeddedKitchenSinkApp/AndroidManifest.xml
@@ -139,6 +139,7 @@
<uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.RECORD_AUDIO" />
+ <uses-permission android:name="android.permission.CAPTURE_AUDIO_OUTPUT" />
<uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
<uses-permission android:name="android.permission.MODIFY_DAY_NIGHT_MODE"/>
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE"/>
--
2.34.1

0 comments on commit abbb51c

Please sign in to comment.