2017-01-11 00:54:25 +01:00
|
|
|
type hal_audio_default, domain;
|
2017-02-13 23:40:49 +01:00
|
|
|
hal_server_domain(hal_audio_default, hal_audio)
|
2016-12-13 21:17:09 +01:00
|
|
|
|
2017-04-10 22:03:28 +02:00
|
|
|
type hal_audio_default_exec, exec_type, vendor_file_type, file_type;
|
2016-12-13 21:17:09 +01:00
|
|
|
init_daemon_domain(hal_audio_default)
|
Mark all clients of Allocator HAL
This change associates all domains which are clients of Allocator HAL
with hal_allocator_client and the, required for all HAL client
domains, halclientdomain.
This enables this commit to remove the now unnecessary hwallocator_use
macro because its binder_call(..., hal_allocator_server) is covered by
binder_call(hal_allocator_client, hal_allocator_server) added in this
commit.
Unfortunately apps, except isolated app, are clients of Allocator HAL
as well. This makes it hard to use the hal_client_domain(...,
hal_allocator) macro because it translates into "typeattribute" which
currently does not support being provided with a set of types, such as
{ appdomain -isolated_app }. As a workaround, hopefully until
typeattribute is improved, this commit expresses the necessary
association operation in CIL. private/technical_debt.cil introduced by
this commit is appended into the platform policy CIL file, thus
ensuring that the hack has effect on the final monolithic policy.
P. S. This change also removes Allocator HAL access from isolated_app.
Isolated app shouldn't have access to this HAL anyway.
Test: Google Play Music plays back radios
Test: Google Camera records video with sound and that video is then
successfully played back with sound
Test: YouTube app plays back clips with sound
Test: YouTube in Chrome plays back clips with sound
Bug: 34170079
Change-Id: Id00bba6fde83e7cf04fb58bc1c353c2f66333f92
2017-03-21 22:28:53 +01:00
|
|
|
|
|
|
|
hal_client_domain(hal_audio_default, hal_allocator)
|
2017-03-25 00:07:35 +01:00
|
|
|
|
2018-09-14 19:49:00 +02:00
|
|
|
# allow audioserver to call hal_audio dump with its own fd to retrieve status
|
|
|
|
allow hal_audio_default audioserver:fifo_file write;
|