Description
In NetworkPerformanceManager.kt the current implementation for retrieving the cellular signal strength level has a critical bug that prevents it from correctly detecting 5G (NR) signal strength on devices running Android 10 (API 29) and above.
It correctly handles LTE, GSM, WCDMA, and CDMA, but not NR (New Radio / 5G) — as described in the official documentation.
Because of this, the code falls into the else block and returns 0 for 5G networks, which is incorrect.
Expected Behavior
Instead of returning 0 for 5G connections, it should return the actual signal strength level.
Solution
Add one more explicit condition to check for CellInfoNr:
is CellInfoNr -> info.cellSignalStrength.level