hal: Fix an issue on finding a wrong operator in case of no sim
operator info has mccmnc code including "0". hal would report
a wrong operator name in case of no sim. So set the default
to "00000" to avoid this problem.
Bug: 32751402
Change-Id: Id98dabfd8a0b7d0f1fc09ed4b3a82a6684a146a7
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index a7b51ab..3b79310 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -551,7 +551,7 @@
char mccmnc[PROPERTY_VALUE_MAX];
char *ret = NULL;
- property_get("gsm.sim.operator.numeric",mccmnc,"0");
+ property_get("gsm.sim.operator.numeric",mccmnc,"00000");
list_for_each(node, &operator_info_list) {
info_item = node_to_item(node, struct operator_info, list);
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index 62baf5b..023a9ef 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -562,7 +562,7 @@
char mccmnc[PROPERTY_VALUE_MAX];
char *ret = NULL;
- property_get("gsm.sim.operator.numeric",mccmnc,"0");
+ property_get("gsm.sim.operator.numeric",mccmnc,"00000");
list_for_each(node, &operator_info_list) {
info_item = node_to_item(node, struct operator_info, list);