cec: add rpi hal implementation

* TODO: Convert to AIDL.
This commit is contained in:
Konsta
2025-02-04 20:18:32 +02:00
parent 9b0ddfd25d
commit 07e066812c
17 changed files with 207 additions and 170 deletions

1
sepolicy/device.te Normal file
View File

@@ -0,0 +1 @@
type cec_device, dev_type;

View File

@@ -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

View File

@@ -0,0 +1 @@
allow hal_tv_cec_default cec_device:chr_file rw_file_perms;