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

Commit 57b574e2 authored by Malcolm Chen's avatar Malcolm Chen
Browse files

Enable skipping validation by default.

Set KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG to 24 hours to enable
validation skipping if network is validated in the last 24 hours.

Bug: 140070796
Test: unittest
Change-Id: I07b087d731ed1661e5b0c51407ea3003769a3fd9
parent cc5a5939
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -36,6 +36,8 @@ import android.telephony.ims.ImsReasonInfo;
import com.android.internal.telephony.ICarrierConfigLoader;
import com.android.telephony.Rlog;

import java.util.concurrent.TimeUnit;

/**
 * Provides access to telephony configuration values that are carrier-specific.
 */
@@ -4007,7 +4009,7 @@ public class CarrierConfigManager {
        sDefaults.putAll(Wifi.getDefaults());
        sDefaults.putBoolean(ENABLE_EAP_METHOD_PREFIX_BOOL, false);
        sDefaults.putBoolean(KEY_SHOW_FORWARDED_NUMBER_BOOL, false);
        sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG, 0);
        sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG, TimeUnit.DAYS.toMillis(1));
    }

    /**