From 6893af62537d4d6f28a06626a534850b010ad02b Mon Sep 17 00:00:00 2001 From: James Huang Date: Sun, 20 Oct 2024 21:17:06 +0800 Subject: [PATCH 1/2] gps: Update official release 4.15.3_7_241024_R1 config on CT3 Add Chip_Configuration_ntn_option=2 bug: 369951938 Test: NTN test Change-Id: Id4c40653d9ac2329a2d673830755e5620ff90223 --- location/user/gps.cfg | 1 + location/userdebug/gps.cfg | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/location/user/gps.cfg b/location/user/gps.cfg index 859944c..d41a982 100644 --- a/location/user/gps.cfg +++ b/location/user/gps.cfg @@ -29,6 +29,7 @@ Chip_Configuration_DCXO_CrystalType=0x11 Chip_Configuration_GNSSConstConstraintDef = 0x60FF LocTech_Constraints = 0x60FF Chip_Configuration_RfMiscCtrl = 0x80008001 +Chip_Configuration_ntn_option=2 bdsUsedInUSPolicy=2 sbasUsedInUSPolicy=2 qzssUsedInUSPolicy=2 diff --git a/location/userdebug/gps.cfg b/location/userdebug/gps.cfg index 26d28a7..0641d1f 100644 --- a/location/userdebug/gps.cfg +++ b/location/userdebug/gps.cfg @@ -115,6 +115,11 @@ Chip_Configuration_RfMiscCtrl = 0x80008001 #Chip_Configuration_RfMiscCtrl=0x8001 #Chip_Configuration_IspTestConfig=0x22242822 +#Chip_Configuration_ntn_option=0 means no NTN blackout IPC handling +#Chip_Configuration_ntn_option=1 means L1 blanking during NTN blackout period. +#Chip_Configuration_ntn_option=2 means turning GNSS off during NTN blackout period. +Chip_Configuration_ntn_option=2 + # Disable BDS in the U.S. # 0-enabled (default), 1-disabled, 2-auto(disabled in US) #gloUsedInUSPolicy=2 @@ -127,7 +132,7 @@ navicUsedInUSPolicy=2 # DFS: 0 = Disabled, 1 = Enabled (default) Chip_Configuration_FeatureCfg_DVS = 1 Chip_Configuration_FeatureCfg_DFS = 1 -# Disable MTPL +# MTPL: 0 = Disabled, 1 = Enabled Chip_Configuration_FeatureCfg_MTPL = 1 # MCW Link failure behavior: 0 = SW Assert (default), 1 = GNSS restart (hot start) Chip_Configuration_FeatureCfg_SDL_BYASS = 1 From 61589cef5b6cf2f0e5121a29ae0373e69a059d38 Mon Sep 17 00:00:00 2001 From: Richard Chang Date: Tue, 29 Oct 2024 08:29:08 +0000 Subject: [PATCH 2/2] powerhint: Add WriteOnly flag for PA_KILL to avoid SELinux error The node "/sys/kernel/vendor_mm/pa_kill/reclaim_kb" is write-only. So we need to add WriteOnly flag to prevent powerhal to read the node. SELinux errors: avc: denied { dac_read_search } for comm="android.hardwar" capability=2 scontext=u:r:hal_power_default:s0 tcontext=u:r:hal_power_default:s0 tclass=capability permissive=0 avc: denied { dac_override } for comm="android.hardwar" capability=1 scontext=u:r:hal_power_default:s0 tcontext=u:r:hal_power_default:s0 tclass=capability permissive=0 Bug: 350830411 Change-Id: I649e263a5371782184ce712fef3e8d42941806d7 Test: adb shell dumpsys android.hardware.power.IPower/default, check if any avc denied messages Flag: EXEMPT config json change --- powerhint-comet.json | 1 + 1 file changed, 1 insertion(+) diff --git a/powerhint-comet.json b/powerhint-comet.json index 11e9447..6877507 100644 --- a/powerhint-comet.json +++ b/powerhint-comet.json @@ -958,6 +958,7 @@ "102400", "0" ], + "WriteOnly": true, "ResetOnInit": false }, {