This repository has been archived by the owner on Mar 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
00004-use-cloudflare-dns.patch
50 lines (44 loc) · 2.89 KB
/
00004-use-cloudflare-dns.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--- a/frameworks/base/core/res/res/values/config.xml 2020-10-12 17:04:21.290507195 +1100
+++ b/frameworks/base/core/res/res/values/config.xml 2020-10-12 17:05:11.421134762 +1100
@@ -1825,7 +1825,7 @@
<bool name="config_bluetooth_default_profiles">true</bool>
<!-- IP address of the dns server to use if nobody else suggests one -->
- <string name="config_default_dns_server" translatable="false">8.8.8.8</string>
+ <string name="config_default_dns_server" translatable="false">1.0.0.1</string>
<!-- The default mobile provisioning apn. Empty by default, maybe overridden by
an mcc/mnc specific config.xml -->
--- a/frameworks/base/services/core/java/com/android/server/connectivity/NetworkDiagnostics.java 2020-10-12 17:12:06.250819855 +1100
+++ b/frameworks/base/services/core/java/com/android/server/connectivity/NetworkDiagnostics.java 2020-10-12 17:12:44.297812971 +1100
@@ -97,9 +97,9 @@
public class NetworkDiagnostics {
private static final String TAG = "NetworkDiagnostics";
- private static final InetAddress TEST_DNS4 = NetworkUtils.numericToInetAddress("8.8.8.8");
+ private static final InetAddress TEST_DNS4 = NetworkUtils.numericToInetAddress("1.0.0.1");
private static final InetAddress TEST_DNS6 = NetworkUtils.numericToInetAddress(
- "2001:4860:4860::8888");
+ "2606:4700:4700::1001");
// For brevity elsewhere.
private static final long now() {
--- a/frameworks/base/packages/SettingsLib/res/values/strings.xml 2020-10-12 17:28:21.302796549 +1100
+++ b/frameworks/base/packages/SettingsLib/res/values/strings.xml 2020-10-12 17:29:16.059298662 +1100
@@ -1151,9 +1151,9 @@
<!-- Hint text for the IP address -->
<string name="wifi_ip_address_hint" translatable="false">192.168.1.128</string>
<!-- Hint text for DNS -->
- <string name="wifi_dns1_hint" translatable="false">8.8.8.8</string>
+ <string name="wifi_dns1_hint" translatable="false">1.0.0.1</string>
<!-- Hint text for DNS -->
- <string name="wifi_dns2_hint" translatable="false">8.8.4.4</string>
+ <string name="wifi_dns2_hint" translatable="false">1.1.1.1</string>
<!-- Hint text for the gateway -->
<string name="wifi_gateway_hint" translatable="false">192.168.1.1</string>
<!-- Hint text for network prefix length -->
--- a/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/TetheringConfiguration.java 2020-10-12 17:31:07.913238850 +1100
+++ b/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/TetheringConfiguration.java 2020-10-12 17:31:37.199437714 +1100
@@ -70,7 +70,7 @@
"192.168.48.2", "192.168.48.254", "192.168.49.2", "192.168.49.254",
};
- private static final String[] DEFAULT_IPV4_DNS = {"8.8.4.4", "8.8.8.8"};
+ private static final String[] DEFAULT_IPV4_DNS = {"1.0.0.1", "1.1.1.1"};
/**
* Override enabling BPF offload configuration for tethering.