From ea01db85ba34664175d94750d2b4056e35d3f52f Mon Sep 17 00:00:00 2001 From: neoyu Date: Mon, 11 Apr 2022 00:17:33 +0800 Subject: [PATCH 1/5] Add property to set initial svn as 1 Bug: 228742484 Test: manual Change-Id: I9c97d2280ac50a0121fafd19a07592b03fd7e439 --- device-cheetah.mk | 4 ++++ device-panther.mk | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/device-cheetah.mk b/device-cheetah.mk index cefd34e..ae89953 100644 --- a/device-cheetah.mk +++ b/device-cheetah.mk @@ -208,6 +208,10 @@ PRODUCT_PRODUCT_PROPERTIES += \ PRODUCT_VENDOR_PROPERTIES += \ vendor.zram.size=3g +# Increment the SVN for any official public releases +PRODUCT_VENDOR_PROPERTIES += \ + ro.vendor.build.svn=1 + # DCK properties based on target PRODUCT_PROPERTY_OVERRIDES += \ ro.gms.dck.eligible_wcc=2 diff --git a/device-panther.mk b/device-panther.mk index 075f5ea..568d862 100644 --- a/device-panther.mk +++ b/device-panther.mk @@ -200,6 +200,10 @@ PRODUCT_PRODUCT_PROPERTIES += \ PRODUCT_VENDOR_PROPERTIES += \ vendor.zram.size=3g +# Increment the SVN for any official public releases +PRODUCT_VENDOR_PROPERTIES += \ + ro.vendor.build.svn=1 + # DCK properties based on target PRODUCT_PROPERTY_OVERRIDES += \ ro.gms.dck.eligible_wcc=2 From e82a1a78c3acb21ababc6512db445df3b58ec96d Mon Sep 17 00:00:00 2001 From: Wayne Lin Date: Mon, 11 Apr 2022 15:32:20 +0800 Subject: [PATCH 2/5] gps: Update ExtL5Bias Bug: 227139460 Test: verify ExtL5Bias value pass Change-Id: I8a45f6c225181e9bc00d9ff784e35f3523e1d1f1 --- location/gps.xml.c10 | 2 +- location/gps.xml.p10 | 2 +- location/gps_user.xml.c10 | 2 +- location/gps_user.xml.p10 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/location/gps.xml.c10 b/location/gps.xml.c10 index 4d73818..b119e7f 100644 --- a/location/gps.xml.c10 +++ b/location/gps.xml.c10 @@ -69,7 +69,7 @@ MultiCarrRFMode="GL_MULTI_CARR_RF_MODE_L1_L5" MultiCarrLnaMask="L1_EXT_ON|L5_EXT_ON" RfType="GL_RF_4776_BRCM" - ExtL5Bias="13.0" + ExtL5Bias="20.1" WarmStandbyTimeout1Seconds="10" WarmStandbyTimeout2Seconds="15" diff --git a/location/gps.xml.p10 b/location/gps.xml.p10 index 634e21d..760d30b 100644 --- a/location/gps.xml.p10 +++ b/location/gps.xml.p10 @@ -69,7 +69,7 @@ MultiCarrRFMode="GL_MULTI_CARR_RF_MODE_L1_L5" MultiCarrLnaMask="L1_EXT_ON|L5_EXT_ON" RfType="GL_RF_4776_BRCM" - ExtL5Bias="13.0" + ExtL5Bias="21.2" WarmStandbyTimeout1Seconds="10" WarmStandbyTimeout2Seconds="15" diff --git a/location/gps_user.xml.c10 b/location/gps_user.xml.c10 index 7a60567..d9ca029 100644 --- a/location/gps_user.xml.c10 +++ b/location/gps_user.xml.c10 @@ -68,7 +68,7 @@ MultiCarrRFMode="GL_MULTI_CARR_RF_MODE_L1_L5" MultiCarrLnaMask="L1_EXT_ON|L5_EXT_ON" RfType="GL_RF_4776_BRCM" - ExtL5Bias="13.0" + ExtL5Bias="20.1" WarmStandbyTimeout1Seconds="10" WarmStandbyTimeout2Seconds="15" diff --git a/location/gps_user.xml.p10 b/location/gps_user.xml.p10 index 92526b5..53fe55c 100644 --- a/location/gps_user.xml.p10 +++ b/location/gps_user.xml.p10 @@ -68,7 +68,7 @@ MultiCarrRFMode="GL_MULTI_CARR_RF_MODE_L1_L5" MultiCarrLnaMask="L1_EXT_ON|L5_EXT_ON" RfType="GL_RF_4776_BRCM" - ExtL5Bias="13.0" + ExtL5Bias="21.2" WarmStandbyTimeout1Seconds="10" WarmStandbyTimeout2Seconds="15" From c681b24963724455756eac76679da56efa36637c Mon Sep 17 00:00:00 2001 From: Peter Liu Date: Fri, 8 Apr 2022 16:33:24 -0700 Subject: [PATCH 3/5] port target load hint to a0 powerhint Bug: 222570798 Change-Id: I5ea132fbb94d7b80a490656276a706b3b57d241a --- powerhint-cheetah-a0.json | 7 ++++--- powerhint-panther-a0.json | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/powerhint-cheetah-a0.json b/powerhint-cheetah-a0.json index 0dccf72..e105b3f 100644 --- a/powerhint-cheetah-a0.json +++ b/powerhint-cheetah-a0.json @@ -126,7 +126,8 @@ "Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load", "Values": [ "20 5 80", - "20 10 80" + "20 10 80", + "80 10 80" ], "ResetOnInit": true }, @@ -798,7 +799,7 @@ "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "MIFTargetLoad", "Duration": 0, - "Value": "20 10 80" + "Value": "80 10 80" }, { "PowerHint": "CAMERA_STREAMING_EXTREME", @@ -876,7 +877,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "MIFTargetLoad", "Duration": 0, - "Value": "20 10 80" + "Value": "80 10 80" }, { "PowerHint": "CAMERA_STREAMING_HIGH", diff --git a/powerhint-panther-a0.json b/powerhint-panther-a0.json index e79173c..6504058 100644 --- a/powerhint-panther-a0.json +++ b/powerhint-panther-a0.json @@ -126,7 +126,8 @@ "Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load", "Values": [ "20 5 80", - "20 10 80" + "20 10 80", + "80 10 80" ], "ResetOnInit": true }, @@ -786,7 +787,7 @@ "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "MIFTargetLoad", "Duration": 0, - "Value": "20 10 80" + "Value": "80 10 80" }, { "PowerHint": "CAMERA_STREAMING_EXTREME", @@ -864,7 +865,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "MIFTargetLoad", "Duration": 0, - "Value": "20 10 80" + "Value": "80 10 80" }, { "PowerHint": "CAMERA_STREAMING_HIGH", From 175bd53191590f3ef0d337aeb3e11cc3ff610259 Mon Sep 17 00:00:00 2001 From: Grace Chen Date: Wed, 6 Apr 2022 12:23:46 -0700 Subject: [PATCH 4/5] Enable read/write access to st33spi_state for euiccpixel_app Bug: 228508704 Test: Confirm can read/write st33spi_state Change-Id: Ia7a41d2785a84fdf2d99c09fb040e35733e0eda1 --- conf/init.pantah.rc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conf/init.pantah.rc b/conf/init.pantah.rc index 8827b03..069331f 100644 --- a/conf/init.pantah.rc +++ b/conf/init.pantah.rc @@ -50,6 +50,10 @@ on post-fs-data # Speaker amp permission chmod 644 /mnt/vendor/persist/audio/speaker.cal + # Allow secure_element group to read / write ST33 SPI state + chown secure_element secure_element /sys/class/st33spi/st33spi/st33spi_state + chmod 0660 /sys/class/st33spi/st33spi/st33spi_state + service wpa_supplicant /vendor/bin/hw/wpa_supplicant \ -O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1p2p_device=1 \ -m/vendor/etc/wifi/p2p_supplicant.conf \ @@ -93,4 +97,4 @@ on property:vendor.device.modules.ready=1 chown system system /proc/focaltech_touch/selftest/Scap_CB chown system system /proc/focaltech_touch/selftest/Scap_Rawdata chown system system /proc/focaltech_touch/selftest/Short - chown system system /proc/focaltech_touch/selftest/Strength \ No newline at end of file + chown system system /proc/focaltech_touch/selftest/Strength From 43ad58996b2590c341db7b4a030fb3d77fd8a6c2 Mon Sep 17 00:00:00 2001 From: George Lee Date: Mon, 11 Apr 2022 13:04:20 -0700 Subject: [PATCH 5/5] thermal: Remove 80% SOC monitoring Bug: 228808192 Test: Local test to verify no polling Signed-off-by: George Lee Change-Id: I6a0a0fa240e199a3ccf47138b3204679fd3f6eed --- thermal_info_config_cheetah.json | 4 +--- thermal_info_config_cloudripper.json | 16 ++++------------ thermal_info_config_panther.json | 4 +--- thermal_info_config_ravenclaw.json | 4 +--- 4 files changed, 7 insertions(+), 21 deletions(-) diff --git a/thermal_info_config_cheetah.json b/thermal_info_config_cheetah.json index c2df4a9..04530fa 100644 --- a/thermal_info_config_cheetah.json +++ b/thermal_info_config_cheetah.json @@ -598,7 +598,7 @@ "Type":"BCL_PERCENTAGE", "HotThreshold":[ "NAN", - 20, + "NAN", 80, "NAN", "NAN", @@ -607,8 +607,6 @@ ], "VrThreshold":"NAN", "Multiplier":1, - "PollingDelay":60000, - "PassiveDelay":7000, "Monitor":true }, { diff --git a/thermal_info_config_cloudripper.json b/thermal_info_config_cloudripper.json index c75ce64..cf069aa 100644 --- a/thermal_info_config_cloudripper.json +++ b/thermal_info_config_cloudripper.json @@ -142,22 +142,14 @@ "NAN", 80, "NAN", - 90, - 93, - 96, + "NAN", + "NAN", + "NAN", "NAN" ], "VrThreshold":"NAN", "Multiplier":1, - "Monitor":true, - "PollingDelay":300000, - "PassiveDelay":5000, - "BindedCdevInfo": [ - { - "CdevRequest": "thermal-cpufreq-2", - "LimitInfo": [0, 0, 0, 7, 7, 10, 10] - } - ] + "Monitor":true }, { "Name":"batoilo", diff --git a/thermal_info_config_panther.json b/thermal_info_config_panther.json index b64e11f..f698199 100644 --- a/thermal_info_config_panther.json +++ b/thermal_info_config_panther.json @@ -598,7 +598,7 @@ "Type":"BCL_PERCENTAGE", "HotThreshold":[ "NAN", - 20, + "NAN", 80, "NAN", "NAN", @@ -607,8 +607,6 @@ ], "VrThreshold":"NAN", "Multiplier":1, - "PollingDelay":60000, - "PassiveDelay":7000, "Monitor":true }, { diff --git a/thermal_info_config_ravenclaw.json b/thermal_info_config_ravenclaw.json index ba85ef8..85d91b7 100644 --- a/thermal_info_config_ravenclaw.json +++ b/thermal_info_config_ravenclaw.json @@ -140,7 +140,7 @@ "Type":"BCL_PERCENTAGE", "HotThreshold":[ "NAN", - 20, + "NAN", 80, "NAN", "NAN", @@ -149,8 +149,6 @@ ], "VrThreshold":"NAN", "Multiplier":1, - "PollingDelay":60000, - "PassiveDelay":7000, "Monitor":true }, {