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

Commit 38bfcb4a authored by Stuart Scott's avatar Stuart Scott Committed by Android (Google) Code Review
Browse files

Merge "Get the MCC/MNC using defaults." into lmp-sprout-dev

parents 22c8a434 015f3b46
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -1501,7 +1501,16 @@ public class TelephonyManager {
     * @see #getSimState
     */
    public String getSimOperator() {
        long subId = getDefaultSubscription();
        long subId = SubscriptionManager.getDefaultDataSubId();
        if (!SubscriptionManager.isUsableSubIdValue(subId)) {
            subId = SubscriptionManager.getDefaultSmsSubId();
            if (!SubscriptionManager.isUsableSubIdValue(subId)) {
                subId = SubscriptionManager.getDefaultVoiceSubId();
                if (!SubscriptionManager.isUsableSubIdValue(subId)) {
                    subId = SubscriptionManager.getDefaultSubId();
                }
            }
        }
        Rlog.d(TAG, "getSimOperator(): default subId=" + subId);
        return getSimOperator(subId);
    }