From 099addb63dcf384a73cc5030f65d5a2a69fc08f0 Mon Sep 17 00:00:00 2001 From: SianyiHuang Date: Fri, 6 May 2022 12:55:20 +0800 Subject: [PATCH 1/4] Config: Update Auto Brightness debounce and ambient threshold setting Bug: 233283720 Test: adb shell dumpsys display and check debounce and ambien threshold seting Change-Id: I36cc5cf257869c37304c6525d1965a61da5bd037 --- .../base/core/res/res/values/config.xml | 153 +++++++++-------- .../base/core/res/res/values/config.xml | 154 ++++++++++-------- 2 files changed, 175 insertions(+), 132 deletions(-) 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 6119f7a..7407121 100644 --- a/cheetah/overlay/frameworks/base/core/res/res/values/config.xml +++ b/cheetah/overlay/frameworks/base/core/res/res/values/config.xml @@ -159,7 +159,7 @@ when adapting to brighter or darker environments. This parameter controls how quickly brightness changes occur in response to an observed change in light level that exceeds the hysteresis threshold. --> - 2000 + 1000 4000 64 - - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 20 - 30 - 40 - 50 - 60 - 70 - 80 - 90 - 100 - + + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 20 + 30 + 40 + 50 + 60 + 70 + 80 + 90 + 100 + 200 + 300 + 400 + 500 + 1000 + 2000 + 3000 + 4000 + - - 11373 - 5000 - 4333 - 3666 - 3000 - 2760 - 2520 - 2280 - 2040 - 1800 - 800 - 527 - 500 - 470 - 396 - 322 - 248 - 174 - 99 - 99 - + + 5186 + 4333 + 3666 + 2999 + 2759 + 2519 + 2279 + 2039 + 1799 + 799 + 527 + 499 + 470 + 517 + 565 + 612 + 660 + 708 + 742 + 636 + 582 + 549 + 369 + 294 + 269 + 220 + 220 + - - 853 - 700 - 683 - 666 - 650 - 640 - 630 - 620 - 610 - 600 - 500 - 500 - 440 - 385 - 348 - 311 - 274 - 237 - 200 - 200 - + + 525 + 683 + 666 + 650 + 640 + 630 + 620 + 610 + 600 + 500 + 500 + 440 + 385 + 382 + 379 + 376 + 373 + 371 + 367 + 387 + 397 + 403 + 380 + 345 + 333 + 283 + 283 + - 2000 + 1000 4000 64 - - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 20 - 30 - 40 - 50 - 60 - 70 - 80 - 90 - 100 - + + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 20 + 30 + 40 + 50 + 60 + 70 + 80 + 90 + 100 + 200 + 300 + 400 + 500 + 1000 + 2000 + 3000 + 4000 + - - 11373 - 5000 - 4333 - 3666 - 3000 - 2760 - 2520 - 2280 - 2040 - 1800 - 800 - 527 - 500 - 470 - 396 - 322 - 248 - 174 - 99 - 99 - + + 5186 + 4333 + 3666 + 2999 + 2759 + 2519 + 2279 + 2039 + 1799 + 799 + 527 + 499 + 470 + 517 + 565 + 612 + 660 + 708 + 742 + 636 + 582 + 549 + 369 + 294 + 269 + 220 + 220 + + + + 525 + 683 + 666 + 650 + 640 + 630 + 620 + 610 + 600 + 500 + 500 + 440 + 385 + 382 + 379 + 376 + 373 + 371 + 367 + 387 + 397 + 403 + 380 + 345 + 333 + 283 + 283 + - - 853 - 700 - 683 - 666 - 650 - 640 - 630 - 620 - 610 - 600 - 500 - 500 - 440 - 385 - 348 - 311 - 274 - 237 - 200 - 200 - false From b9c8c28644d9d9caed2153054024670c2dcb30df Mon Sep 17 00:00:00 2001 From: George Chang Date: Tue, 24 May 2022 10:18:33 +0800 Subject: [PATCH 2/4] Set sereset property every time at boot Set it to "reset" in order to reset ST54K eSE at NFC hal init. Bug: 232204531 Test: check eSE reset process starts at boot Change-Id: I9f5863f963716ddceabbd540fbde32abec0a38b4 --- conf/init.pantah.rc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/init.pantah.rc b/conf/init.pantah.rc index ac43e1a..6ddf9cd 100644 --- a/conf/init.pantah.rc +++ b/conf/init.pantah.rc @@ -4,7 +4,6 @@ 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 @@ -72,6 +71,9 @@ on property:ro.boot.hardware.revision=PROTO1.0 on property:ro.boot.hardware.revision=PROTO1.1 setprop persist.vendor.nfc.config_file_name libnfc-hal-st-proto1.conf +on post-fs-data + setprop persist.vendor.se.reset reset + # Bluetooth on post-fs-data chown bluetooth system /proc/bluetooth/timesync From 2435a0c9cdb91aa95cc193c98b2fde31eb42b3b0 Mon Sep 17 00:00:00 2001 From: Sayanna Chandula Date: Sat, 14 May 2022 23:25:15 +0000 Subject: [PATCH 3/4] thermal: update virtual coefficients per v0.7 Update P10 virtual coefficients to v0.7 version. No change for C10 coefficients. Bug: 232569691 Test: Build and boot on device. Signed-off-by: Sayanna Chandula Change-Id: I8b7b5c2b2f1a20f07925b66697632fdc66bdc644 --- thermal_info_config_cheetah.json | 2 +- thermal_info_config_panther.json | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/thermal_info_config_cheetah.json b/thermal_info_config_cheetah.json index ccd10b7..6547d12 100644 --- a/thermal_info_config_cheetah.json +++ b/thermal_info_config_cheetah.json @@ -124,7 +124,7 @@ { "Name":"VIRTUAL-SKIN", "Type":"SKIN", - "Version":"0.6", + "Version":"0.7", "VirtualSensor":true, "TriggerSensor":"quiet_therm", "Formula":"MAXIMUM", diff --git a/thermal_info_config_panther.json b/thermal_info_config_panther.json index 03f9bd3..12e040c 100644 --- a/thermal_info_config_panther.json +++ b/thermal_info_config_panther.json @@ -56,14 +56,14 @@ "PassiveDelay":7000 }, { - "Name":"VIRTUAL-GNSS-QUIET", + "Name":"VIRTUAL-QUIET-QI", "Type":"UNKNOWN", "Hidden":true, "VirtualSensor":true, "Formula":"WEIGHTED_AVG", - "Combination":["gnss_tcxo_therm", "quiet_therm"], - "Coefficient":[1.3, -0.3], - "Offset":-1800, + "Combination":["quiet_therm", "qi_therm"], + "Coefficient":[0.7, 0.3], + "Offset":-500, "Multiplier":0.001 }, { @@ -78,14 +78,14 @@ "Multiplier":0.001 }, { - "Name":"VIRTUAL-GNSS-DISP", + "Name":"VIRTUAL-QUIET-DISP", "Type":"UNKNOWN", "Hidden":true, "VirtualSensor":true, "Formula":"WEIGHTED_AVG", - "Combination":["gnss_tcxo_therm", "disp_therm"], - "Coefficient":[0.9, 0.1], - "Offset":-700, + "Combination":["quiet_therm", "disp_therm"], + "Coefficient":[1.1, -0.1], + "Offset":-1500, "Multiplier":0.001 }, { @@ -124,11 +124,11 @@ { "Name":"VIRTUAL-SKIN", "Type":"SKIN", - "Version":"0.6", + "Version":"0.7", "VirtualSensor":true, "TriggerSensor":"quiet_therm", "Formula":"MAXIMUM", - "Combination":["VIRTUAL-GNSS-QUIET", "VIRTUAL-USB-QUIET", "VIRTUAL-GNSS-DISP", "VIRTUAL-NEUTRAL-QUIET"], + "Combination":["VIRTUAL-QUIET-QI", "VIRTUAL-USB-QUIET", "VIRTUAL-QUIET-DISP", "VIRTUAL-NEUTRAL-QUIET"], "Coefficient":[1.0, 1.0, 1.0, 1.0], "HotThreshold":["NAN", 39.0, 43.0, 45.0, 46.5, 52.0, 55.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.4, 1.9, 1.9], @@ -154,7 +154,7 @@ "VirtualSensor":true, "TriggerSensor":"quiet_therm", "Formula":"MAXIMUM", - "Combination":["VIRTUAL-GNSS-QUIET", "VIRTUAL-USB-QUIET", "VIRTUAL-GNSS-DISP", "VIRTUAL-NEUTRAL-QUIET"], + "Combination":["VIRTUAL-QUIET-QI", "VIRTUAL-USB-QUIET", "VIRTUAL-QUIET-DISP", "VIRTUAL-NEUTRAL-QUIET"], "Coefficient":[1.0, 1.0, 1.0, 1.0], "HotThreshold":["NAN", 39.0, 42.0, 44.0, 46.5, 52.0, 55.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.9, 1.9], @@ -258,7 +258,7 @@ "VirtualSensor":true, "TriggerSensor":"quiet_therm", "Formula":"MAXIMUM", - "Combination":["VIRTUAL-GNSS-QUIET", "VIRTUAL-USB-QUIET", "VIRTUAL-GNSS-DISP", "VIRTUAL-NEUTRAL-QUIET"], + "Combination":["VIRTUAL-QUIET-QI", "VIRTUAL-USB-QUIET", "VIRTUAL-QUIET-DISP", "VIRTUAL-NEUTRAL-QUIET"], "Coefficient":[1.0, 1.0, 1.0, 1.0], "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", 54.0, "NAN"], "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0], From a7e8dbb927ff64a14c6df233c53e35e21dda7987 Mon Sep 17 00:00:00 2001 From: edyblin Date: Thu, 19 May 2022 15:02:59 +0000 Subject: [PATCH 4/4] Update ./DevInfo/Mod model name Need to set model name to GE2AE and GQML3 Bug: 232495475 Test: Pass at b/232495475#comment7 Change-Id: I21cc02b2a980f493a34bcfcd40117bb827504075 --- .../packages/apps/OMA-DM/DMService/res/values/config.xml | 9 +++++++++ .../packages/apps/OMA-DM/DMService/res/values/config.xml | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 cheetah/overlay/packages/apps/OMA-DM/DMService/res/values/config.xml create mode 100644 panther/overlay/packages/apps/OMA-DM/DMService/res/values/config.xml diff --git a/cheetah/overlay/packages/apps/OMA-DM/DMService/res/values/config.xml b/cheetah/overlay/packages/apps/OMA-DM/DMService/res/values/config.xml new file mode 100644 index 0000000..25ffdf0 --- /dev/null +++ b/cheetah/overlay/packages/apps/OMA-DM/DMService/res/values/config.xml @@ -0,0 +1,9 @@ + + + + + + GE2AE + + diff --git a/panther/overlay/packages/apps/OMA-DM/DMService/res/values/config.xml b/panther/overlay/packages/apps/OMA-DM/DMService/res/values/config.xml new file mode 100644 index 0000000..d673d92 --- /dev/null +++ b/panther/overlay/packages/apps/OMA-DM/DMService/res/values/config.xml @@ -0,0 +1,8 @@ + + + + + + GQML3 +