[Bugfix][T108-yd][bug-view-2187][voice] sometime dial number string will have a plus number in cb
Only Configure:No
Affected branchmaster
Affected module:voice
Is it affected on:asr
Doc Update:No
Change-Id: Ic5243b9169a06460bceb877b6294784adc6d48c6
diff --git a/mbtk/libmbtk_lib/ril/v2/mbtk_ril_api.c b/mbtk/libmbtk_lib/ril/v2/mbtk_ril_api.c
index 014b2e9..3087c68 100755
--- a/mbtk/libmbtk_lib/ril/v2/mbtk_ril_api.c
+++ b/mbtk/libmbtk_lib/ril/v2/mbtk_ril_api.c
@@ -1746,7 +1746,7 @@
return MBTK_RIL_ERR_PORT;
}
- return ril_req_process(sim_id, port_info->port, RIL_MSG_ID_NET_CELL, info, strlen(info), response, FALSE, 0);
+ return ril_req_process(sim_id, port_info->port, RIL_MSG_ID_NET_CELL, info, strlen(info)+1, response, FALSE, 0); // strlen(info)+1 is wrote by hq at 2025/08/26 for bug 2187
}
/*
@@ -3061,7 +3061,7 @@
return MBTK_RIL_ERR_PORT;
}
- return ril_req_process(sim_id, port_info->port, RIL_MSG_ID_CALL_START, phone_number, strlen(phone_number), NULL, FALSE, 0);
+ return ril_req_process(sim_id, port_info->port, RIL_MSG_ID_CALL_START, phone_number, strlen(phone_number)+1, NULL, FALSE, 0); // strlen(phone_number)+1 is wrote by hq at 2025/08/26 for bug 2187
}
/*
@@ -3522,7 +3522,7 @@
return MBTK_RIL_ERR_PORT;
}
- return ril_req_process(MBTK_SIM_1, port_info->port, RIL_MSG_ID_ECALL_MSD, msd, strlen(msd), NULL, FALSE, 0);
+ return ril_req_process(MBTK_SIM_1, port_info->port, RIL_MSG_ID_ECALL_MSD, msd, strlen(msd)+1, NULL, FALSE, 0); // strlen(msd)+1 is wrote by hq at 2025/08/26 for bug 2187
}
/*
@@ -3833,7 +3833,7 @@
return MBTK_RIL_ERR_PORT;
}
- return ril_req_process(MBTK_SIM_1, port_info->port, RIL_MSG_ID_ECALL_SMS_NUM, number, strlen(number), NULL, FALSE, 0);
+ return ril_req_process(MBTK_SIM_1, port_info->port, RIL_MSG_ID_ECALL_SMS_NUM, number, strlen(number)+1, NULL, FALSE, 0); // strlen(num)+1 is wrote by hq at 2025/08/26 for bug 2187
}
/*
diff --git a/mbtk/mbtk_rild_v2/src/ril_call.c b/mbtk/mbtk_rild_v2/src/ril_call.c
index fe9d374..97595fa 100755
--- a/mbtk/mbtk_rild_v2/src/ril_call.c
+++ b/mbtk/mbtk_rild_v2/src/ril_call.c
@@ -361,7 +361,7 @@
{
case RIL_MSG_ID_CALL_START: // <string> phone number
{
- if(pack->data_len == 0 || pack->data == NULL)
+ if(pack->data_len == 1 || pack->data == NULL) // data_len == 1 is wrote by hq at 2025/08/26 for bug 2187
{
err = MBTK_RIL_ERR_UNSUPPORTED;
}
diff --git a/mbtk/mbtk_rild_v2/src/ril_ecall.c b/mbtk/mbtk_rild_v2/src/ril_ecall.c
index 3a13b61..2924ac5 100755
--- a/mbtk/mbtk_rild_v2/src/ril_ecall.c
+++ b/mbtk/mbtk_rild_v2/src/ril_ecall.c
@@ -945,7 +945,7 @@
{
uint8 msd[MBTK_ECALL_MSD_LEN_MAX];
memset(msd, 0, sizeof(msd));
- if(pack->data_len == 0 || pack->data == NULL)
+ if(pack->data_len == 1 || pack->data == NULL) // data_len == 1 is wrote by hq at 2025/08/26 for bug 2187
{
if(req_ecall_msd_get(cli_info->sim_id, cli_info->port, msd, &cme_err) || cme_err != MBTK_RIL_ERR_CME_NON)
{
@@ -1192,7 +1192,7 @@
{
uint8 number[RIL_MAX_NUMBER_LEN];
memset(number, 0, sizeof(number));
- if(pack->data_len == 0 || pack->data == NULL)
+ if(pack->data_len == 1 || pack->data == NULL) // data_len == 1 is wrote by hq at 2025/08/26 for bug 2187
{
if(req_ecall_sms_num_get(cli_info->sim_id, cli_info->port, number, &cme_err) || strlen((char*)number) == 0 || cme_err != MBTK_RIL_ERR_CME_NON)
{
diff --git a/mbtk/mbtk_rild_v2/src/ril_net.c b/mbtk/mbtk_rild_v2/src/ril_net.c
index 7935352..427c535 100755
--- a/mbtk/mbtk_rild_v2/src/ril_net.c
+++ b/mbtk/mbtk_rild_v2/src/ril_net.c
@@ -1674,7 +1674,7 @@
}
case RIL_MSG_ID_NET_CELL:
{
- if(pack->data_len == 0 || pack->data == NULL) // Get net cell.
+ if(pack->data_len == 1 || pack->data == NULL) // Get net cell. // data_len == 1 is wrote by hq at 2025/08/26 for bug 2187
{
if(req_cell_info_get(cli_info->sim_id, cli_info->port, &cme_err) || cme_err != MBTK_RIL_ERR_CME_NON)
{