OSDN Git Service

Hide APNs with type="ia" and apn=""
authorSanket Padawe <sanketpadawe@google.com>
Fri, 23 Jan 2015 17:53:48 +0000 (09:53 -0800)
committerSanket Padawe <sanketpadawe@google.com>
Fri, 23 Jan 2015 17:53:48 +0000 (09:53 -0800)
APNs with type="ia" and no APN address (apn="") are used to
prevent an initial attach APN from being sent to the modem. This
in turn prevents the LTE ESM information procedure from being
used during the LTE attach. These APNs are meaningless and confusing to end users - so this
change hides them from the APN list.

Bug: 19101183
Change-Id: I9aacf787f8c175a301ad546f972f8972aad2a6b3

src/com/android/settings/ApnSettings.java

index 836a74d..61f741b 100644 (file)
@@ -209,7 +209,7 @@ public class ApnSettings extends SettingsPreferenceFragment implements
         Log.d(TAG, "mccmnc = " + mccmnc);
         final String where = "numeric=\""
             + mccmnc
-            + "\"";
+            + "\" AND NOT (type='ia' AND (apn=\"\" OR apn IS NULL))";
 
         Cursor cursor = getContentResolver().query(Telephony.Carriers.CONTENT_URI, new String[] {
                 "_id", "name", "apn", "type"}, where, null,