From 82392dddbd5226ff1f01bfadb011a1d518e48fe0 Mon Sep 17 00:00:00 2001 From: Jackeagle Date: Fri, 22 Dec 2023 12:19:32 -0500 Subject: [PATCH 1/7] GS290: Drop all Carrier overlays - These will be set from CarrierConfig now Signed-off-by: Jackeagle --- .../frameworks/base/core/res/res/values/config.xml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 43c6280..d329c5b 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -182,16 +182,6 @@ ehrpd:4094,87380,1048576,4096,16384,262144 - - true - - - true - true @@ -215,9 +205,6 @@ true - - true - true -- GitLab From 0f84cfb507caacfb1fb712ea69b8fa6e37b2c1c2 Mon Sep 17 00:00:00 2001 From: Jackeagle Date: Sun, 24 Dec 2023 12:11:09 -0500 Subject: [PATCH 2/7] GS290: Import CarrierConfig Signed-off-by: Jackeagle --- device.mk | 3 +- .../CarrierConfigOverlayGS290/Android.bp | 7 + .../AndroidManifest.xml | 20 + .../res/xml/vendor_oppo.xml | 911 ++++++++++++++++++ 4 files changed, 940 insertions(+), 1 deletion(-) create mode 100644 rro_overlays/CarrierConfigOverlayGS290/Android.bp create mode 100644 rro_overlays/CarrierConfigOverlayGS290/AndroidManifest.xml create mode 100644 rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml diff --git a/device.mk b/device.mk index 4b8d1fb..c621aec 100644 --- a/device.mk +++ b/device.mk @@ -24,7 +24,7 @@ PRODUCT_PACKAGES += \ libaudiofoundation.vendor \ libtinycompress \ tinymix \ - android.hardware.audio@5.0.vendor + android.hardware.audio@5.0.vendor \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/audio_device.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_device.xml \ @@ -318,6 +318,7 @@ PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += \ # RRO Overlays PRODUCT_PACKAGES += \ GS290NoCutoutOverlay \ + CarrierConfigOverlayGS290 # Screen density PRODUCT_AAPT_CONFIG := normal diff --git a/rro_overlays/CarrierConfigOverlayGS290/Android.bp b/rro_overlays/CarrierConfigOverlayGS290/Android.bp new file mode 100644 index 0000000..46d8de8 --- /dev/null +++ b/rro_overlays/CarrierConfigOverlayGS290/Android.bp @@ -0,0 +1,7 @@ +runtime_resource_overlay { + name: "CarrierConfigOverlayGS290", + theme: "CarrierConfigOverlay", + sdk_version: "current", + product_specific: true, + aaptflags: ["--keep-raw-values"], +} diff --git a/rro_overlays/CarrierConfigOverlayGS290/AndroidManifest.xml b/rro_overlays/CarrierConfigOverlayGS290/AndroidManifest.xml new file mode 100644 index 0000000..c963603 --- /dev/null +++ b/rro_overlays/CarrierConfigOverlayGS290/AndroidManifest.xml @@ -0,0 +1,20 @@ + + + + + + diff --git a/rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml b/rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml new file mode 100644 index 0000000..f27d7fe --- /dev/null +++ b/rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml @@ -0,0 +1,911 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + com.google.android.ims + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 41919 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- GitLab From 98f01f17e438d13dbbf7093b41d42059f6346f30 Mon Sep 17 00:00:00 2001 From: Jackeagle Date: Tue, 2 Jan 2024 23:32:36 -0500 Subject: [PATCH 3/7] GS290: props: Donot force enable IMS features - Its now handled by CarrierConfigs Signed-off-by: Jackeagle --- vendor.prop | 3 --- 1 file changed, 3 deletions(-) diff --git a/vendor.prop b/vendor.prop index 9a37365..3163f69 100644 --- a/vendor.prop +++ b/vendor.prop @@ -77,9 +77,6 @@ persist.vendor.volte_support=1 persist.vendor.mtk.volte.enable=1 persist.vendor.vilte_support=1 persist.vendor.viwifi_support=1 -persist.dbg.volte_avail_ovr=1 -persist.dbg.vt_avail_ovr=1 -persist.dbg.wfc_avail_ovr=1 # LMK ro.lmk.downgrade_pressure=60 -- GitLab From 2c018fddd39759e8ffcdf0faa792146054f8f598 Mon Sep 17 00:00:00 2001 From: Jackeagle Date: Wed, 3 Jan 2024 05:48:12 -0500 Subject: [PATCH 4/7] GS290: init: Force disable IMS features - When performing a dirty flash, the properties present in persistent_properties may remain unchanged, even when modifications are present in the source. This discrepancy can lead to various issues. Signed-off-by: Jackeagle --- rootdir/etc/init.mt6763.rc | 5 +++++ sepolicy/vendor/property.te | 1 + sepolicy/vendor/property_contexts | 5 +++++ sepolicy/vendor/vendor_init.te | 1 + 4 files changed, 12 insertions(+) diff --git a/rootdir/etc/init.mt6763.rc b/rootdir/etc/init.mt6763.rc index adc9066..abcbe18 100644 --- a/rootdir/etc/init.mt6763.rc +++ b/rootdir/etc/init.mt6763.rc @@ -850,6 +850,11 @@ on property:sys.boot_completed=1 write /dev/stune/top-app/schedtune.prefer_idle 0 write /dev/stune/rt/schedtune.prefer_idle 0 + # Force Disable VOLTE/VT/WFC Support + setprop persist.dbg.volte_avail_ovr 0 + setprop persist.dbg.vt_avail_ovr 0 + setprop persist.dbg.wfc_avail_ovr 0 + # restore perf. parameters write /proc/perfmgr/boost_ctrl/cpu_ctrl/boot_freq "-1 -1 -1 -1" # restore vcore parameters diff --git a/sepolicy/vendor/property.te b/sepolicy/vendor/property.te index 35794ca..8664f67 100644 --- a/sepolicy/vendor/property.te +++ b/sepolicy/vendor/property.te @@ -1 +1,2 @@ system_public_prop(vendor_fm_prop) +vendor_internal_prop(vendor_dbg_ims_prop) diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts index e0359ad..eb40237 100644 --- a/sepolicy/vendor/property_contexts +++ b/sepolicy/vendor/property_contexts @@ -1,3 +1,8 @@ persist.vendor.connsys.fm_chipid u:object_r:vendor_fm_prop:s0 persist.vendor.connsys.fm_50khz_support u:object_r:vendor_fm_prop:s0 persist.vendor.connsys.fm_short_antenna_support u:object_r:vendor_fm_prop:s0 + +# VOLTE/VT/WFC Debug props +persist.dbg.volte_avail_ovr u:object_r:vendor_dbg_ims_prop:s0 +persist.dbg.vt_avail_ovr u:object_r:vendor_dbg_ims_prop:s0 +persist.dbg.wfc_avail_ovr u:object_r:vendor_dbg_ims_prop:s0 diff --git a/sepolicy/vendor/vendor_init.te b/sepolicy/vendor/vendor_init.te index 5284e9b..d218c30 100644 --- a/sepolicy/vendor/vendor_init.te +++ b/sepolicy/vendor/vendor_init.te @@ -1 +1,2 @@ allow vendor_init device:file { create write }; +set_prop(vendor_init, vendor_dbg_ims_prop) -- GitLab From 6a1a4bf300e1a39786d9787c6fde6d2360ca7772 Mon Sep 17 00:00:00 2001 From: Jackeagle Date: Wed, 3 Jan 2024 23:59:28 -0500 Subject: [PATCH 5/7] CarrierConfigOverlayGS290: Add France-Bouygues CarrierConfig Signed-off-by: Jackeagle --- .../CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml b/rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml index f27d7fe..72a7ce6 100644 --- a/rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml +++ b/rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml @@ -675,6 +675,16 @@ + + + + + + + + + + -- GitLab From af8726d8242b7fd3d61f80949dfeedf6ec1bb828 Mon Sep 17 00:00:00 2001 From: Jackeagle Date: Thu, 4 Jan 2024 00:04:07 -0500 Subject: [PATCH 6/7] CarrierConfigOverlayGS290: Disable VOLTE/WFC for France-Bouygues Carrier Signed-off-by: Jackeagle --- .../CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml b/rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml index 72a7ce6..346c82f 100644 --- a/rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml +++ b/rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml @@ -676,8 +676,8 @@ - - + + -- GitLab From 2cc58f9a765a5dfd75c10160eb74092847e2b0b3 Mon Sep 17 00:00:00 2001 From: Jackeagle Date: Thu, 4 Jan 2024 05:01:08 -0500 Subject: [PATCH 7/7] CarrierConfigOverlayGS290: Enable IMS Features for Airtel Carrier Signed-off-by: Jackeagle --- .../CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml b/rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml index 346c82f..87cdb29 100644 --- a/rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml +++ b/rro_overlays/CarrierConfigOverlayGS290/res/xml/vendor_oppo.xml @@ -347,10 +347,10 @@ - - - - + + + + -- GitLab