audio: add audio HAL parameter parser and its sepolicy
- pack the parameter parser service into the image - add sepolicy for the service audio-hal-parserservice Bug: 274433842 Test: manual test; make -j128 Change-Id: Ia47da38060a99cf32da5db60cef7e4a067dd0f24
This commit is contained in:
parent
bbd4e9e18b
commit
4cc0efc9a1
@ -2,7 +2,8 @@ DEVICE_MANIFEST_FILE += device/google/gs-common/audio/aidl/manifest.xml
|
|||||||
|
|
||||||
# Audio HALs
|
# Audio HALs
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.audio.service-aidl.aoc
|
android.hardware.audio.service-aidl.aoc \
|
||||||
|
vendor.google.whitechapel.audio.hal.parserservice \
|
||||||
|
|
||||||
# AIDL software effects. These are the effects supporting in all projects.
|
# AIDL software effects. These are the effects supporting in all projects.
|
||||||
# For the project-specific effects, such as haptic generator, please add them
|
# For the project-specific effects, such as haptic generator, please add them
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
# Audio Hal AIDL Service for Aoc
|
# Audio Hal AIDL Service for Aoc
|
||||||
/vendor/bin/hw/android\.hardware\.audio\.service-aidl\.aoc u:object_r:hal_audio_default_exec:s0
|
/vendor/bin/hw/android\.hardware\.audio\.service-aidl\.aoc u:object_r:hal_audio_default_exec:s0
|
||||||
|
/system_ext/bin/hw/vendor\.google\.whitechapel\.audio\.hal\.parserservice u:object_r:hal_audio_parameter_parser_exec:s0
|
||||||
|
14
audio/sepolicy/aidl/parser_service.te
Normal file
14
audio/sepolicy/aidl/parser_service.te
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Define a parameter parser service
|
||||||
|
type hal_audio_parameter_parser, coredomain, domain;
|
||||||
|
type hal_audio_parameter_parser_exec, system_file_type, file_type, exec_type;
|
||||||
|
init_daemon_domain(hal_audio_parameter_parser)
|
||||||
|
|
||||||
|
# The server will serve a binder service.
|
||||||
|
binder_service(hal_audio_parameter_parser)
|
||||||
|
|
||||||
|
add_service(hal_audio_parameter_parser, hal_audio_parameter_parser_service);
|
||||||
|
|
||||||
|
binder_call(audioserver, hal_audio_parameter_parser)
|
||||||
|
binder_call(hal_audio_parameter_parser, servicemanager)
|
||||||
|
|
||||||
|
allow audioserver hal_audio_parameter_parser_service:service_manager find;
|
@ -1,2 +1,3 @@
|
|||||||
# Audio
|
# Audio
|
||||||
type hal_audio_ext_service, service_manager_type;
|
type hal_audio_ext_service, service_manager_type;
|
||||||
|
type hal_audio_parameter_parser_service, service_manager_type;
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
# Audio
|
# Audio
|
||||||
vendor.google.whitechapel.audio.extension.IAudioExtension/default u:object_r:hal_audio_ext_service:s0
|
vendor.google.whitechapel.audio.extension.IAudioExtension/default u:object_r:hal_audio_ext_service:s0
|
||||||
|
android.media.audio.IHalAdapterVendorExtension/default u:object_r:hal_audio_parameter_parser_service:s0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user