May 24, 2022

I want to retrieve the ARFCN (Channel Frequency Number) while the device is connected to a 5G network, which can be of 2 certain types (SA and NSA). The type (NSA) I have problems with (and it is the type which most of the actual 5G networks fall into) uses a 4G LTE network cell as a primary cell.

I use the method PhoneStateListener.onCellInfoChanged(List<CellInfo> cellInfo) to retrieve all the cells available (connected or not) to my device, and although my phone displays clearly the 5G indicator (and I get the 5G signal my device is receiving through PhoneStateListener.onSignalStrengthsChanged(SignalStrength signalStrength)) none of them is an instance of CellInfoNr, thus resulting impossible for me to get the ARFCN which is only available through a get method in the CellInfo class.

Thank you in advance