cec: add rpi hal implementation
* TODO: Convert to AIDL.
This commit is contained in:
1
sepolicy/device.te
Normal file
1
sepolicy/device.te
Normal file
@@ -0,0 +1 @@
|
||||
type cec_device, dev_type;
|
@@ -2,6 +2,11 @@
|
||||
/sys/class/rfkill/rfkill[0-9]/state u:object_r:sysfs_bluetooth_writable:s0
|
||||
/vendor/bin/hw/android\.hardware\.bluetooth-service\.rpi u:object_r:hal_bluetooth_default_exec:s0
|
||||
|
||||
# CEC
|
||||
/dev/cec0 u:object_r:cec_device:s0
|
||||
/dev/cec1 u:object_r:cec_device:s0
|
||||
/vendor/bin/hw/android\.hardware\.tv\.cec@1\.0-service\.rpi u:object_r:hal_tv_cec_default_exec:s0
|
||||
|
||||
# DRM
|
||||
/vendor/bin/hw/android\.hardware\.drm-service\.clearkey u:object_r:hal_drm_clearkey_exec:s0
|
||||
/vendor/bin/hw/android\.hardware\.drm-service\.widevine(.*)? u:object_r:hal_drm_widevine_exec:s0
|
||||
|
1
sepolicy/hal_tv_cec_default.te
Normal file
1
sepolicy/hal_tv_cec_default.te
Normal file
@@ -0,0 +1 @@
|
||||
allow hal_tv_cec_default cec_device:chr_file rw_file_perms;
|
Reference in New Issue
Block a user