I need to use ADB and check if the phone is currently on 5GNR or not. gsm.network.type
doesn't indicate if 5G-NSA bearers are active. No matter if LTE, LTE+ or 5G indicators are shown, the network type remains the same:
OnePlus8:/ # getprop gsm.network.type
LTE,Unknown
Workaround:
logcat /data/com.android.providers.telephony/databases/telephony.db | grep -i update5GIcon