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

Commit fcc79771 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Generate default policy for devices without IMSI.

Change-Id: I38500919ea60f78d99684608589c8fc3092bf239
parent 8a8743ef
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -385,10 +385,6 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
    private void ensureActiveMobilePolicyLocked() {
        if (LOGV) Slog.v(TAG, "ensureActiveMobilePolicyLocked()");
        final String subscriberId = getActiveSubscriberId();
        if (subscriberId == null) {
            if (LOGV) Slog.v(TAG, "no active mobile network, ignoring policy check");
            return;
        }

        // examine to see if any policy is defined for active mobile
        boolean mobileDefined = false;
@@ -412,6 +408,7 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {

            mNetworkPolicy.add(new NetworkPolicy(
                    TEMPLATE_MOBILE_ALL, subscriberId, cycleDay, 4 * GB_IN_BYTES, LIMIT_DISABLED));
            writePolicyLocked();
        }
    }