Skip to content

Bug: Cellular signal strength level fetching approach skips 5G devices #11

@Himanshu-Kandwal

Description

@Himanshu-Kandwal

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.

Cellular signal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions