mirror of
https://github.com/yurisieucuti/treble_evolution.git
synced 2024-11-24 08:36:19 +00:00
28 lines
1.4 KiB
Diff
28 lines
1.4 KiB
Diff
From c5e263b52de564d76b428fad75b05c9313267610 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 03/16] 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 acd0196dd1..cf81125aab 100644
|
|
--- a/src/java/com/android/internal/telephony/GsmCdmaPhone.java
|
|
+++ b/src/java/com/android/internal/telephony/GsmCdmaPhone.java
|
|
@@ -3377,7 +3377,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.25.1
|
|
|