universal7885: aidl-support: Add audio route hal to fake audioserver uid

This commit is contained in:
roynatech2544 2022-10-16 21:12:11 +09:00
commit 4ef818a802
17 changed files with 231 additions and 37 deletions

View file

@ -13,5 +13,6 @@
# FMRadio
/system/bin/vendor\.eureka\.hardware\.fmradio-service u:object_r:hal_fmradio_default_exec:s0
/system/bin/vendor\.eureka\.hardware\.audio_route-service u:object_r:hal_audio_route_default_exec:s0
/dev/radio0 u:object_r:fm_radio_device:s0

View file

@ -0,0 +1,10 @@
type hal_audio_route_default, domain, coredomain;
type hal_audio_route_default_exec, exec_type, file_type, system_file_type;
add_service(hal_audio_route_default, hal_fmradio_service);
init_daemon_domain(hal_audio_route_default);
binder_use(hal_audio_route_default);
binder_call(hal_audio_route_default, audioserver)
binder_call(audioserver, hal_audio_route_default)

View file

@ -12,7 +12,3 @@ allow hal_fmradio_default sysfs_fmradio_tune:dir search;
allow hal_fmradio_default sysfs_virtual:dir search;
allow hal_fmradio_default fm_radio_device:chr_file { read write open ioctl };
allow hal_fmradio_default self:capability setuid;
binder_call(hal_fmradio_default, audioserver)
binder_call(audioserver, hal_fmradio_default)

View file

@ -8,3 +8,4 @@ vendor.eureka.hardware.parts.ISmartCharge/default u:object_r:hal_parts_service:s
# FMRadio
vendor.eureka.hardware.fmradio.IFMDevControl/default u:object_r:hal_fmradio_service:s0
vendor.eureka.hardware.fmradio.IFMDevControl/support u:object_r:hal_fmradio_service:s0
vendor.eureka.hardware.audio_route.IAudioRoute/default u:object_r:hal_audio_route_service:s0