forked from PeterGSI/patches
28 lines
1.4 KiB
Diff
28 lines
1.4 KiB
Diff
From 53160d33c83afe4f56862c3c12d4b61e2970209b Mon Sep 17 00:00:00 2001
|
|
From: Pierre-Hugues Husson <phh@phh.me>
|
|
Date: Mon, 6 Dec 2021 16:28:22 -0500
|
|
Subject: [PATCH 5/5] Fix baseband being too long to fit into a 91 chars
|
|
property, preventing telephony subsystem from starting
|
|
|
|
Change-Id: I1762e4a8cc137626be89f350229d6be162bdaf57
|
|
---
|
|
src/java/com/android/internal/telephony/GsmCdmaPhone.java | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/java/com/android/internal/telephony/GsmCdmaPhone.java b/src/java/com/android/internal/telephony/GsmCdmaPhone.java
|
|
index 76a8d57246..9a72712c59 100644
|
|
--- a/src/java/com/android/internal/telephony/GsmCdmaPhone.java
|
|
+++ b/src/java/com/android/internal/telephony/GsmCdmaPhone.java
|
|
@@ -3124,7 +3124,7 @@ public class GsmCdmaPhone extends Phone {
|
|
String version = (String)ar.result;
|
|
if (version != null) {
|
|
int length = version.length();
|
|
- final int MAX_VERSION_LEN = SystemProperties.PROP_VALUE_MAX/2;
|
|
+ final int MAX_VERSION_LEN = SystemProperties.PROP_VALUE_MAX/2 - 2;
|
|
TelephonyManager.from(mContext).setBasebandVersionForPhone(getPhoneId(),
|
|
length <= MAX_VERSION_LEN ? version
|
|
: version.substring(length - MAX_VERSION_LEN, length));
|
|
--
|
|
2.40.0
|
|
|