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

Commit 150b65fc authored by Robert Greenwalt's avatar Robert Greenwalt
Browse files

Remove special code for fake CDMA APN

revert of https://android-review.googlesource.com/#/c/62943/2

Solved the need for sprint using bearer-specific APNs instead
as the phone type is not a reliable trigger.

bug: 9315957
Change-Id: I0e5545ab4706df2c5917c7534291644c5d8797b3
parent cfc20537
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
@@ -1908,23 +1908,6 @@ public final class DcTracker extends DcTrackerBase {
            }
        }

        if (mAllApnSettings.isEmpty() && mPhone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) {
            // Create dummy data profile.
            if (DBG) log("createAllApnList: Creating dummy apn for cdma operator:" + operator);
            String[] mDefaultApnTypes = {
                    PhoneConstants.APN_TYPE_DEFAULT,
                    PhoneConstants.APN_TYPE_MMS,
                    PhoneConstants.APN_TYPE_SUPL,
                    PhoneConstants.APN_TYPE_HIPRI,
                    PhoneConstants.APN_TYPE_FOTA,
                    PhoneConstants.APN_TYPE_IMS,
                    PhoneConstants.APN_TYPE_CBS };
            ApnSetting apn = new ApnSetting(apnTypeToId(PhoneConstants.APN_TYPE_DEFAULT), operator,
                    null, null, null, null, null, null, null, null, null,
                    RILConstants.SETUP_DATA_AUTH_PAP_CHAP, mDefaultApnTypes, "IP", "IP", true, 0);
            mAllApnSettings.add(apn);
        }

        if (mAllApnSettings.isEmpty()) {
            if (DBG) log("createAllApnList: No APN found for carrier: " + operator);
            mPreferredApn = null;