Android Q added a new network type, NETWORK_TYPE_NR, for 5G, it is not available for Android Pie. Yet the just released Samsung S10 5G has fully supported 5G function, it can show a 5G icon on the status bar when it is on the 5G network.

Is it possible for a third-party app to know the phone is on a 5G network for a Pie device?

Any help will be appreciated.

The following link is the definition for the new network type. It is not available on the Android Pie branch.