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

Commit 8350fd45 authored by Alexandre Roux's avatar Alexandre Roux
Browse files

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
parent 7126d3d6
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.
@@ -251,7 +252,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
@@ -4624,7 +4624,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 {