Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fea2049 authored by Tom Cherry's avatar Tom Cherry
Browse files

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
parent 7176e525
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -551,7 +551,7 @@ static char *get_current_operator()
    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);
+1 −1
Original line number Diff line number Diff line
@@ -562,7 +562,7 @@ static char *get_current_operator()
    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);