DivestOS/Patches/LineageOS-18.1/android_device_lge_mako/0001-LTE.patch
Tad 914bed8556 Reimplement fe6f8537
LTE tested working with hybrid 33-107 modem.
Phone calls drop to HSPA as expected.
No issues if using stock modem either compared to without this patch.

In my area, without this patch, my makos are useless cell-wise.

Gives extra life to the Nexus 4.

Signed-off-by: Tad <tad@spotco.us>
2021-07-29 15:25:05 -04:00

71 lines
2.8 KiB
Diff

From 8a1f4883ab37ea10142c903cf0ec25c95dc03579 Mon Sep 17 00:00:00 2001
From: Tad <tad@spotco.us>
Date: Thu, 29 Jul 2021 12:31:30 -0400
Subject: [PATCH 1/1] LTE Enablement
Change-Id: I36cbd7ce1a070201da24dc237154355e780d01b4
---
.../base/core/res/res/values/config.xml | 2 +-
.../services/Telephony/res/values/config.xml | 22 +++++++++++++++++++
system_prop.mk | 2 +-
3 files changed, 24 insertions(+), 2 deletions(-)
create mode 100644 overlay/packages/services/Telephony/res/values/config.xml
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 9f37d0a..2220fca 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -178,7 +178,7 @@
Empty is viewed as "all". Only used on devices which
don't support RIL_REQUEST_GET_RADIO_CAPABILITY
format is UMTS|LTE|... -->
- <string translatable="false" name="config_radio_access_family">GSM|WCDMA</string>
+ <string translatable="false" name="config_radio_access_family">GSM|WCDMA|LTE</string>
<!-- Set to true to add links to Cell Broadcast app from Settings and MMS app. -->
<bool name="config_cellBroadcastAppLinks">true</bool>
diff --git a/overlay/packages/services/Telephony/res/values/config.xml b/overlay/packages/services/Telephony/res/values/config.xml
new file mode 100644
index 0000000..53c62dd
--- /dev/null
+++ b/overlay/packages/services/Telephony/res/values/config.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2014 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+
+ <!-- Show enabled lte option for lte device -->
+ <bool name="config_enabled_lte" translatable="false">true</bool>
+
+</resources>
diff --git a/system_prop.mk b/system_prop.mk
index 6398872..81ca1bb 100644
--- a/system_prop.mk
+++ b/system_prop.mk
@@ -48,7 +48,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
# RIL
PRODUCT_PROPERTY_OVERRIDES += \
rild.libpath=/vendor/lib/libril-qc-qmi-1.so \
- telephony.lteOnCdmaDevice=0 \
+ telephony.lteOnCdmaDevice=1 \
persist.radio.apm_sim_not_pwdn=1 \
ro.telephony.call_ring.multiple=0
--
2.31.1