Skip to content

Instantly share code, notes, and snippets.

View wuseman's full-sized avatar
🎯

wuseman wuseman

🎯
View GitHub Profile
@mrlnc
mrlnc / adb-5gnr-status.md
Created March 4, 2021 12:49
adb: get 5G-NR connection status

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