universal7885: sepolicy: Rename for aidl hals

This commit is contained in:
roynatech2544 2022-10-05 09:59:39 +00:00
commit 983a25b4d2
6 changed files with 20 additions and 17 deletions

View file

@ -9,8 +9,9 @@
/data/debug(/.*)? u:object_r:eklogger_data_file:s0
# SamsungParts
/system/bin/vendor\.eureka\.hardware\.parts@[0-9]\.[0-9]-service u:object_r:hal_parts_default_exec:s0
/system/bin/vendor\.eureka\.hardware\.parts-service u:object_r:hal_parts_default_exec:s0
# FMRadio
/system/bin/vendor\.eureka\.hardware\.fmradio@[0-9]\.[0-9]-service u:object_r:hal_fmradio_default_exec:s0
/system/bin/vendor\.eureka\.hardware\.fmradio-service u:object_r:hal_fmradio_default_exec:s0
/dev/radio0 u:object_r:fm_radio_device:s0

View file

@ -1,10 +1,11 @@
type hal_fmradio_default, domain, coredomain;
type hal_fmradio_default_exec, exec_type, file_type, system_file_type;
add_hwservice(hal_fmradio_default, hal_fmradio_hwservice);
add_service(hal_fmradio_default, hal_fmradio_service);
init_daemon_domain(hal_fmradio_default);
hwbinder_use(hal_fmradio_default);
get_prop(hal_fmradio_default, hwservicemanager_prop);
binder_use(hal_fmradio_default);
get_prop(hal_fmradio_default, servicemanager_prop);
allow hal_fmradio_default sysfs_fmradio_tune:file rw_file_perms;
allow hal_fmradio_default sysfs_fmradio_tune:dir search;

View file

@ -1,10 +1,11 @@
type hal_parts_default, domain, coredomain;
type hal_parts_default_exec, exec_type, file_type, system_file_type;
add_hwservice(hal_parts_default, hal_parts_hwservice);
type hal_parts_default_exec, exec_type, file_type, system_file_type;
add_hwservice(hal_parts_default, hal_parts_service);
init_daemon_domain(hal_parts_default);
hwbinder_use(hal_parts_default);
get_prop(hal_parts_default, hwservicemanager_prop);
binder_use(hal_parts_default);
get_prop(hal_parts_default, servicemanager_prop);
# Battery
allow hal_parts_default sysfs_sec_switch:dir { search };

View file

@ -1,2 +0,0 @@
type hal_parts_hwservice, hwservice_manager_type;
type hal_fmradio_hwservice, hwservice_manager_type;

View file

@ -0,0 +1,2 @@
type hal_parts_service, service_manager_type;
type hal_fmradio_service, service_manager_type;

View file

@ -1,8 +1,8 @@
# SamsungParts
vendor.eureka.hardware.parts::IBatteryStats u:object_r:hal_parts_hwservice:s0
vendor.eureka.hardware.parts::IFlashBrightness u:object_r:hal_parts_hwservice:s0
vendor.eureka.hardware.parts::IDisplayConfigs u:object_r:hal_parts_hwservice:s0
vendor.eureka.hardware.parts::ISwapOnData u:object_r:hal_parts_hwservice:s0
vendor.eureka.hardware.parts::ISmartCharge u:object_r:hal_parts_hwservice:s0
vendor.eureka.hardware.parts::IBatteryStats u:object_r:hal_parts_service:s0
vendor.eureka.hardware.parts::IFlashBrightness u:object_r:hal_parts_service:s0
vendor.eureka.hardware.parts::IDisplayConfigs u:object_r:hal_parts_service:s0
vendor.eureka.hardware.parts::ISwapOnData u:object_r:hal_parts_service:s0
vendor.eureka.hardware.parts::ISmartCharge u:object_r:hal_parts_service:s0
# FMRadio
vendor.eureka.hardware.fmradio::IFMRadio u:object_r:hal_fmradio_hwservice:s0
vendor.eureka.hardware.fmradio::IFMRadio u:object_r:hal_fmradio_service:s0