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

Commit 40c946b3 authored by Xiao Ma's avatar Xiao Ma Committed by Automerger Merge Worker
Browse files

Enable DHCP IPv6-only preferred option on Android Q and above by default. am:...

Enable DHCP IPv6-only preferred option on Android Q and above by default. am: 0de4ea5d am: 30ec3842 am: 46e29241

Original change: https://android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/1457037

Change-Id: I20472f78c1b2d0a7f21def1d99ff0933d6867729
parents c886ce12 46e29241
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -562,14 +562,12 @@ public class DhcpClient extends StateMachine {
    /**
     * check whether or not to support IPv6-only preferred option.
     *
     * IPv6-only preferred option is supported on Android S by default if there is no experiment
     * flag set to disable this feature explicitly.
     * IPv6-only preferred option is enabled by default if there is no experiment flag set to
     * disable this feature explicitly.
     */
    public boolean isIPv6OnlyPreferredModeEnabled() {
        final boolean defaultEnabled =
                ShimUtils.isReleaseOrDevelopmentApiAbove(Build.VERSION_CODES.R);
        return mDependencies.isFeatureEnabled(mContext, DHCP_IPV6_ONLY_PREFERRED_VERSION,
                defaultEnabled);
                true /* defaultEnabled */);
    }

    private void recordMetricEnabledFeatures() {