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

Commit f9a96962 authored by Meng Wang's avatar Meng Wang
Browse files

Should not try IMS or EMERGENCY APN for initial-attach.

This helps to avoid the problem where the auto-generated
IMS or EMERGENCY APN being used for initial-attach due to
racing conditions.

Some carriers may require IMS APN for initial-attach. That case,
the IA type should have been added to the APN explicitly to prevent
the DEFAULT APN from being used.

Bug: 186120396
Test: manual
Change-Id: Ic5e449e514a996f90b815e56fe136ac1f453496e
Merged-In: Ic5e449e514a996f90b815e56fe136ac1f453496e
parent 6c914b4b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4960,7 +4960,7 @@ public class CarrierConfigManager {
        sDefaults.putBoolean(KEY_NETWORK_TEMP_NOT_METERED_SUPPORTED_BOOL, false);
        sDefaults.putInt(KEY_DEFAULT_RTT_MODE_INT, 0);
        sDefaults.putStringArray(KEY_ALLOWED_INITIAL_ATTACH_APN_TYPES_STRING_ARRAY,
                new String[]{"ia", "default", "ims", "mms", "dun", "emergency"});
                new String[]{"ia", "default", "mms", "dun"});
        sDefaults.putBoolean(KEY_STORE_SIM_PIN_FOR_UNATTENDED_REBOOT_BOOL, true);
        sDefaults.putBoolean(KEY_HIDE_ENABLE_2G, false);
        sDefaults.putBoolean(KEY_DISPLAY_NO_DATA_NOTIFICATION_ON_PERMANENT_FAILURE_BOOL, false);