From c0cce529075e230448e9e40ffc2f6dc519b1eb4b Mon Sep 17 00:00:00 2001 From: Alexandre Roux D'Anzi Date: Wed, 15 Sep 2021 14:40:58 +0200 Subject: [PATCH] fix volte on GS290 --- device.mk | 12 +- lineage_GS290.mk | 4 + .../base/core/res/res/values/config.xml | 603 ++++++++++++------ rw-system.sh | 4 - 4 files changed, 429 insertions(+), 194 deletions(-) diff --git a/device.mk b/device.mk index abec605..2700222 100644 --- a/device.mk +++ b/device.mk @@ -9,7 +9,7 @@ # Get non-open-source specific aspects #$(call inherit-product-if-exists, vendor/volla/yggdrasil/yggdrasil-vendor.mk) - +$(call inherit-product, vendor/gigaset/GS290/GS290-vendor.mk) # Overlays DEVICE_PACKAGE_OVERLAYS += \ $(LOCAL_PATH)/overlay \ @@ -46,6 +46,16 @@ PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \ DummyOverlay +# Telephony +PRODUCT_BOOT_JARS += \ + mediatek-common \ + mediatek-framework \ + mediatek-ims-base \ + mediatek-ims-common \ + mediatek-telecom-common \ + mediatek-telephony-base \ + mediatek-telephony-common + # Permissions PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.fingerprint.xml \ diff --git a/lineage_GS290.mk b/lineage_GS290.mk index 3fab3a4..7623086 100644 --- a/lineage_GS290.mk +++ b/lineage_GS290.mk @@ -21,6 +21,10 @@ PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ ro.adb.secure=1 \ persist.sys.usb.config=mtp \ persist.sys.phh.no_vendor_overlay=true +PRODUCT_PROPERTY_OVERRIDES += \ + persist.dbg.volte_avail_ovr=1 \ + persist.dbg.vt_avail_ovr=1 \ + persist.dbg.wfc_avail_ovr=1 $(call inherit-product, device/phh/treble/base-pre.mk) include build/make/target/product/aosp_arm64_ab.mk diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index e939790..7c2539f 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -1,19 +1,198 @@ - - + + + true + + + true + + + true + + + true + + + 1 + + + 17 + + + 150 + + + 2000 + 8000 + + + 300% + + + 1 + + + true + + + true + + + + 1 + 2 + 3 + 4 + 8 + 12 + 20 + 33 + 55 + 90 + 148 + 245 + 403 + 665 + 1097 + 1808 + 2981 + 5000 + + + + + 10.45935 + 29.25559 + 34.240692 + 37.514347 + 40.018696 + 46.885098 + 51.626434 + 58.610405 + 66.890915 + 77.61644 + 90.221886 + 105.80314 + 126.073845 + 154.16931 + 191.83717 + 240.74442 + 294.84857 + 348.05453 + 389.70 + + + + + 0 + 26.11 + 50.5 + 74.17 + 96.89 + 118.3 + 139.8 + 162.9 + 189.8 + 217.4 + 240.4 + 265.3 + 288.7 + 316 + 340.8 + 357.9 + 376.2 + 392.9 + + + + + 0 + 15 + 30 + 45 + 60 + 75 + 90 + 105 + 120 + 135 + 150 + 165 + 180 + 195 + 210 + 225 + 240 + 255 + + + + true + @@ -26,10 +205,9 @@ Wifi interfaces. If the device doesn't want to support tethering over Wifi this should be empty. An example would be "softap.*" --> - "wlan0" - "softap.*" - "wifi_br0" - "wigig0" + wlan0 + wigig0 + softap0 bnep\\d - "bt-pan" + bt-pan - - true + + true + + + true + + + true + + + 3300 + + + true + + + true + + + true + + + true + + + true + + + true + + + true + + + com.mediatek.ims + + + true + + + true + + + com.android.systemui/com.android.systemui.doze.DozeService + + + true + + + false + + + true + + + true + + + + 0 + 1 + 20 + 21 + + + + + 0 + 10 + 25 + 30 + + + + + 35 + + + + true - - wifi,1,1,1,-1,true - mobile,0,0,0,-1,true - mobile_mms,2,0,2,60000,true - mobile_supl,3,0,2,60000,true - mobile_dun,4,0,2,60000,true - mobile_hipri,5,0,3,60000,true - mobile_fota,10,0,2,60000,true - mobile_ims,11,0,-1,-1,true - mobile_cbs,12,0,2,60000,true - wifi_p2p,13,1,0,-1,true - mobile_ia,14,0,2,-1,true - mobile_emergency,15,0,2,-1,true - mobile_wap,21,0,3,60000,true - mobile_xcap,25,0,3,60000,true - mobile_rcs,26,0,3,60000,true - mobile_bip,27,0,3,60000,true - mobile_vsim,28,0,-1,60000,true - mobile_preempt,29,0,9,60000,true + + "wifi,1,1,1,-1,true" + "mobile,0,0,0,-1,true" + "mobile_mms,2,0,4,60000,true" + "mobile_supl,3,0,2,60000,true" + "mobile_dun,4,0,2,60000,true" + "mobile_hipri,5,0,3,60000,true" + "mobile_fota,10,0,2,60000,true" + "mobile_ims,11,0,2,60000,true" + "mobile_cbs,12,0,2,60000,true" + "bluetooth,7,7,2,-1,true" + "ethernet,9,9,9,-1,true" + "mobile_emergency,15,0,5,-1,true" - - - 2 - 3 - 5 - 7 - 8 - 16 - 20 - 24 - 28 - 32 - 37 - 41 - 45 - 49 - 53 - 57 - 76 - 81 - 91 - 101 - 139 - 158 - 178 - 201 - 222 - 305 - 364 - 424 - 503 - 712 - 911 - 1113 - 1316 - 2025 - 2537 - 3039 - + + + 5gnr:2097152,6291456,16777216,512000,2097152,8388608 + lte:524288,1048576,8388608,262144,524288,4194304 + lte_ca:1048576,2097152,16777216,524288,1048576,8388608 + umts:131072,262144,1452032,4096,16384,399360 + hspa:131072,262144,1452032,4096,16384,399360 + hsupa:131072,262144,1452032,4096,16384,399360 + hsdpa:131072,262144,1452032,4096,16384,399360 + hspap:131072,262144,1452032,4096,16384,399360 + edge:16384,32768,131072,4096,16384,65536 + gprs:4096,8192,24576,4096,8192,24576 + evdo:131072,262144,1048576,4096,16384,524288 + ehrpd:4094,87380,1048576,4096,16384,262144 + - - - 1 - 4 - 7 - 10 - 13 - 17 - 27 - 38 - 46 - 53 - 53 - 54 - 54 - 54 - 54 - 54 - 54 - 55 - 56 - 56 - 57 - 58 - 59 - 61 - 62 - 63 - 67 - 70 - 73 - 77 - 91 - 105 - 118 - 133 - 183 - 221 - 255 - + + + + 1,1 + 0,1 + 7,1 + 9,1 + - - 2000 - 2000 + + + true - - true + + false - - true + + true - - true + + true - - true + + true - - true + + true - - false + + true - - true - - - true - - - true + + true - - M 0,0 L -20, 0 L -13.540446283, 15.0595537175 C -10.0582133885, 22.0178661152 -5.6, 23.5 -1.0, 24.0 L 1.0, 24.0 C 5.6, 23.5 10.0582133885, 22.0178661152 13.540446283, 15.0595537175 L 20, 0 Z + + Android-Mms/0.1 - - false + + http://www.google.com/oha/rdf/ua-profile-kila.xml - - - 0 - 10 - 20 - 30 - + + true - - false + + + "/system/framework/arm64/boot-framework.oat" + "/system/framework/framework.jar" + "/system/framework/oat/arm64/services.odex" + "/system/framework/services.jar" + "/system/framework/arm64/boot.oat" + "/system/framework/arm64/boot-core-libart.oat" + "/apex/com.android.runtime/javalib/core-oj.jar" + "/apex/com.android.runtime/javalib/core-libart.jar" + "/apex/com.android.media/javalib/updatable-media.jar" + + + + + "/system/framework/framework.jar" + "/system/framework/services.jar" + "/system/framework/arm64/apex.oat" + "/system/framework/arm64/apex-core-libart.oat" + "/apex/com.android.runtime/javalib/core-oj.jar" + "/apex/com.android.runtime/javalib/core-libart.jar" + "/apex/com.android.media/javalib/updatable-media.jar" + + + + true + + + true + + + true + + + true + + + false + + + true + + + true + + 1.android.pool.ntp.org diff --git a/rw-system.sh b/rw-system.sh index 5339357..d4443c8 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -418,10 +418,6 @@ if [ "$vndk" = 27 ] || [ "$vndk" = 26 ]; then mount -o bind /system/phh/libnfc-nci-oreo.conf /system/etc/libnfc-nci.conf fi -if busybox_phh unzip -p /vendor/app/ims/ims.apk classes.dex | grep -qF -e Landroid/telephony/ims/feature/MmTelFeature -e Landroid/telephony/ims/feature/MMTelFeature; then - mount -o bind /system/phh/empty /vendor/app/ims/ims.apk -fi - if getprop ro.hardware | grep -qF exynos; then setprop debug.sf.latch_unsignaled 1 fi -- GitLab