msm8953-common: Add DTV Support

- Add hidl to manifest
- Fix Sepolicy
- Add proper permissions for /dev/isdbt
This commit is contained in:
Jorge Lucas
2020-12-28 11:46:10 -03:00
committed by jeangraff30
parent 2478e765f5
commit d9313a152a
8 changed files with 33 additions and 0 deletions

View File

@@ -642,4 +642,13 @@
<instance>default</instance> <instance>default</instance>
</interface> </interface>
</hal> </hal>
<hal format="hidl">
<name>motorola.hardware.tv</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IDTVHW</name>
<instance>default</instance>
</interface>
</hal>
</manifest> </manifest>

View File

@@ -403,3 +403,6 @@ firmware_directories /vendor/firmware_mnt/image/
/sys/class/kgsl/kgsl-3d0 force_bus_on 0664 root system /sys/class/kgsl/kgsl-3d0 force_bus_on 0664 root system
/sys/class/kgsl/kgsl-3d0 force_clk_on 0664 root system /sys/class/kgsl/kgsl-3d0 force_clk_on 0664 root system
/sys/class/kgsl/kgsl-3d0 bus_split 0664 root system /sys/class/kgsl/kgsl-3d0 bus_split 0664 root system
#DTV
/dev/isdbt 0660 oem_5019 oem_5019

1
sepolicy/vendor/device.te vendored Normal file
View File

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

View File

@@ -74,3 +74,6 @@
# Homebutton # Homebutton
/sys/homebutton(/.*)? u:object_r:sysfs_homebutton:s0 /sys/homebutton(/.*)? u:object_r:sysfs_homebutton:s0
# DTV
/dev/isdbt u:object_r:isdbt_device:s0

View File

@@ -13,3 +13,5 @@ allow init fsg_firmware_file:filesystem getattr;
allow init vendor_data_file:file lock; allow init vendor_data_file:file lock;
allow init hal_audio_default:binder call; allow init hal_audio_default:binder call;
allow init platform_app:binder call; allow init platform_app:binder call;
allow init system_file:system module_load;

10
sepolicy/vendor/isdbt_app.te vendored Normal file
View File

@@ -0,0 +1,10 @@
type isdbt_app, domain, mlstrustedsubject;
app_domain(isdbt_app)
binder_use(isdbt_app)
allow isdbt_app isdbt_device:chr_file rw_file_perms;
allow isdbt_app media_rw_data_file:dir { rw_dir_perms create getattr rmdir search };
allow isdbt_app { accessibility_service activity_service appops_service connectivity_service content_service display_service graphicsstats_service input_method_service input_service location_service mount_service network_management_service radio_service registry_service surfaceflinger_service textservices_service uimode_service vibrator_service wifi_service audio_service audioserver_service media_router_service notification_service autofill_service mediametrics_service mediaserver_service media_session_service mediametrics_service batterystats_service power_service user_service }:service_manager find;
allow isdbt_app telecom_service:service_manager find;
allow isdbt_app activity_task_service:service_manager find;
allow isdbt_app gpu_service:service_manager find;
allow isdbt_app uri_grants_service:service_manager find;

View File

@@ -1,3 +1,6 @@
typeattribute platform_app mlstrustedsubject;
allow platform_app isdbt_device:chr_file rw_file_perms;
allow platform_app sysfs_kgsl:dir search; allow platform_app sysfs_kgsl:dir search;
allow platform_app sysfs_kgsl:file { getattr open read }; allow platform_app sysfs_kgsl:file { getattr open read };
allow platform_app sysfs_healthd:dir r_dir_perms; allow platform_app sysfs_healthd:dir r_dir_perms;

2
sepolicy/vendor/seapp_contexts vendored Normal file
View File

@@ -0,0 +1,2 @@
user=_app seinfo=platform name=com.motorola.dtv domain=isdbt_app type=app_data_file levelFrom=user
user=_app seinfo=platform name=com.motorola.dtvservice domain=isdbt_app type=app_data_file levelFrom=user