Android系统-SystemUI-Android11修改sim卡信号格数对应的信号强度值
Posted 有头发的猿
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android系统-SystemUI-Android11修改sim卡信号格数对应的信号强度值相关的知识,希望对你有一定的参考价值。
diff --git a/frameworks/base/telephony/java/android/telephony/CarrierConfigManager.java b/frameworks/base/telephony/java/android/telephony/CarrierConfigManager.java
index eaf1228681..76c8f792db 100755
--- a/frameworks/base/telephony/java/android/telephony/CarrierConfigManager.java
+++ b/frameworks/base/telephony/java/android/telephony/CarrierConfigManager.java
@@ -4434,11 +4434,17 @@ public class CarrierConfigManager
);
sDefaults.putIntArray(KEY_5G_NR_SSRSRP_THRESHOLDS_INT_ARRAY,
// Boundaries: [-140 dB, -44 dB]
- new int[]
- -110, /* SIGNAL_STRENGTH_POOR */
- -90, /* SIGNAL_STRENGTH_MODERATE */
- -80, /* SIGNAL_STRENGTH_GOOD */
- -65, /* SIGNAL_STRENGTH_GREAT */
+ //new int[]
+ // -110, /* SIGNAL_STRENGTH_POOR */
+ // -90, /* SIGNAL_STRENGTH_MODERATE */
+ // -80, /* SIGNAL_STRENGTH_GOOD */
+ // -65, /* SIGNAL_STRENGTH_GREAT */
+ //);
+ new int[]
+ -120, /* SIGNAL_STRENGTH_POOR */
+ -113, /* SIGNAL_STRENGTH_MODERATE */
+ -103, /* SIGNAL_STRENGTH_GOOD */
+ -97, /* SIGNAL_STRENGTH_GREAT */
);
sDefaults.putIntArray(KEY_5G_NR_SSRSRQ_THRESHOLDS_INT_ARRAY,
// Boundaries: [-43 dB, 20 dB]
diff --git a/frameworks/base/telephony/java/android/telephony/CellSignalStrengthNr.java b/frameworks/base/telephony/java/android/telephony/CellSignalStrengthNr.java
index 766019ec38..755e2f97c0 100644
--- a/frameworks/base/telephony/java/android/telephony/CellSignalStrengthNr.java
+++ b/frameworks/base/telephony/java/android/telephony/CellSignalStrengthNr.java
@@ -40,17 +40,24 @@ public final class CellSignalStrengthNr extends CellSignalStrength implements Pa
*/
public static final int UNKNOWN_ASU_LEVEL = 99;
- private static final boolean VDBG = false;
+ private static final boolean VDBG = true;
private static final String TAG = "CellSignalStrengthNr";
// Lifted from Default carrier configs and max range of SSRSRP
// Boundaries: [-140 dB, -44 dB]
- private int[] mSsRsrpThresholds = new int[]
- -110, /* SIGNAL_STRENGTH_POOR */
- -90, /* SIGNAL_STRENGTH_MODERATE */
- -80, /* SIGNAL_STRENGTH_GOOD */
- -65, /* SIGNAL_STRENGTH_GREAT */
+ //private int[] mSsRsrpThresholds = new int[]
+ // -110, /* SIGNAL_STRENGTH_POOR */
+ // -90, /* SIGNAL_STRENGTH_MODERATE */
+ // -80, /* SIGNAL_STRENGTH_GOOD */
+ // -65, /* SIGNAL_STRENGTH_GREAT */
+ // ;
+
+ private int[] mSsRsrpThresholds = new int[]
+ -120, /* SIGNAL_STRENGTH_POOR */
+ -113, /* SIGNAL_STRENGTH_MODERATE */
+ -103, /* SIGNAL_STRENGTH_GOOD */
+ -97, /* SIGNAL_STRENGTH_GREAT */
;
// Lifted from Default carrier configs and max range of SSRSRQ
@@ -276,6 +283,9 @@ public final class CellSignalStrengthNr extends CellSignalStrength implements Pa
@Override
@IntRange(from = SIGNAL_STRENGTH_NONE_OR_UNKNOWN, to = SIGNAL_STRENGTH_GREAT)
public int getLevel()
return mLevel;
@@ -298,6 +308,9 @@ public final class CellSignalStrengthNr extends CellSignalStrength implements Pa
/** @hide */
@Override
public void updateLevel(PersistableBundle cc, ServiceState ss)
if (cc == null)
mParametersUseForLevel = USE_SSRSRP;
else
@@ -343,6 +356,7 @@ public final class CellSignalStrengthNr extends CellSignalStrength implements Pa
Rlog.i(TAG, "Updated 5G NR SSSINR Level: " + ssSinrLevel);
// Apply the smaller value among three levels of three measures.
mLevel = Math.min(Math.min(ssRsrpLevel, ssRsrqLevel), ssSinrLevel);
以上是关于Android系统-SystemUI-Android11修改sim卡信号格数对应的信号强度值的主要内容,如果未能解决你的问题,请参考以下文章