Merge "Enable binderized Thermal HAL."

This commit is contained in:
TreeHugger Robot
2017-04-11 08:09:32 +00:00
committed by Android (Google) Code Review
3 changed files with 15 additions and 0 deletions

View File

@@ -185,4 +185,14 @@
<instance>drm</instance>
</interface>
</hal>
<hal>
<name>android.hardware.thermal</name>
<transport>hwbinder</transport>
<impl level="generic"></impl>
<version>1.0</version>
<interface>
<name>IThermal</name>
<instance>default</instance>
</interface>
</hal>
</manifest>

View File

@@ -101,6 +101,7 @@
/dev/block/sd[bc]1? u:object_r:xbl_block_device:s0
# files in sysfs
/sys/class/thermal(/.*)? u:object_r:sysfs_thermal:s0
/sys/class/uio(/.*)? u:object_r:sysfs_uio:s0
/sys/class/devfreq(/.*)? u:object_r:sysfs_msm_subsys:s0
/sys/class/rfkill(/.*)? u:object_r:sysfs_bluetooth_writable:s0

View File

@@ -0,0 +1,4 @@
allow hal_thermal_default sysfs_thermal:dir { open read search };
allow hal_thermal_default sysfs_thermal:file { getattr open read };
allow hal_thermal_default sysfs_thermal:lnk_file read;
allow hal_thermal_default proc_stat:file { getattr open read };