mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
Merge "Enable binderized Thermal HAL."
This commit is contained in:
committed by
Android (Google) Code Review
commit
c37e2c4107
10
manifest.xml
10
manifest.xml
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
4
sepolicy/hal_thermal_default.te
Normal file
4
sepolicy/hal_thermal_default.te
Normal 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 };
|
||||
Reference in New Issue
Block a user