diff --git a/universal7885-common/sepolicy/vendor/device.te b/universal7885-common/sepolicy/vendor/device.te index d78cd1a..eef3891 100644 --- a/universal7885-common/sepolicy/vendor/device.te +++ b/universal7885-common/sepolicy/vendor/device.te @@ -5,6 +5,9 @@ type tz_user_device, dev_type; # /dev/m2m1shot_scaler0 type m2m1shot_device, dev_type; +# FM Radio +type fm_radio_device, dev_type; + # gps type gps_device, dev_type; diff --git a/universal7885-common/sepolicy/vendor/file_contexts b/universal7885-common/sepolicy/vendor/file_contexts index d9939a7..d46ab36 100644 --- a/universal7885-common/sepolicy/vendor/file_contexts +++ b/universal7885-common/sepolicy/vendor/file_contexts @@ -200,9 +200,6 @@ /data/camera(/.*)? u:object_r:camera_data_file:s0 #################################### -### CACHE -/cache/boot_log.txt u:object_r:boot_logcat_file:s0 - ### VENDOR /(vendor|system/vendor)/lib(64)?/hw/gralloc\.exynos7884B\.so u:object_r:same_process_hal_file:s0 /(vendor|system/vendor)/lib(64)?/hw/gralloc\.exynos7904\.so u:object_r:same_process_hal_file:s0 @@ -232,3 +229,10 @@ /(vendor|system/vendor)/bin/hw/vendor\.eureka\.hardware\.flashlight@1\.0-service u:object_r:hal_flashlight_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.eureka\.hardware\.gpu@1\.0-service u:object_r:hal_gpu_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.eureka\.security\.selinux@1\.0-service u:object_r:hal_selinux_default_exec:s0 + +/dev/radio0 u:object_r:fm_radio_device:s0 + +/vendor/bin/iof_vendor u:object_r:iof_vendor_exec:s0 +/vendor/bin/proxy_daemon u:object_r:proxy_daemon_exec:s0 +/vendor/bin/taadaemon u:object_r:taadaemon_exec:s0 + diff --git a/universal7885-common/sepolicy/vendor/iof_vendor.te b/universal7885-common/sepolicy/vendor/iof_vendor.te new file mode 100644 index 0000000..9b2921c --- /dev/null +++ b/universal7885-common/sepolicy/vendor/iof_vendor.te @@ -0,0 +1,4 @@ +type iof_vendor, domain; +type iof_vendor_exec, file_type, vendor_file_type, exec_type; +init_daemon_domain(iof_vendor) + diff --git a/universal7885-common/sepolicy/vendor/proxy_daemon.te b/universal7885-common/sepolicy/vendor/proxy_daemon.te new file mode 100644 index 0000000..7614751 --- /dev/null +++ b/universal7885-common/sepolicy/vendor/proxy_daemon.te @@ -0,0 +1,4 @@ +type proxy_daemon, domain; +type proxy_daemon_exec, file_type, vendor_file_type, exec_type; +init_daemon_domain(proxy_daemon) + diff --git a/universal7885-common/sepolicy/vendor/system_app.te b/universal7885-common/sepolicy/vendor/system_app.te index 1f547e7..2a4fa02 100644 --- a/universal7885-common/sepolicy/vendor/system_app.te +++ b/universal7885-common/sepolicy/vendor/system_app.te @@ -22,3 +22,7 @@ allow system_app hal_battery_default:binder call; allow system_app hal_flashlight_default:binder call; allow system_app hal_selinux_default:binder call; allow system_app hal_gpu_default:binder call; + +allow system_app fm_radio_device:chr_file { read write open ioctl }; + + diff --git a/universal7885-common/sepolicy/vendor/taadaemon.te b/universal7885-common/sepolicy/vendor/taadaemon.te new file mode 100644 index 0000000..4852bfc --- /dev/null +++ b/universal7885-common/sepolicy/vendor/taadaemon.te @@ -0,0 +1,4 @@ +type taadaemon, domain; +type taadaemon_exec, file_type, vendor_file_type, exec_type; +init_daemon_domain(taadaemon) +