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

Commit 96046e19 authored by Alexandre Roux's avatar Alexandre Roux Committed by Aayush Gupta
Browse files

base: Connectivity check use /e/ infra by default.

based on 9ab201d7 fixes https://gitlab.e.foundation/e/os/android_frameworks_base/-/issues/31



Change-Id: I006e4457f84f97660908a3a49b44eee453d0eea7
Signed-off-by: Aayush Gupta's avatarAayush Gupta <theimpulson@e.email>
parent e4709e18
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (C) 2008 The Android Open Source Project
 * Copyright (C) 2020 e.foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -278,7 +279,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
     * (preferably via runtime resource overlays).
     */
    private static final String DEFAULT_CAPTIVE_PORTAL_HTTP_URL =
            "http://connectivitycheck.gstatic.com/generate_204";
            "http://204.ecloud.global";

    // TODO: create better separation between radio types and network types

+1 −1
Original line number Diff line number Diff line
@@ -4520,7 +4520,7 @@ public class ConnectivityServiceTest {
    @Test
    public void testGetCaptivePortalServerUrl() throws Exception {
        String url = mCm.getCaptivePortalServerUrl();
        assertEquals("http://connectivitycheck.gstatic.com/generate_204", url);
        assertEquals("http://204.ecloud.global", url);
    }

    private static class TestNetworkPinner extends NetworkPinner {