Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions core/res/res/values/custom_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,7 @@
<!-- Whether to cleanup fingerprints upon connection to the daemon and when user switches -->
<bool name="config_cleanupUnusedFingerprints">true</bool>

<!-- Whether device ignores the RSSNR signal implementation -->
<bool name="config_ignoreRssnrSignalLevel">false</bool>

</resources>
3 changes: 3 additions & 0 deletions core/res/res/values/custom_symbols.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,7 @@
<!-- Icon packs -->
<java-symbol type="drawable" name="adaptive_icon_drawable_wrapper" />

<!-- Whether device ignores the RSSNR signal implementation -->
<java-symbol type="bool" name="config_ignoreRssnrSignalLevel" />

</resources>
7 changes: 7 additions & 0 deletions telephony/java/android/telephony/SignalStrength.java
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,13 @@ else if (mLteRssnr >= -200)
+ rsrpIconLevel + " snrIconLevel:" + snrIconLevel
+ " lteRsrpBoost:" + mLteRsrpBoost);

boolean rssnrIgnored = Resources.getSystem().getBoolean(
com.android.internal.R.bool.config_ignoreRssnrSignalLevel);
if (rssnrIgnored) {
// Ignore RSSNR
if (rsrpIconLevel != -1) return rsrpIconLevel;
}

/* Choose a measurement type to use for notification */
if (snrIconLevel != -1 && rsrpIconLevel != -1) {
/*
Expand Down