Devices running Android 10 or higher can support 5G non-standalone (NSA). 5G NSA is a solution for 5G networks where the network is supported by the existing 4G infrastructure. On Android 10, devices can display a 5G icon on the status bar when a device connects to a 5G network.
To configure how 5G icons are displayed on the status bar, carriers can use the
There are four states in 5G NSA:
- Device connected to 5G cell as the secondary cell and using millimeter wave.
- Device connected to 5G cell as the secondary cell but not using millimeter wave.
- Device camped on a network that has 5G capability (device doesn't have to be connected to a 5G cell as a secondary cell) and the use of 5G isn't restricted.
- Device camped on a network that has 5G capability (device doesn't have to be connected to a 5G cell as a secondary cell) but the use of 5G is restricted.
The configuration string contains multiple key-value pairs separated by commas. For each pair, the key and value are separated by a colon. The keys in the configuration string correspond to one of the four 5G states described above and must be one of the following:
The values in the configuration string must be valid icon names that match the
names of icons in the
/packages/SystemUI/res/ directory. Two default icons
for 5G NSA are available:
Figure 1. Default
5G_PLUS 5G icons
The following is an example of a configuration string for 5G icons in
To customize the icons that carriers can use for a specific status, add a
MobileIconGroup object in
The icon name in
MobileIconGroup must match the icon name used in
CarrierConfig. The following shows an example of how to add a customized icon
with the name "5G_PLUS" to
static final MobileIconGroup NR_5G_PLUS = new MobileIconGroup( "5G_PLUS", null, null, AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH, 0, 0, 0, 0, AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH, R.string.data_connection_5g_plus, TelephonyIcons.ICON_5G_PLUS, true);
To validate your implementation, make sure a 5G icon is displayed on the status bar when the device is connected to a 5G cell.