diff options
author | Jasmine Cha <chajasmine@google.com> | 2023-03-13 09:41:44 +0800 |
---|---|---|
committer | Jasmine Cha <chajasmine@google.com> | 2023-03-13 10:59:44 +0800 |
commit | 6cd390e2cf4ea2a38fc2a995395813c3f9963c8c (patch) | |
tree | 5f67f24160ceecdc8655f100db1c2dc2bad9ce00 /audio | |
parent | 1d9d2b9c7987271f43826520c771d4e30aa49f4b (diff) |
audio: add policy for rild to get vendor audio propery
- rild has different sepolicy for audio hal by type of service, which is
hidl or aidl. Read property before querying service in rild can avoid
avc denied presubmit test.
Bug: 206738075
Test: build pass with hidl/aidl audio service
Change-Id: I2616028fb3a6029646340fc3282e51a5f02b3f7f
Signed-off-by: Jasmine Cha <chajasmine@google.com>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/aidl.mk | 3 | ||||
-rw-r--r-- | audio/sepolicy/common/property_contexts | 1 | ||||
-rw-r--r-- | audio/sepolicy/common/rild.te | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/audio/aidl.mk b/audio/aidl.mk index 1044148..ae64e13 100644 --- a/audio/aidl.mk +++ b/audio/aidl.mk @@ -9,3 +9,6 @@ BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/audio/sepolicy/aidl include device/google/gs-common/audio/common.mk DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs-common/audio/aidl/device_framework_matrix_product.xml + +PRODUCT_PROPERTY_OVERRIDES += \ + vendor.audio_hal.aidl.enable=true diff --git a/audio/sepolicy/common/property_contexts b/audio/sepolicy/common/property_contexts index aa981f1..1749ac8 100644 --- a/audio/sepolicy/common/property_contexts +++ b/audio/sepolicy/common/property_contexts @@ -8,3 +8,4 @@ vendor.audiodump.output.dir u:object_r:vendor_audio_prop:s0 vendor.audiodump.encode.disable u:object_r:vendor_audio_prop:s0 vendor.audiodump.log.cca.updated u:object_r:vendor_audio_prop:s0 vendor.audiodump.cca.config u:object_r:vendor_audio_prop:s0 +vendor.audio_hal.aidl.enable u:object_r:vendor_audio_prop:s0 diff --git a/audio/sepolicy/common/rild.te b/audio/sepolicy/common/rild.te new file mode 100644 index 0000000..fe86848 --- /dev/null +++ b/audio/sepolicy/common/rild.te @@ -0,0 +1 @@ +get_prop(rild, vendor_audio_prop); |