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

Commit dccd67a9 authored by cyanogen's avatar cyanogen
Browse files

Revert "Changing string for apn from empty to when no string is provided by...

Revert "Changing string for apn from empty to  when no string is provided by SIM Card. This fixes the roaming problem with some virtual network providers, since some of them have an empty string (check with getprop gsm.sim.operator.alpha). For sure no provider will write empty in their SIM cards. Data roaming can be disabled after that. Roaming in foreign countrys will still work since it checks the MCC (Mobile Country Code). Thanks to my friend Sewi for helping me finding this. :)"

This reverts commit bc097e94.
parent bf68c704
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1286,7 +1286,7 @@ final class GsmServiceStateTracker extends ServiceStateTracker {
     * @return true for roaming state set
     */
    private boolean isRoamingBetweenOperators(boolean gsmRoaming, ServiceState s) {
        String spn = SystemProperties.get(TelephonyProperties.PROPERTY_ICC_OPERATOR_ALPHA, "");
        String spn = SystemProperties.get(TelephonyProperties.PROPERTY_ICC_OPERATOR_ALPHA, "empty");

        String onsl = s.getOperatorAlphaLong();
        String onss = s.getOperatorAlphaShort();