diff --git a/conf/init.pantah.rc b/conf/init.pantah.rc index 697aca9..2b1408d 100644 --- a/conf/init.pantah.rc +++ b/conf/init.pantah.rc @@ -82,6 +82,12 @@ on property:persist.vendor.se.ese2.mode=ctsmode on init && property:ro.boot.hw.soc.rev=0 setprop vendor.powerhal.config powerhint-a0.json +on property:ro.boot.hardware.revision=PROTO1.0 + setprop vendor.thermal.config "thermal_info_config_proto.json" + +on property:ro.boot.hardware.revision=PROTO1.1 + setprop vendor.thermal.config "thermal_info_config_proto.json" + # Touch on property:vendor.device.modules.ready=1 chown system system /proc/focaltech_touch/Channel_Num diff --git a/device-cheetah.mk b/device-cheetah.mk index cbf2a9f..0a84055 100644 --- a/device-cheetah.mk +++ b/device-cheetah.mk @@ -110,7 +110,7 @@ DEVICE_MANIFEST_FILE += \ # Thermal Config PRODUCT_COPY_FILES += \ device/google/pantah/thermal_info_config_cheetah.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ - device/google/pantah/thermal_info_config_A0.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_A0.json + device/google/pantah/thermal_info_config_proto.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_proto.json # Power HAL config PRODUCT_COPY_FILES += \ diff --git a/device-cloudripper.mk b/device-cloudripper.mk index 72d6a7b..0356a70 100644 --- a/device-cloudripper.mk +++ b/device-cloudripper.mk @@ -80,7 +80,7 @@ DEVICE_MANIFEST_FILE += \ # Thermal Config PRODUCT_COPY_FILES += \ device/google/pantah/thermal_info_config_cloudripper.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ - device/google/pantah/thermal_info_config_A0.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_A0.json + device/google/pantah/thermal_info_config_proto.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_proto.json # Power HAL config PRODUCT_COPY_FILES += \ diff --git a/device-panther.mk b/device-panther.mk index fa17108..f390c44 100644 --- a/device-panther.mk +++ b/device-panther.mk @@ -98,7 +98,7 @@ DEVICE_MANIFEST_FILE += \ # Thermal Config PRODUCT_COPY_FILES += \ device/google/pantah/thermal_info_config_panther.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ - device/google/pantah/thermal_info_config_A0.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_A0.json + device/google/pantah/thermal_info_config_proto.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_proto.json # Power HAL config PRODUCT_COPY_FILES += \ diff --git a/device-ravenclaw.mk b/device-ravenclaw.mk index c922dc5..e4d9223 100644 --- a/device-ravenclaw.mk +++ b/device-ravenclaw.mk @@ -85,7 +85,7 @@ DEVICE_MANIFEST_FILE += \ # Thermal Config PRODUCT_COPY_FILES += \ device/google/pantah/thermal_info_config_ravenclaw.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ - device/google/pantah/thermal_info_config_A0.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_A0.json + device/google/pantah/thermal_info_config_proto.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_proto.json # Power HAL config PRODUCT_COPY_FILES += \ diff --git a/thermal_info_config_panther.json b/thermal_info_config_panther.json index f51b057..1c0ff89 100644 --- a/thermal_info_config_panther.json +++ b/thermal_info_config_panther.json @@ -107,7 +107,7 @@ "Formula":"WEIGHTED_AVG", "Combination":["qi_therm", "quiet_therm"], "Coefficient":[0.3, 0.7], - "Offset":-1400, + "Offset":-1400 }, { "Name":"VIRTUAL-QI-DISP", diff --git a/thermal_info_config_A0.json b/thermal_info_config_proto.json similarity index 100% rename from thermal_info_config_A0.json rename to thermal_info_config_proto.json