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

Commit 0c488a36 authored by SongFerngWang's avatar SongFerngWang
Browse files

Add the carrier config to control the preferred network 3G item

Bug: 310639009
Test: build pass
Change-Id: I7daef0d9b8137755730b8568b32e3de0877cd765
parent fd427f3d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -43359,6 +43359,7 @@ package android.telephony {
    field public static final String KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG = "opportunistic_network_ping_pong_time_long";
    field public static final String KEY_PING_TEST_BEFORE_DATA_SWITCH_BOOL = "ping_test_before_data_switch_bool";
    field public static final String KEY_PREFER_2G_BOOL = "prefer_2g_bool";
    field @FlaggedApi("com.android.internal.telephony.flags.hide_prefer_3g_item") public static final String KEY_PREFER_3G_VISIBILITY_BOOL = "prefer_3g_visibility_bool";
    field public static final String KEY_PREMIUM_CAPABILITY_MAXIMUM_DAILY_NOTIFICATION_COUNT_INT = "premium_capability_maximum_daily_notification_count_int";
    field public static final String KEY_PREMIUM_CAPABILITY_MAXIMUM_MONTHLY_NOTIFICATION_COUNT_INT = "premium_capability_maximum_monthly_notification_count_int";
    field public static final String KEY_PREMIUM_CAPABILITY_NETWORK_SETUP_TIME_MILLIS_LONG = "premium_capability_network_setup_time_millis_long";
+7 −0
Original line number Diff line number Diff line
@@ -524,6 +524,12 @@ public class CarrierConfigManager {
     */
    public static final String KEY_PREFER_2G_BOOL = "prefer_2g_bool";
    /**
     * Used in the Preferred Network Types menu to determine if the 3G option is displayed.
     */
    @FlaggedApi(Flags.FLAG_HIDE_PREFER_3G_ITEM)
    public static final String KEY_PREFER_3G_VISIBILITY_BOOL = "prefer_3g_visibility_bool";
    /**
     * Used in Cellular Network Settings for preferred network type to show 4G only mode.
     * @hide
@@ -10061,6 +10067,7 @@ public class CarrierConfigManager {
        sDefaults.putBoolean(KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL, false);
        sDefaults.putBoolean(KEY_OPERATOR_SELECTION_EXPAND_BOOL, true);
        sDefaults.putBoolean(KEY_PREFER_2G_BOOL, false);
        sDefaults.putBoolean(KEY_PREFER_3G_VISIBILITY_BOOL, true);
        sDefaults.putBoolean(KEY_4G_ONLY_BOOL, false);
        sDefaults.putBoolean(KEY_SHOW_APN_SETTING_CDMA_BOOL, false);
        sDefaults.putBoolean(KEY_SHOW_CDMA_CHOICES_BOOL, false);