mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 12:35:33 -04:00
universal7885: aidl-support: Add audio route hal to fake audioserver uid
This commit is contained in:
parent
0834ccd364
commit
4ef818a802
17 changed files with 231 additions and 37 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue