sepolicy: Use BOARD_VENDOR_SEPOLICY_DIRS am: 974f5d850b
am: bd3ed8b86d
Change-Id: Ide1ec0186adb1a3ea34bc42cec76a8f6d756b417
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 7c168c7..7718460 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -23,19 +23,13 @@
BOARD_BOOTIMAGE_PARTITION_SIZE := 41943040
BOARD_AVB_ENABLE := true
+BOARD_EXT4_SHARE_DUP_BLOCKS := true
# sepolicy
BOARD_VENDOR_SEPOLICY_DIRS += device/google/taimen/sepolicy
-ifeq (,$(filter-out taimen_gcc, $(TARGET_PRODUCT)))
-# if TARGET_PRODUCT == taimen_gcc
-BOARD_VENDOR_KERNEL_MODULES += \
- device/google/wahoo-kernel/gcc/touch_core_base.ko \
- device/google/wahoo-kernel/gcc/ftm4.ko \
- device/google/wahoo-kernel/gcc/sw49408.ko \
- device/google/wahoo-kernel/gcc/lge_battery.ko \
- device/google/wahoo-kernel/gcc/wlan.ko
-else ifeq (,$(filter-out taimen_kasan, $(TARGET_PRODUCT)))
+# Kernel modules
+ifeq (,$(filter-out taimen_kasan, $(TARGET_PRODUCT)))
# if TARGET_PRODUCT == taimen_kasan
BOARD_VENDOR_KERNEL_MODULES += \
device/google/wahoo-kernel/kasan/touch_core_base.ko \
@@ -43,14 +37,6 @@
device/google/wahoo-kernel/kasan/sw49408.ko \
device/google/wahoo-kernel/kasan/lge_battery.ko \
device/google/wahoo-kernel/kasan/wlan.ko
-else ifeq (,$(filter-out taimen_kcfi, $(TARGET_PRODUCT)))
-# if TARGET_PRODUCT == taimen_kcfi
-BOARD_VENDOR_KERNEL_MODULES += \
- device/google/wahoo-kernel/kcfi/touch_core_base.ko \
- device/google/wahoo-kernel/kcfi/ftm4.ko \
- device/google/wahoo-kernel/kcfi/sw49408.ko \
- device/google/wahoo-kernel/kcfi/lge_battery.ko \
- device/google/wahoo-kernel/kcfi/wlan.ko
else ifeq (,$(filter-out taimen_kernel_debug_memory, $(TARGET_PRODUCT)))
# if TARGET == taimen_kernel_debug_memory
BOARD_VENDOR_KERNEL_MODULES += \
diff --git a/WCNSS_qcom_cfg.ini b/WCNSS_qcom_cfg.ini
index 9f945f1..71c184c 100644
--- a/WCNSS_qcom_cfg.ini
+++ b/WCNSS_qcom_cfg.ini
@@ -663,6 +663,9 @@
oce_wan_score_idx11_to_8=0
oce_enable_rssi_assoc_reject=0
+#Timer waiting for interface up from the upper layer
+gInterfaceChangeWait=1000
+
END
# Note: Configuration parser would not read anything past the END marker
diff --git a/audio_platform_info_tavil.xml b/audio_platform_info_tavil.xml
index f877f24..29dd509 100644
--- a/audio_platform_info_tavil.xml
+++ b/audio_platform_info_tavil.xml
@@ -103,18 +103,24 @@
<app uc_type="PCM_CAPTURE" mode="default" bit_width="24" id="69940" max_rate="96000" />
<app uc_type="PCM_CAPTURE" mode="voip" bit_width="16" id="69945" max_rate="48000" />
</app_types>
+ <!-- Mandatory microphone characteristics include: device_id, type, -->
+ <!-- address, location, group, index_in_the_group, directionality, -->
+ <!-- num_frequency_responses, frequencies and responses. -->
+ <!-- Optional microphone characteristics include: Sensitivity, max_spl, -->
+ <!-- min_spl, orientation and geometric_location. If missing they will -->
+ <!-- be populated as unknown. -->
<microphone_characteristics>
- <microphone valid_mask="31" device_id="builtin_mic_1" type="AUDIO_DEVICE_IN_BUILTIN_MIC" address="bottom" location="AUDIO_MICROPHONE_LOCATION_MAINBODY"
+ <microphone device_id="builtin_mic_1" type="AUDIO_DEVICE_IN_BUILTIN_MIC" address="bottom" location="AUDIO_MICROPHONE_LOCATION_MAINBODY"
group="0" index_in_the_group="0" directionality="AUDIO_MICROPHONE_DIRECTIONALITY_OMNI" num_frequency_responses="93"
frequencies="100.00 106.00 112.00 118.00 125.00 132.00 140.00 150.00 160.00 170.00 180.00 190.00 200.00 212.00 224.00 236.00 250.00 265.00 280.00 300.00 315.00 335.00 355.00 375.00 400.00 425.00 450.00 475.00 500.00 530.00 560.00 600.00 630.00 670.00 710.00 750.00 800.00 850.00 900.00 950.00 1000.00 1060.00 1120.00 1180.00 1250.00 1320.00 1400.00 1500.00 1600.00 1700.00 1800.00 1900.00 2000.00 2120.00 2240.00 2360.00 2500.00 2650.00 2800.00 3000.00 3150.00 3350.00 3550.00 3750.00 4000.00 4250.00 4500.00 4750.00 5000.00 5300.00 5600.00 6000.00 6300.00 6700.00 7100.00 7500.00 8000.00 8500.00 9000.00 9500.00 10000.00 10600.00 11200.00 11800.00 12500.00 13200.00 14000.00 15000.00 16000.00 17000.00 18000.00 19000.00 20000.00"
responses="-0.98 -0.95 -0.89 -0.85 -0.81 -0.79 -0.77 -0.74 -0.71 -0.68 -0.66 -0.66 -0.63 -0.60 -0.57 -0.54 -0.53 -0.50 -0.50 -0.48 -0.46 -0.46 -0.41 -0.38 -0.33 -0.30 -0.34 -0.31 -0.29 -0.26 -0.23 -0.19 -0.17 -0.14 -0.11 -0.08 -0.05 -0.03 0.00 0.01 0.00 0.03 0.03 0.08 0.12 0.16 0.18 0.19 0.30 0.39 0.49 0.56 0.63 0.82 0.83 0.84 0.83 0.93 0.99 1.24 1.50 1.76 2.00 2.05 2.36 2.63 2.71 2.73 3.00 3.12 3.28 4.61 5.23 7.94 7.00 7.88 8.87 9.95 11.41 12.67 13.87 17.63 17.87 18.83 23.27 27.86 38.70 36.74 31.66 25.61 27.23 19.68 16.12"
sensitivity="-37.0" max_spl="132.5" min_spl="28.5" orientation="0.0 0.0 1.0" geometric_location="0.02635 0.00454 0.00794" />
- <microphone valid_mask="31" device_id="builtin_mic_2" type="AUDIO_DEVICE_IN_BACK_MIC" address="back" location="AUDIO_MICROPHONE_LOCATION_MAINBODY"
+ <microphone device_id="builtin_mic_2" type="AUDIO_DEVICE_IN_BACK_MIC" address="back" location="AUDIO_MICROPHONE_LOCATION_MAINBODY"
group="0" index_in_the_group="1" directionality="AUDIO_MICROPHONE_DIRECTIONALITY_OMNI" num_frequency_responses="93"
frequencies="100.00 106.00 112.00 118.00 125.00 132.00 140.00 150.00 160.00 170.00 180.00 190.00 200.00 212.00 224.00 236.00 250.00 265.00 280.00 300.00 315.00 335.00 355.00 375.00 400.00 425.00 450.00 475.00 500.00 530.00 560.00 600.00 630.00 670.00 710.00 750.00 800.00 850.00 900.00 950.00 1000.00 1060.00 1120.00 1180.00 1250.00 1320.00 1400.00 1500.00 1600.00 1700.00 1800.00 1900.00 2000.00 2120.00 2240.00 2360.00 2500.00 2650.00 2800.00 3000.00 3150.00 3350.00 3550.00 3750.00 4000.00 4250.00 4500.00 4750.00 5000.00 5300.00 5600.00 6000.00 6300.00 6700.00 7100.00 7500.00 8000.00 8500.00 9000.00 9500.00 10000.00 10600.00 11200.00 11800.00 12500.00 13200.00 14000.00 15000.00 16000.00 17000.00 18000.00 19000.00 20000.00"
responses="-1.17 -1.13 -1.09 -1.06 -1.02 -0.98 -0.96 -0.94 -0.91 -0.87 -0.84 -0.82 -0.79 -0.78 -0.76 -0.75 -0.72 -0.70 -0.68 -0.66 -0.63 -0.60 -0.58 -0.55 -0.53 -0.53 -0.49 -0.46 -0.43 -0.41 -0.37 -0.33 -0.30 -0.27 -0.24 -0.21 -0.16 -0.12 -0.07 -0.02 0.00 0.06 0.09 0.12 0.17 0.24 0.25 0.25 0.35 0.45 0.56 0.66 0.78 0.96 0.98 1.08 1.26 1.49 1.67 1.93 2.04 2.28 2.47 2.65 2.86 3.42 3.93 4.54 5.03 5.59 6.40 7.59 8.72 10.83 10.43 13.91 18.52 25.40 22.48 16.63 13.18 10.53 8.41 5.85 3.78 3.68 3.19 2.93 0.59 2.93 2.62 1.44 3.01"
sensitivity="-37.0" max_spl="132.5" min_spl="28.5" orientation="0.0 1.0 0.0" geometric_location="0.04974 0.15736 0.00426" />
- <microphone valid_mask="31" device_id="builtin_mic_3" type="AUDIO_DEVICE_IN_BUILTIN_MIC" address="top" location="AUDIO_MICROPHONE_LOCATION_MAINBODY"
+ <microphone device_id="builtin_mic_3" type="AUDIO_DEVICE_IN_BUILTIN_MIC" address="top" location="AUDIO_MICROPHONE_LOCATION_MAINBODY"
group="0" index_in_the_group="2" directionality="AUDIO_MICROPHONE_DIRECTIONALITY_OMNI" num_frequency_responses="93"
frequencies="100.00 106.00 112.00 118.00 125.00 132.00 140.00 150.00 160.00 170.00 180.00 190.00 200.00 212.00 224.00 236.00 250.00 265.00 280.00 300.00 315.00 335.00 355.00 375.00 400.00 425.00 450.00 475.00 500.00 530.00 560.00 600.00 630.00 670.00 710.00 750.00 800.00 850.00 900.00 950.00 1000.00 1060.00 1120.00 1180.00 1250.00 1320.00 1400.00 1500.00 1600.00 1700.00 1800.00 1900.00 2000.00 2120.00 2240.00 2360.00 2500.00 2650.00 2800.00 3000.00 3150.00 3350.00 3550.00 3750.00 4000.00 4250.00 4500.00 4750.00 5000.00 5300.00 5600.00 6000.00 6300.00 6700.00 7100.00 7500.00 8000.00 8500.00 9000.00 9500.00 10000.00 10600.00 11200.00 11800.00 12500.00 13200.00 14000.00 15000.00 16000.00 17000.00 18000.00 19000.00 20000.00"
responses="-0.95 -0.91 -0.87 -0.84 -0.79 -0.77 -0.76 -0.75 -0.71 -0.67 -0.65 -0.63 -0.61 -0.61 -0.59 -0.56 -0.56 -0.53 -0.51 -0.50 -0.49 -0.46 -0.45 -0.41 -0.41 -0.37 -0.33 -0.32 -0.30 -0.28 -0.24 -0.23 -0.20 -0.19 -0.15 -0.15 -0.12 -0.09 -0.04 -0.01 0.00 0.02 0.05 0.11 0.14 0.19 0.23 0.31 0.44 0.52 0.63 0.69 0.75 0.84 1.22 1.19 1.13 1.20 1.27 1.36 1.40 1.56 1.65 1.88 1.99 2.11 2.33 2.54 2.89 3.15 3.35 4.08 4.99 5.38 5.05 5.54 6.44 6.66 10.40 8.75 8.47 9.10 8.62 16.96 14.69 16.88 19.24 25.51 29.41 42.32 31.65 33.96 25.48"
diff --git a/device.mk b/device.mk
index f3a4787..d730ebd 100644
--- a/device.mk
+++ b/device.mk
@@ -14,6 +14,9 @@
# limitations under the License.
#
+# Installs gsi keys into ramdisk, to boot a GSI with verified boot.
+$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_keys.mk)
+
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := 560dpi
PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi
@@ -56,9 +59,17 @@
device/google/taimen/nfc/libnfc-nxp.taimen.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf
PRODUCT_COPY_FILES += \
+ device/google/taimen/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
+
+PRODUCT_COPY_FILES += \
device/google/taimen/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf \
device/google/taimen/thermal-engine-vr.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-vr.conf
+# Thermal HAL
+PRODUCT_COPY_FILES += \
+ device/google/taimen/thermal_info_config.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
+ device/google/taimen/thermal_info_config_evt.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_evt.json
+
# Audio
PRODUCT_COPY_FILES += \
device/google/taimen/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil_taimen.xml \
@@ -132,7 +143,10 @@
# Early phase offset for SurfaceFlinger (b/75985430)
PRODUCT_PROPERTY_OVERRIDES += \
- debug.sf.early_phase_offset_ns=1000000
+ debug.sf.early_phase_offset_ns=1500000
PRODUCT_PROPERTY_OVERRIDES += \
- debug.sf.early_gl_phase_offset_ns=1000000
-
+ debug.sf.early_app_phase_offset_ns=500000
+PRODUCT_PROPERTY_OVERRIDES += \
+ debug.sf.early_gl_phase_offset_ns=1500000
+PRODUCT_PROPERTY_OVERRIDES += \
+ debug.sf.early_gl_app_phase_offset_ns=15000000
diff --git a/init-taimen.rc b/init-taimen.rc
index e80d49f..4a70d9e 100644
--- a/init-taimen.rc
+++ b/init-taimen.rc
@@ -46,3 +46,9 @@
on property:persist.vendor.charge.start.level=* && property:sys.all.modules.ready=1
write /sys/module/lge_battery/parameters/charge_start_level ${persist.vendor.charge.start.level}
+
+on late-init && property:ro.boot.revision=rev_a
+ setprop vendor.thermal.config thermal_info_config_evt.json
+
+on late-init && property:ro.boot.revision=rev_b
+ setprop vendor.thermal.config thermal_info_config_evt.json
diff --git a/overlay/frameworks/base/core/res/res/values/dimens.xml b/overlay/frameworks/base/core/res/res/values/dimens.xml
index 87a455b..95fb558 100755
--- a/overlay/frameworks/base/core/res/res/values/dimens.xml
+++ b/overlay/frameworks/base/core/res/res/values/dimens.xml
@@ -20,4 +20,5 @@
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height_portrait">28dp</dimen>
+ <dimen name="rounded_corner_radius">91px</dimen>
</resources>
diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
index 3239d56..5caf344 100644
--- a/overlay/frameworks/base/core/res/res/xml/power_profile.xml
+++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
@@ -151,6 +151,8 @@
<value>212.147</value> <!-- 2457 MHz CPU speed -->
</array>
+ <!-- Additional power used when screen is ambient mode -->
+ <item name="ambient.on">19</item>
<!-- Additional power used when screen is turned on at minimum brightness -->
<item name="screen.on">152.118</item>
<!-- Additional power used when screen is at maximum brightness, compared to
diff --git a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
new file mode 100644
index 0000000..79aec49
--- /dev/null
+++ b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (c) 2019, The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+<resources>
+ <!-- Default for Settings.Global.APPLY_RAMPING_RINGER -->
+ <bool name="def_apply_ramping_ringer">true</bool>
+</resources>
diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml
index 1ade9bd..5088be4 100644
--- a/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml
+++ b/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml
@@ -16,6 +16,5 @@
*/
-->
<resources>
- <dimen name="rounded_corner_radius">26dp</dimen>
<dimen name="rounded_corner_content_padding">8dp</dimen>
</resources>
diff --git a/powerhint.json b/powerhint.json
new file mode 100644
index 0000000..3e4a282
--- /dev/null
+++ b/powerhint.json
@@ -0,0 +1,532 @@
+{
+ "Nodes": [
+ {
+ "Name": "CPULittleClusterMaxFreq",
+ "Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq",
+ "Values": [
+ "1900800",
+ "1555200",
+ "1478400",
+ "1248000"
+ ],
+ "DefaultIndex": 0,
+ "ResetOnInit": true
+ },
+ {
+ "Name": "CPULittleClusterMinFreq",
+ "Path": "/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq",
+ "Values": [
+ "1900800",
+ "1555200",
+ "1512000",
+ "1478400",
+ "1134000",
+ "0"
+ ],
+ "ResetOnInit": true
+ },
+ {
+ "Name": "CPUBigClusterMaxFreq",
+ "Path": "/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq",
+ "Values": [
+ "2457600",
+ "1958400",
+ "1574400",
+ "1344000",
+ "1267200"
+ ],
+ "DefaultIndex": 0,
+ "ResetOnInit": true
+ },
+ {
+ "Name": "CPUBigClusterMinFreq",
+ "Path": "/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq",
+ "Values": [
+ "2457600",
+ "1574400",
+ "1420800",
+ "1344000",
+ "1132800",
+ "0"
+ ],
+ "ResetOnInit": true
+ },
+ {
+ "Name": "GPUMaxFreq",
+ "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/max_freq",
+ "Values": [
+ "342000000",
+ "414000000",
+ "515000000",
+ "710000000"
+ ],
+ "ResetOnInit": true
+ },
+ {
+ "Name": "GPUMinFreq",
+ "Path": "/sys/class/kgsl/kgsl-3d0/devfreq/min_freq",
+ "Values": [
+ "515000000",
+ "414000000",
+ "257000000"
+ ],
+ "ResetOnInit": true
+ },
+ {
+ "Name": "GPUBusMinFreq",
+ "Path": "/sys/class/devfreq/soc:qcom,gpubw/min_freq",
+ "Values": [
+ "11863",
+ "7759",
+ "0"
+ ],
+ "ResetOnInit": true
+ },
+ {
+ "Name": "TASchedtuneBoost",
+ "Path": "/dev/stune/top-app/schedtune.boost",
+ "Values": [
+ "50",
+ "10"
+ ],
+ "ResetOnInit": true
+ },
+ {
+ "Name": "CPUBWHystTriggerCount",
+ "Path": "/sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hyst_trigger_count",
+ "Values": [
+ "0",
+ "3"
+ ]
+ },
+ {
+ "Name": "CPUBWHistMemory",
+ "Path": "/sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hist_memory",
+ "Values": [
+ "0",
+ "20"
+ ]
+ },
+ {
+ "Name": "CPUBWHystLength",
+ "Path": "/sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hyst_length",
+ "Values": [
+ "0",
+ "10"
+ ]
+ },
+ {
+ "Name": "CPUBWMinFreq",
+ "Path": "/sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/min_freq",
+ "Values": [
+ "13763",
+ "5195",
+ "1525",
+ "762"
+ ],
+ "ResetOnInit": true
+ },
+ {
+ "Name": "PMQoSCpuDmaLatency",
+ "Path": "/dev/cpu_dma_latency",
+ "Values": [
+ "44",
+ "100"
+ ],
+ "HoldFd": true
+ },
+ {
+ "Name": "PowerHALMainState",
+ "Path": "vendor.powerhal.state",
+ "Values": [
+ "CAMERA_STREAMING",
+ "VR_SUSTAINED_PERFORMANCE",
+ "SUSTAINED_PERFORMANCE",
+ "VR_MODE",
+ ""
+ ],
+ "Type": "Property"
+ },
+ {
+ "Name": "PowerHALAudioState",
+ "Path": "vendor.powerhal.audio",
+ "Values": [
+ "AUDIO_LOW_LATENCY",
+ ""
+ ],
+ "Type": "Property"
+ },
+ {
+ "Name": "ThermalConfig",
+ "Path": "vendor.qcom.thermalcfg",
+ "Values": [
+ "/vendor/etc/thermal-engine-vr.conf",
+ "/vendor/etc/thermal-engine.conf"
+ ],
+ "Type": "Property",
+ "ResetOnInit": true
+ },
+ {
+ "Name": "PowerHALRenderingState",
+ "Path": "vendor.powerhal.rendering",
+ "Values": [
+ "EXPENSIVE_RENDERING",
+ ""
+ ],
+ "Type": "Property"
+ },
+ {
+ "Name": "FtmTouchMode",
+ "Path": "/sys/devices/virtual/input/ftm4_touch/vrmode",
+ "Values": [
+ "1",
+ "0"
+ ],
+ "ResetOnInit": true
+ }
+ ],
+ "Actions": [
+ {
+ "PowerHint": "SUSTAINED_PERFORMANCE",
+ "Node": "PowerHALMainState",
+ "Duration": 0,
+ "Value": "SUSTAINED_PERFORMANCE"
+ },
+ {
+ "PowerHint": "SUSTAINED_PERFORMANCE",
+ "Node": "CPUBigClusterMaxFreq",
+ "Duration": 0,
+ "Value": "1267200"
+ },
+ {
+ "PowerHint": "SUSTAINED_PERFORMANCE",
+ "Node": "CPULittleClusterMaxFreq",
+ "Duration": 0,
+ "Value": "1248000"
+ },
+ {
+ "PowerHint": "SUSTAINED_PERFORMANCE",
+ "Node": "GPUMaxFreq",
+ "Duration": 0,
+ "Value": "342000000"
+ },
+ {
+ "PowerHint": "VR_MODE",
+ "Node": "PowerHALMainState",
+ "Duration": 0,
+ "Value": "VR_MODE"
+ },
+ {
+ "PowerHint": "VR_MODE",
+ "Node": "ThermalConfig",
+ "Duration": 0,
+ "Value": "/vendor/etc/thermal-engine-vr.conf"
+ },
+ {
+ "PowerHint": "VR_MODE",
+ "Node": "CPUBigClusterMaxFreq",
+ "Duration": 0,
+ "Value": "1574400"
+ },
+ {
+ "PowerHint": "VR_MODE",
+ "Node": "CPUBigClusterMinFreq",
+ "Duration": 0,
+ "Value": "1574400"
+ },
+ {
+ "PowerHint": "VR_MODE",
+ "Node": "CPULittleClusterMaxFreq",
+ "Duration": 0,
+ "Value": "1555200"
+ },
+ {
+ "PowerHint": "VR_MODE",
+ "Node": "CPULittleClusterMinFreq",
+ "Duration": 0,
+ "Value": "1555200"
+ },
+ {
+ "PowerHint": "VR_MODE",
+ "Node": "GPUMaxFreq",
+ "Duration": 0,
+ "Value": "515000000"
+ },
+ {
+ "PowerHint": "VR_MODE",
+ "Node": "GPUMinFreq",
+ "Duration": 0,
+ "Value": "515000000"
+ },
+ {
+ "PowerHint": "VR_MODE",
+ "Node": "GPUBusMinFreq",
+ "Duration": 0,
+ "Value": "11863"
+ },
+ {
+ "PowerHint": "VR_MODE",
+ "Node": "FtmTouchMode",
+ "Duration": 0,
+ "Value": "1"
+ },
+ {
+ "PowerHint": "VR_SUSTAINED_PERFORMANCE",
+ "Node": "PowerHALMainState",
+ "Duration": 0,
+ "Value": "VR_MODE"
+ },
+ {
+ "PowerHint": "VR_SUSTAINED_PERFORMANCE",
+ "Node": "ThermalConfig",
+ "Duration": 0,
+ "Value": "/vendor/etc/thermal-engine-vr.conf"
+ },
+ {
+ "PowerHint": "VR_SUSTAINED_PERFORMANCE",
+ "Node": "CPUBigClusterMaxFreq",
+ "Duration": 0,
+ "Value": "1344000"
+ },
+ {
+ "PowerHint": "VR_SUSTAINED_PERFORMANCE",
+ "Node": "CPUBigClusterMinFreq",
+ "Duration": 0,
+ "Value": "1344000"
+ },
+ {
+ "PowerHint": "VR_SUSTAINED_PERFORMANCE",
+ "Node": "CPULittleClusterMaxFreq",
+ "Duration": 0,
+ "Value": "1478400"
+ },
+ {
+ "PowerHint": "VR_SUSTAINED_PERFORMANCE",
+ "Node": "CPULittleClusterMinFreq",
+ "Duration": 0,
+ "Value": "1478400"
+ },
+ {
+ "PowerHint": "VR_SUSTAINED_PERFORMANCE",
+ "Node": "GPUMaxFreq",
+ "Duration": 0,
+ "Value": "414000000"
+ },
+ {
+ "PowerHint": "VR_SUSTAINED_PERFORMANCE",
+ "Node": "GPUMinFreq",
+ "Duration": 0,
+ "Value": "414000000"
+ },
+ {
+ "PowerHint": "VR_SUSTAINED_PERFORMANCE",
+ "Node": "GPUBusMinFreq",
+ "Duration": 0,
+ "Value": "7759"
+ },
+ {
+ "PowerHint": "INTERACTION",
+ "Node": "CPUBigClusterMinFreq",
+ "Duration": 0,
+ "Value": "1132800"
+ },
+ {
+ "PowerHint": "INTERACTION",
+ "Node": "CPULittleClusterMinFreq",
+ "Duration": 0,
+ "Value": "1134000"
+ },
+ {
+ "PowerHint": "INTERACTION",
+ "Node": "TASchedtuneBoost",
+ "Duration": 0,
+ "Value": "50"
+ },
+ {
+ "PowerHint": "INTERACTION",
+ "Node": "CPUBWHystTriggerCount",
+ "Duration": 0,
+ "Value": "0"
+ },
+ {
+ "PowerHint": "INTERACTION",
+ "Node": "CPUBWHystLength",
+ "Duration": 0,
+ "Value": "0"
+ },
+ {
+ "PowerHint": "INTERACTION",
+ "Node": "CPUBWHistMemory",
+ "Duration": 0,
+ "Value": "0"
+ },
+ {
+ "PowerHint": "INTERACTION",
+ "Node": "CPUBWMinFreq",
+ "Duration": 0,
+ "Value": "5195"
+ },
+ {
+ "PowerHint": "LAUNCH",
+ "Node": "CPUBigClusterMaxFreq",
+ "Duration": 5000,
+ "Value": "2457600"
+ },
+ {
+ "PowerHint": "LAUNCH",
+ "Node": "CPUBigClusterMinFreq",
+ "Duration": 5000,
+ "Value": "2457600"
+ },
+ {
+ "PowerHint": "LAUNCH",
+ "Node": "CPULittleClusterMinFreq",
+ "Duration": 5000,
+ "Value": "1900800"
+ },
+ {
+ "PowerHint": "LAUNCH",
+ "Node": "PMQoSCpuDmaLatency",
+ "Duration": 5000,
+ "Value": "44"
+ },
+ {
+ "PowerHint": "LAUNCH",
+ "Node": "CPUBWHystTriggerCount",
+ "Duration": 5000,
+ "Value": "0"
+ },
+ {
+ "PowerHint": "LAUNCH",
+ "Node": "CPUBWHystLength",
+ "Duration": 5000,
+ "Value": "0"
+ },
+ {
+ "PowerHint": "LAUNCH",
+ "Node": "CPUBWHistMemory",
+ "Duration": 5000,
+ "Value": "0"
+ },
+ {
+ "PowerHint": "LAUNCH",
+ "Node": "CPUBWMinFreq",
+ "Duration": 5000,
+ "Value": "13763"
+ },
+ {
+ "PowerHint": "CAMERA_LAUNCH",
+ "Node": "CPUBigClusterMaxFreq",
+ "Duration": 1000,
+ "Value": "2457600"
+ },
+ {
+ "PowerHint": "CAMERA_LAUNCH",
+ "Node": "CPUBigClusterMinFreq",
+ "Duration": 1000,
+ "Value": "2457600"
+ },
+ {
+ "PowerHint": "CAMERA_LAUNCH",
+ "Node": "CPULittleClusterMinFreq",
+ "Duration": 1000,
+ "Value": "1900800"
+ },
+ {
+ "PowerHint": "CAMERA_LAUNCH",
+ "Node": "PMQoSCpuDmaLatency",
+ "Duration": 1000,
+ "Value": "44"
+ },
+ {
+ "PowerHint": "CAMERA_STREAMING",
+ "Node": "PowerHALMainState",
+ "Duration": 0,
+ "Value": "CAMERA_STREAMING"
+ },
+ {
+ "PowerHint": "CAMERA_STREAMING",
+ "Node": "CPUBigClusterMaxFreq",
+ "Duration": 0,
+ "Value": "1958400"
+ },
+ {
+ "PowerHint": "CAMERA_SHOT",
+ "Node": "CPUBigClusterMaxFreq",
+ "Duration": 1000,
+ "Value": "2457600"
+ },
+ {
+ "PowerHint": "CAMERA_SHOT",
+ "Node": "CPUBigClusterMinFreq",
+ "Duration": 1000,
+ "Value": "2457600"
+ },
+ {
+ "PowerHint": "CAMERA_SHOT",
+ "Node": "CPULittleClusterMinFreq",
+ "Duration": 1000,
+ "Value": "1900800"
+ },
+ {
+ "PowerHint": "CAMERA_SHOT",
+ "Node": "PMQoSCpuDmaLatency",
+ "Duration": 1000,
+ "Value": "44"
+ },
+ {
+ "PowerHint": "CAMERA_SHOT",
+ "Node": "CPUBWHystTriggerCount",
+ "Duration": 1000,
+ "Value": "0"
+ },
+ {
+ "PowerHint": "CAMERA_SHOT",
+ "Node": "CPUBWHystLength",
+ "Duration": 1000,
+ "Value": "0"
+ },
+ {
+ "PowerHint": "CAMERA_SHOT",
+ "Node": "CPUBWHistMemory",
+ "Duration": 1000,
+ "Value": "0"
+ },
+ {
+ "PowerHint": "CAMERA_SHOT",
+ "Node": "CPUBWMinFreq",
+ "Duration": 1000,
+ "Value": "13763"
+ },
+ {
+ "PowerHint": "AUDIO_STREAMING",
+ "Node": "CPUBigClusterMinFreq",
+ "Duration": 2000,
+ "Value": "1420800"
+ },
+ {
+ "PowerHint": "AUDIO_STREAMING",
+ "Node": "PMQoSCpuDmaLatency",
+ "Duration": 2000,
+ "Value": "44"
+ },
+ {
+ "PowerHint": "AUDIO_LOW_LATENCY",
+ "Node": "PowerHALAudioState",
+ "Duration": 0,
+ "Value": "AUDIO_LOW_LATENCY"
+ },
+ {
+ "PowerHint": "AUDIO_LOW_LATENCY",
+ "Node": "PMQoSCpuDmaLatency",
+ "Duration": 0,
+ "Value": "44"
+ },
+ {
+ "PowerHint": "EXPENSIVE_RENDERING",
+ "Node": "CPULittleClusterMinFreq",
+ "Duration": 0,
+ "Value": "0"
+ }
+ ]
+}
diff --git a/self-extractors/extract-lists.txt b/self-extractors/extract-lists.txt
index 099f866..4ec19ed 100644
--- a/self-extractors/extract-lists.txt
+++ b/self-extractors/extract-lists.txt
@@ -26,7 +26,6 @@
system/lib64/lib-imsvtextutils.so \
system/lib64/lib-imsvt.so \
system/lib64/lib-imsvtutils.so \
- system/lib64/libiperf.so \
system/lib64/librcc.so \
system/lib/com.qualcomm.qti.imsrtpservice@1.0.so \
system/lib/libdiag_system.so \
@@ -36,8 +35,6 @@
system/lib/lib-imsvtextutils.so \
system/lib/lib-imsvt.so \
system/lib/lib-imsvtutils.so \
- system/lib/libiperf.so \
system/lib/librcc.so \
- system/xbin/iperf3 \
"
;;
diff --git a/self-extractors/qcom/staging/device-partial.mk b/self-extractors/qcom/staging/device-partial.mk
index 0f2a6b0..48e5ec6 100644
--- a/self-extractors/qcom/staging/device-partial.mk
+++ b/self-extractors/qcom/staging/device-partial.mk
@@ -35,7 +35,6 @@
vendor/qcom/taimen/proprietary/lib64/lib-imsvtextutils.so:system/lib64/lib-imsvtextutils.so:qcom \
vendor/qcom/taimen/proprietary/lib64/lib-imsvt.so:system/lib64/lib-imsvt.so:qcom \
vendor/qcom/taimen/proprietary/lib64/lib-imsvtutils.so:system/lib64/lib-imsvtutils.so:qcom \
- vendor/qcom/taimen/proprietary/lib64/libiperf.so:system/lib64/libiperf.so:qcom \
vendor/qcom/taimen/proprietary/lib64/librcc.so:system/lib64/librcc.so:qcom \
vendor/qcom/taimen/proprietary/com.qualcomm.qti.imsrtpservice@1.0.so:system/lib/com.qualcomm.qti.imsrtpservice@1.0.so:qcom \
vendor/qcom/taimen/proprietary/libdiag_system.so:system/lib/libdiag_system.so:qcom \
@@ -45,6 +44,4 @@
vendor/qcom/taimen/proprietary/lib-imsvtextutils.so:system/lib/lib-imsvtextutils.so:qcom \
vendor/qcom/taimen/proprietary/lib-imsvt.so:system/lib/lib-imsvt.so:qcom \
vendor/qcom/taimen/proprietary/lib-imsvtutils.so:system/lib/lib-imsvtutils.so:qcom \
- vendor/qcom/taimen/proprietary/libiperf.so:system/lib/libiperf.so:qcom \
vendor/qcom/taimen/proprietary/librcc.so:system/lib/librcc.so:qcom \
- vendor/qcom/taimen/proprietary/iperf3:system/xbin/iperf3:qcom \
diff --git a/thermal-engine.conf b/thermal-engine.conf
index 80a0ffe..d88175e 100755
--- a/thermal-engine.conf
+++ b/thermal-engine.conf
@@ -70,8 +70,8 @@
algo_type monitor
sampling 1000
sensor bd_therm2
-thresholds 54000
-thresholds_clr 53000
+thresholds 56000
+thresholds_clr 55000
actions shutdown
action_info 1
@@ -137,8 +137,8 @@
algo_type monitor
sampling 1000
sensor bd_therm
-thresholds 66000
-thresholds_clr 65000
+thresholds 68000
+thresholds_clr 67000
actions shutdown
action_info 1
diff --git a/thermal_info_config.json b/thermal_info_config.json
new file mode 100644
index 0000000..087b7eb
--- /dev/null
+++ b/thermal_info_config.json
@@ -0,0 +1,214 @@
+{
+ "Sensors":[
+ {
+ "Name":"tsens_tz_sensor1",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor2",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor4",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor3",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor7",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor8",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor9",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor10",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor13",
+ "Type":"GPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"battery",
+ "Type":"BATTERY",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ "NAN",
+ "NAN",
+ "NAN",
+ 60.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.001
+ },
+ {
+ "Name":"usb_port_temp",
+ "Type":"USB_PORT",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ "NAN",
+ "NAN",
+ "70.0",
+ "NAN"
+ ],
+ "HotHysteresis":[
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 5.0,
+ 0.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1,
+ "Monitor":true
+ },
+ {
+ "Name":"bd_therm2",
+ "Type":"SKIN",
+ "HotThreshold":[
+ "NAN",
+ 38.0,
+ 45.0,
+ 48.0,
+ 50.0,
+ 52.0,
+ 54.0
+ ],
+ "HotHysteresis":[
+ 0.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0
+ ],
+ "VrThreshold":50.0,
+ "Multiplier":1.0,
+ "Monitor":true
+ }
+ ],
+ "CoolingDevices":[
+ {
+ "Name":"thermal-cpufreq-0",
+ "Type":"CPU"
+ },
+ {
+ "Name":"thermal-cpufreq-1",
+ "Type":"CPU"
+ }
+ ]
+}
diff --git a/thermal_info_config_evt.json b/thermal_info_config_evt.json
new file mode 100644
index 0000000..39671b8
--- /dev/null
+++ b/thermal_info_config_evt.json
@@ -0,0 +1,214 @@
+{
+ "Sensors":[
+ {
+ "Name":"tsens_tz_sensor1",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor2",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor4",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor3",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor7",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor8",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor9",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor10",
+ "Type":"CPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"tsens_tz_sensor13",
+ "Type":"GPU",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ 95.0,
+ "NAN",
+ "NAN",
+ 125.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1
+ },
+ {
+ "Name":"battery",
+ "Type":"BATTERY",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ "NAN",
+ "NAN",
+ "NAN",
+ 60.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.001
+ },
+ {
+ "Name":"usb_port_temp",
+ "Type":"USB_PORT",
+ "HotThreshold":[
+ "NAN",
+ "NAN",
+ "NAN",
+ "NAN",
+ "NAN",
+ "70.0",
+ "NAN"
+ ],
+ "HotHysteresis":[
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 5.0,
+ 0.0
+ ],
+ "VrThreshold":"NAN",
+ "Multiplier":0.1,
+ "Monitor":true
+ },
+ {
+ "Name":"bd_therm",
+ "Type":"SKIN",
+ "HotThreshold":[
+ "NAN",
+ 49.0,
+ 51.0,
+ 58.0,
+ 60.0,
+ 64.0,
+ 66.0
+ ],
+ "HotHysteresis":[
+ 0.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0
+ ],
+ "VrThreshold":62.0,
+ "Multiplier":1.0,
+ "Monitor":true
+ }
+ ],
+ "CoolingDevices":[
+ {
+ "Name":"thermal-cpufreq-0",
+ "Type":"CPU"
+ },
+ {
+ "Name":"thermal-cpufreq-1",
+ "Type":"CPU"
+ }
+ ]
+}