summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2014-10-01 16:02:05 -0700
committerJeff Sharkey <jsharkey@android.com>2014-10-01 16:26:49 -0700
commit270e1f4297995248b450afc9e6134da1bb7e368a (patch)
tree1f6ea93a484ecc6cff50dfb555ba83d47684de1f /data
parent51a400eb440c89fb06a47371bb7b026f00edb09c (diff)
downloadframeworks_base-270e1f4297995248b450afc9e6134da1bb7e368a.zip
frameworks_base-270e1f4297995248b450afc9e6134da1bb7e368a.tar.gz
frameworks_base-270e1f4297995248b450afc9e6134da1bb7e368a.tar.bz2
Give audio GID to MANAGE_VOICE_KEYPHRASES apps.
Some system apps doing hotword training need low-level access to audio hardware, beyond what the existing HAL offers. For now, give them the audio GID. Bug: 17763721 Change-Id: I8025c3abacae13a6ffec4e10e4976a67ab505bdf
Diffstat (limited to 'data')
-rw-r--r--data/etc/platform.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/data/etc/platform.xml b/data/etc/platform.xml
index 91f5896..d3869b8 100644
--- a/data/etc/platform.xml
+++ b/data/etc/platform.xml
@@ -113,6 +113,12 @@
<group gid="loop_radio" />
</permission>
+ <!-- Hotword training apps sometimes need a GID to talk with low-level
+ hardware; give them audio for now until full HAL support is added. -->
+ <permission name="android.permission.MANAGE_VOICE_KEYPHRASES">
+ <group gid="audio" />
+ </permission>
+
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->