From 21240c5ca548b54e590dee1e78f97bba6f6a7566 Mon Sep 17 00:00:00 2001 From: Bill Lin Date: Tue, 17 May 2022 17:40:13 +0800 Subject: [PATCH 1/6] Add quickpickup sensor to config.xml Test: manual enable AOD and verify quick pick up gesture Bug: 232717890 Change-Id: I5ae6f871168368e351a64a9f4337c83d14f4ecca --- cheetah/overlay/frameworks/base/core/res/res/values/config.xml | 3 +++ panther/overlay/frameworks/base/core/res/res/values/config.xml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/cheetah/overlay/frameworks/base/core/res/res/values/config.xml b/cheetah/overlay/frameworks/base/core/res/res/values/config.xml index ccdac8d..9913b4c 100644 --- a/cheetah/overlay/frameworks/base/core/res/res/values/config.xml +++ b/cheetah/overlay/frameworks/base/core/res/res/values/config.xml @@ -175,6 +175,9 @@ com.google.sensor.long_press + + com.google.sensor.quick_pickup + diff --git a/panther/overlay/frameworks/base/core/res/res/values/config.xml b/panther/overlay/frameworks/base/core/res/res/values/config.xml index fc8a647..a72fb95 100644 --- a/panther/overlay/frameworks/base/core/res/res/values/config.xml +++ b/panther/overlay/frameworks/base/core/res/res/values/config.xml @@ -176,6 +176,9 @@ com.google.sensor.long_press + + com.google.sensor.quick_pickup + From bb799dac2549f8358ffa7b68f507e81d8ea6985d Mon Sep 17 00:00:00 2001 From: George Chang Date: Fri, 20 May 2022 01:54:04 +0800 Subject: [PATCH 2/6] Reset ST54K eSE every time at boot Bug: 232204531 Test: check eSE reset process starts at boot Change-Id: I874a3d5dbf50167aa02e57362dd2cd8a4a79cfe2 --- conf/init.pantah.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/init.pantah.rc b/conf/init.pantah.rc index 2b1408d..ac43e1a 100644 --- a/conf/init.pantah.rc +++ b/conf/init.pantah.rc @@ -4,6 +4,7 @@ on init # NFC streset tool name setprop persist.vendor.nfc.streset libstreset21 setprop persist.vendor.se.streset libstreset21 + setprop persist.vendor.se.reset needed on init && property:ro.vendor.factory=1 import /vendor/etc/init/hw/init.factory.rc From 9170bc5507be1963cc39108407d42d3f5f5a9caa Mon Sep 17 00:00:00 2001 From: jonerlin Date: Fri, 1 Apr 2022 07:08:49 +0800 Subject: [PATCH 3/6] Add IBluetoothExt interface and hci_inject tool in user debug build Bug: 228943442 Test: manually Change-Id: Ib3ca868ce4d3eebe7c9a5f9e33ceab3f9a9b9a41 --- bluetooth/manifest_bluetooth.xml | 9 +++++++++ device-cheetah.mk | 4 ++++ device-panther.mk | 4 ++++ 3 files changed, 17 insertions(+) diff --git a/bluetooth/manifest_bluetooth.xml b/bluetooth/manifest_bluetooth.xml index 1747d8b..64238c7 100644 --- a/bluetooth/manifest_bluetooth.xml +++ b/bluetooth/manifest_bluetooth.xml @@ -26,6 +26,15 @@ default + + hardware.google.bluetooth.ext + hwbinder + 1.0 + + IBluetoothExt + default + + hardware.google.bluetooth.ccc hwbinder diff --git a/device-cheetah.mk b/device-cheetah.mk index fbe7c50..cbef8d5 100644 --- a/device-cheetah.mk +++ b/device-cheetah.mk @@ -137,6 +137,10 @@ PRODUCT_PACKAGES += \ libspatialaudio \ librondo +# Bluetooth hci_inject test tool +PRODUCT_PACKAGES_DEBUG += \ + hci_inject + # Keymaster HAL #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service diff --git a/device-panther.mk b/device-panther.mk index 171146b..b286f59 100644 --- a/device-panther.mk +++ b/device-panther.mk @@ -125,6 +125,10 @@ PRODUCT_PACKAGES += \ libspatialaudio \ librondo +# Bluetooth hci_inject test tool +PRODUCT_PACKAGES_DEBUG += \ + hci_inject + # Keymaster HAL #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service From 9890703eea1261f29464d1fe061c88fd0cc6db26 Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Fri, 20 May 2022 10:18:55 +0000 Subject: [PATCH 4/6] Boost foreground group when app launch To improve app launch time. Bug: 233236422 Test: build pass Change-Id: I308aaf3133136b13fd71cdc3a60a1665e3483654 --- powerhint-cheetah-a0.json | 15 +++++++++++++++ powerhint-cheetah.json | 15 +++++++++++++++ powerhint-cloudripper.json | 15 +++++++++++++++ powerhint-panther-a0.json | 15 +++++++++++++++ powerhint-panther.json | 15 +++++++++++++++ powerhint-ravenclaw.json | 15 +++++++++++++++ 6 files changed, 90 insertions(+) diff --git a/powerhint-cheetah-a0.json b/powerhint-cheetah-a0.json index 51cc1ef..79ef6ff 100644 --- a/powerhint-cheetah-a0.json +++ b/powerhint-cheetah-a0.json @@ -143,6 +143,15 @@ ], "ResetOnInit": true }, + { + "Name": "FGUClampBoost", + "Path": "/proc/vendor_sched/fg_uclamp_min", + "Values": [ + "159", + "0" + ], + "ResetOnInit": true + }, { "Name": "SFUClampBoost", "Path": "/proc/vendor_sched/sf_uclamp_min", @@ -555,6 +564,12 @@ "Duration": 5000, "Value": "553" }, + { + "PowerHint": "LAUNCH", + "Node": "FGUClampBoost", + "Duration": 5000, + "Value": "159" + }, { "PowerHint": "LAUNCH", "Node": "MemFreq", diff --git a/powerhint-cheetah.json b/powerhint-cheetah.json index 5af78dd..7ee374d 100644 --- a/powerhint-cheetah.json +++ b/powerhint-cheetah.json @@ -143,6 +143,15 @@ ], "ResetOnInit": true }, + { + "Name": "FGUClampBoost", + "Path": "/proc/vendor_sched/fg_uclamp_min", + "Values": [ + "159", + "0" + ], + "ResetOnInit": true + }, { "Name": "SFUClampBoost", "Path": "/proc/vendor_sched/sf_uclamp_min", @@ -555,6 +564,12 @@ "Duration": 5000, "Value": "553" }, + { + "PowerHint": "LAUNCH", + "Node": "FGUClampBoost", + "Duration": 5000, + "Value": "159" + }, { "PowerHint": "LAUNCH", "Node": "MemFreq", diff --git a/powerhint-cloudripper.json b/powerhint-cloudripper.json index d6c1f96..ca9d2c7 100644 --- a/powerhint-cloudripper.json +++ b/powerhint-cloudripper.json @@ -132,6 +132,15 @@ "DefaultIndex": 0, "ResetOnInit": true }, + { + "Name": "FGUClampBoost", + "Path": "/proc/vendor_sched/fg_uclamp_min", + "Values": [ + "159", + "0" + ], + "ResetOnInit": true + }, { "Name": "CDPreferIdle", "Path": "/proc/vendor_sched/cam_prefer_idle", @@ -399,6 +408,12 @@ "Duration": 5000, "Value": "553" }, + { + "PowerHint": "LAUNCH", + "Node": "FGUClampBoost", + "Duration": 5000, + "Value": "159" + }, { "PowerHint": "LAUNCH", "Node": "MemFreq", diff --git a/powerhint-panther-a0.json b/powerhint-panther-a0.json index d1e52c4..6e6d422 100644 --- a/powerhint-panther-a0.json +++ b/powerhint-panther-a0.json @@ -143,6 +143,15 @@ ], "ResetOnInit": true }, + { + "Name": "FGUClampBoost", + "Path": "/proc/vendor_sched/fg_uclamp_min", + "Values": [ + "159", + "0" + ], + "ResetOnInit": true + }, { "Name": "SFUClampBoost", "Path": "/proc/vendor_sched/sf_uclamp_min", @@ -544,6 +553,12 @@ "Duration": 5000, "Value": "553" }, + { + "PowerHint": "LAUNCH", + "Node": "FGUClampBoost", + "Duration": 5000, + "Value": "159" + }, { "PowerHint": "LAUNCH", "Node": "MemFreq", diff --git a/powerhint-panther.json b/powerhint-panther.json index 77aba7e..c933957 100644 --- a/powerhint-panther.json +++ b/powerhint-panther.json @@ -143,6 +143,15 @@ ], "ResetOnInit": true }, + { + "Name": "FGUClampBoost", + "Path": "/proc/vendor_sched/fg_uclamp_min", + "Values": [ + "159", + "0" + ], + "ResetOnInit": true + }, { "Name": "SFUClampBoost", "Path": "/proc/vendor_sched/sf_uclamp_min", @@ -544,6 +553,12 @@ "Duration": 5000, "Value": "553" }, + { + "PowerHint": "LAUNCH", + "Node": "FGUClampBoost", + "Duration": 5000, + "Value": "159" + }, { "PowerHint": "LAUNCH", "Node": "MemFreq", diff --git a/powerhint-ravenclaw.json b/powerhint-ravenclaw.json index 2cd08a8..cdbea42 100644 --- a/powerhint-ravenclaw.json +++ b/powerhint-ravenclaw.json @@ -132,6 +132,15 @@ "DefaultIndex": 0, "ResetOnInit": true }, + { + "Name": "FGUClampBoost", + "Path": "/proc/vendor_sched/fg_uclamp_min", + "Values": [ + "159", + "0" + ], + "ResetOnInit": true + }, { "Name": "CDPreferIdle", "Path": "/proc/vendor_sched/cam_prefer_idle", @@ -399,6 +408,12 @@ "Duration": 5000, "Value": "553" }, + { + "PowerHint": "LAUNCH", + "Node": "FGUClampBoost", + "Duration": 5000, + "Value": "159" + }, { "PowerHint": "LAUNCH", "Node": "MemFreq", From a51ef227dc3607e869d36f4841dc4b06ba68632d Mon Sep 17 00:00:00 2001 From: chungkai Date: Fri, 20 May 2022 05:16:36 +0000 Subject: [PATCH 5/6] powerhal: add uclamp_threshold and reduce_prefer_idle node we need disable uclamp_threshold and reduce_prefer_idle under launch scenarios. Bug: 232593932 Test: build pass Signed-off-by: chungkai Change-Id: I4b1f1fa04ee7c89f25500df74db49ad2fb67b2cb --- powerhint-cheetah.json | 30 ++++++++++++++++++++++++++++++ powerhint-panther.json | 30 ++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/powerhint-cheetah.json b/powerhint-cheetah.json index 7ee374d..4138867 100644 --- a/powerhint-cheetah.json +++ b/powerhint-cheetah.json @@ -112,6 +112,24 @@ ], "ResetOnInit": true }, + { + "Name": "UClampThreshold", + "Path": "/proc/vendor_sched/uclamp_threshold", + "Values": [ + "0", + "8" + ], + "ResetOnInit": true + }, + { + "Name": "ReduceRreferIdle", + "Path": "/proc/vendor_sched/reduce_prefer_idle", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "Name": "CPUUtilThreshold", "Path": "/proc/vendor_sched/util_threshold", @@ -517,6 +535,18 @@ "Duration": 5000, "Value": "85" }, + { + "PowerHint": "LAUNCH", + "Node": "UClampThreshold", + "Duration": 5000, + "Value": "0" + }, + { + "PowerHint": "LAUNCH", + "Node": "ReduceRreferIdle", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "LAUNCH_120FPS", "Node": "SFUClampBoost", diff --git a/powerhint-panther.json b/powerhint-panther.json index c933957..4fe9966 100644 --- a/powerhint-panther.json +++ b/powerhint-panther.json @@ -112,6 +112,24 @@ ], "ResetOnInit": true }, + { + "Name": "UClampThreshold", + "Path": "/proc/vendor_sched/uclamp_threshold", + "Values": [ + "0", + "8" + ], + "ResetOnInit": true + }, + { + "Name": "ReduceRreferIdle", + "Path": "/proc/vendor_sched/reduce_prefer_idle", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "Name": "CPUUtilThreshold", "Path": "/proc/vendor_sched/util_threshold", @@ -517,6 +535,18 @@ "Duration": 5000, "Value": "85" }, + { + "PowerHint": "LAUNCH", + "Node": "UClampThreshold", + "Duration": 5000, + "Value": "0" + }, + { + "PowerHint": "LAUNCH", + "Node": "ReduceRreferIdle", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "LAUNCH", "Node": "FGPreferIdle", From 6d769090c08cee2044b4697d715157d7d67bb6f1 Mon Sep 17 00:00:00 2001 From: Sayanna Chandula Date: Fri, 13 May 2022 00:02:23 +0000 Subject: [PATCH 6/6] thermal: update virtual coefficients per v0.6 Update C10 virtual coefficients as per v0.6. No changes for P10 Bug: 232303785 Test: Build and boot on device Signed-off-by: Sayanna Chandula Change-Id: I2662aba527265d67acb1f5237e550eff75347ca8 --- thermal_info_config_cheetah.json | 10 +++++----- thermal_info_config_panther.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/thermal_info_config_cheetah.json b/thermal_info_config_cheetah.json index ad42911..ccd10b7 100644 --- a/thermal_info_config_cheetah.json +++ b/thermal_info_config_cheetah.json @@ -62,8 +62,8 @@ "VirtualSensor":true, "Formula":"WEIGHTED_AVG", "Combination":["gnss_tcxo_therm", "disp_therm"], - "Coefficient":[0.6, 0.4], - "Offset":-200, + "Coefficient":[0.550, 0.450], + "Offset":-1000, "Multiplier":0.001 }, { @@ -84,8 +84,8 @@ "VirtualSensor":true, "Formula":"WEIGHTED_AVG", "Combination":["quiet_therm","usb_pwr_therm2"], - "Coefficient":[1.1, -0.1], - "Offset":-900, + "Coefficient":[0.9, 0.1], + "Offset":-1200, "Multiplier":0.001 }, { @@ -124,7 +124,7 @@ { "Name":"VIRTUAL-SKIN", "Type":"SKIN", - "Version":"0.5", + "Version":"0.6", "VirtualSensor":true, "TriggerSensor":"quiet_therm", "Formula":"MAXIMUM", diff --git a/thermal_info_config_panther.json b/thermal_info_config_panther.json index 4719c03..03f9bd3 100644 --- a/thermal_info_config_panther.json +++ b/thermal_info_config_panther.json @@ -124,7 +124,7 @@ { "Name":"VIRTUAL-SKIN", "Type":"SKIN", - "Version":"0.5", + "Version":"0.6", "VirtualSensor":true, "TriggerSensor":"quiet_therm", "Formula":"MAXIMUM",