CMIIW but I don’t think we can programmatically pull the frequency band from the cellular network we use. That might be due to the restriction from the cellular network itself and/or the Android OS does not provide an API for retrieving the frequency band.
Thanks. You might not be wrong. I’ve been looking through what’s available to pull, in relation to network status. Cannot find band.
New device, getting a new carrier plan soon that will unrestrict 5G for me on their network. At that time I’ll see related (NR) status from a field test app that can display it. Will check once that access is made available to my device/wireless plan.
USA/AT&T/S25 Ultra (was unlocked)
I think there may still be a way to pull the NR frequency (assume it will show in MHz/GHz). I’ve seen that particular NR status field is there “UNKNOWN” to me at this time). If that’s assumed correctly, the band might be determined by cross-referencing that frequency with 3GPP band definitions. Maybe there is still an easier way out there, but I’ll revisit this after joining their 5G network.
The only way to get the frequency band is through MMI Codes (carrier secret codes). You might be interested in searching for that MMI Code specific to your phone type.
It seems to be. Some APIs for the OS can access network status, but some aspects (such as band and perhaps frequency) are not reachable that way. The carrier must not allow or there just isn’t a current method to extract that particular status.
Going into service mode (SIM status), using the MMI code for the Samsung device, I am able to see a field called “NR_BAND". Of course it is null along with the rest of the “NR" related fields at the moment (not on 5G network, not allowed with my old plan, that is the reason).
Field test apps may or may not be doing MMI codes to retrieve ~some~ status data, not sure and don’t know what each of them do.
Oh well. Might not be a way. Thanks for your input and thoughts, in anycase.