diff --git a/lito.mk b/lito.mk index d787388..4d0320d 100644 --- a/lito.mk +++ b/lito.mk @@ -414,8 +414,14 @@ PRODUCT_BOOT_JARS += \ telephony-ext # Thermal HAL +SOONG_CONFIG_NAMESPACES += thermal_hal_feature +SOONG_CONFIG_thermal_hal_feature += \ + pid \ + +SOONG_CONFIG_thermal_hal_feature_pid ?= apply_1_0 PRODUCT_PACKAGES += \ - android.hardware.thermal@2.0-service.mock + android.hardware.thermal@2.0-service.pixel \ + thermal_symlinks PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/thermal_info_config.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index bb58357..689b9f0 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -89,7 +89,7 @@ # Thermal /vendor/bin/mi_thermald u:object_r:mi_thermald_exec:s0 /data/vendor/thermal(/.*)? u:object_r:thermal_data_file:s0 -/vendor/bin/hw/android\.hardware\.thermal@2\.0-service\.mock u:object_r:hal_thermal_default_exec:s0 +/vendor/bin/hw/android\.hardware\.thermal@2\.0-service\.pixel u:object_r:hal_thermal_default_exec:s0 /vendor/bin/thermal_symlinks u:object_r:init-thermal-symlinks-sh_exec:s0 /dev/thermal(/.*)? u:object_r:thermal_link_device:s0