modularize hal_audio_default
Bug: 197585437 Test: boot with hal_audio_default initialized Change-Id: I90435ffa66d342ee5c96bcb872d2ebefe5b4ef7c
This commit is contained in:
parent
ee94f61357
commit
d9c4ed7b59
12 changed files with 46 additions and 48 deletions
30
aoc/hal_audio_default.te
Normal file
30
aoc/hal_audio_default.te
Normal file
|
@ -0,0 +1,30 @@
|
|||
vndbinder_use(hal_audio_default)
|
||||
hwbinder_use(hal_audio_default)
|
||||
|
||||
allow hal_audio_default audio_vendor_data_file:dir rw_dir_perms;
|
||||
allow hal_audio_default audio_vendor_data_file:file create_file_perms;
|
||||
|
||||
r_dir_file(hal_audio_default, aoc_audio_file);
|
||||
r_dir_file(hal_audio_default, mnt_vendor_file);
|
||||
r_dir_file(hal_audio_default, persist_audio_file);
|
||||
|
||||
allow hal_audio_default persist_file:dir search;
|
||||
allow hal_audio_default aoc_device:file rw_file_perms;
|
||||
allow hal_audio_default aoc_device:chr_file rw_file_perms;
|
||||
|
||||
allow hal_audio_default hal_audio_ext_hwservice:hwservice_manager { find add };
|
||||
|
||||
allow hal_audio_default amcs_device:file rw_file_perms;
|
||||
allow hal_audio_default amcs_device:chr_file rw_file_perms;
|
||||
|
||||
#allow access to DMABUF Heaps for AAudio API
|
||||
allow hal_audio_default dmabuf_heap_device:chr_file r_file_perms;
|
||||
|
||||
get_prop(hal_audio_default, vendor_audio_prop);
|
||||
|
||||
userdebug_or_eng(`
|
||||
allow hal_audio_default self:unix_stream_socket create_stream_socket_perms;
|
||||
allow hal_audio_default audio_vendor_data_file:sock_file { create unlink };
|
||||
')
|
||||
|
||||
wakelock_use(hal_audio_default);
|
Loading…
Add table
Add a link
Reference in a new issue