//QMI message get_plmn_name
Please see below qcril log.
[ 63/ 0] MSG 06:55:18.860000 Android QCRIL/Low [ DiagLogger.cpp 82] [qcril_qmi_nas] RIL[0][qcril_qmi_nas.cpp: 16698] [DispatcherModul(1401,1505)] qcril_qmi_util_prefer_spn_over_plmn_name: is_nw_scan 1
//spn_plmn_name_preference 0===>QMI_RIL_NAS_DO_NOT_PREFER_SPN
[ 63/ 0] MSG 06:55:18.860000 Android QCRIL/Low [ DiagLogger.cpp 82] [qcril_qmi_nas] RIL[0][qcril_qmi_nas.cpp: 16699] [DispatcherModul(1401,1505)] qcril_qmi_util_prefer_spn_over_plmn_name: spn_plmn_name_preference 0
[ 63/ 0] MSG 06:55:18.860000 Android QCRIL/Low [ DiagLogger.cpp 82] [qcril_qmi_nas] RIL[0][qcril_qmi_nas.cpp: 16705] [DispatcherModul(1401,1505)] qcril_qmi_util_prefer_spn_over_plmn_name: spn is present
[ 63/ 0] MSG 06:55:18.860000 Android QCRIL/Low [ DiagLogger.cpp 82] [qcril_qmi_nas] RIL[0][qcril_qmi_nas.cpp: 16711] [DispatcherModul(1401,1505)] qcril_qmi_util_prefer_spn_over_plmn_name: plmn_name is present
[ 63/ 0] MSG 06:55:18.860000 Android QCRIL/Low [ DiagLogger.cpp 82] [qcril_qmi_nas] RIL[0][qcril_qmi_nas.cpp: 43727] [DispatcherModul(1401,1505)] qcril_qmi_nas_check_long_short_name_as_mcc_mnc: MCC 404, MNC 20, QMI_NAS_EONS_NAME Vodafone IN
BTW, this is controlled by android system prop “persist.vendor.radio.prefer_spn”
It is 0 in DUT/REF device, the value 0 is our default value/suggestion value.
qcril_qmi_nas.cpp
#define QMI_RIL_PREFER_SPN_OVER_PLMN_NAME “persist.vendor.radio.prefer_spn”
The user needs to set “persist.vendor.radio.prefer_spn” to the following values to prefer SPN over the PLMN name in specific scenarios:
0 -> Always prefer PLMN over SPN when both of them are present. (Default)
1 -> Prefer SPN over PLMN for OPERATOR_NAME and PLMN over SPN for NW_SCAN results when both of them are present.
2 -> Prefer PLMN over SPN for OPERATOR_NAME and SPN over PLMN for NW_SCAN results when both of them are present.
3 -> Always prefer SPN over PLMN when both of them are present.