diff --git a/universal7885-common/sepolicy/private/hal_fmradio_default.te b/universal7885-common/sepolicy/private/hal_fmradio_default.te index 25ed2f3..57d110f 100644 --- a/universal7885-common/sepolicy/private/hal_fmradio_default.te +++ b/universal7885-common/sepolicy/private/hal_fmradio_default.te @@ -5,7 +5,6 @@ add_service(hal_fmradio_default, hal_fmradio_service); init_daemon_domain(hal_fmradio_default); 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; diff --git a/universal7885-common/sepolicy/private/hal_parts_default.te b/universal7885-common/sepolicy/private/hal_parts_default.te index e9512bc..b075825 100644 --- a/universal7885-common/sepolicy/private/hal_parts_default.te +++ b/universal7885-common/sepolicy/private/hal_parts_default.te @@ -1,11 +1,10 @@ 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_service); +add_service(hal_parts_default, hal_parts_service); init_daemon_domain(hal_parts_default); binder_use(hal_parts_default); -get_prop(hal_parts_default, servicemanager_prop); # Battery allow hal_parts_default sysfs_sec_switch:dir { search }; diff --git a/universal7885-common/sepolicy/private/service_contexts b/universal7885-common/sepolicy/private/service_contexts index b06d61b..36d3a4b 100644 --- a/universal7885-common/sepolicy/private/service_contexts +++ b/universal7885-common/sepolicy/private/service_contexts @@ -4,5 +4,7 @@ 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_service:s0 +vendor.eureka.hardware.fmradio::IFMDevControl u:object_r:hal_fmradio_service:s0 +vendor.eureka.hardware.fmradio::IFMSysfsSupport u:object_r:hal_fmradio_service:s0