Merge "Add a global setting to disable DNS over TLS"
am: 4a906c167b
Change-Id: Ie0f5586342b32c9e7c745ab9697b44158a920233
This commit is contained in:
@@ -9150,6 +9150,13 @@ public final class Settings {
|
|||||||
*/
|
*/
|
||||||
public static final String DEFAULT_DNS_SERVER = "default_dns_server";
|
public static final String DEFAULT_DNS_SERVER = "default_dns_server";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether to disable DNS over TLS (boolean)
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
public static final String DNS_TLS_DISABLED = "dns_tls_disabled";
|
||||||
|
|
||||||
/** {@hide} */
|
/** {@hide} */
|
||||||
public static final String
|
public static final String
|
||||||
BLUETOOTH_HEADSET_PRIORITY_PREFIX = "bluetooth_headset_priority_";
|
BLUETOOTH_HEADSET_PRIORITY_PREFIX = "bluetooth_headset_priority_";
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ import java.util.HashSet;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
/** Tests that ensure appropriate settings are backed up. */
|
/** Tests that ensure appropriate settings are backed up. */
|
||||||
|
@Presubmit
|
||||||
@RunWith(AndroidJUnit4.class)
|
@RunWith(AndroidJUnit4.class)
|
||||||
@SmallTest
|
@SmallTest
|
||||||
public class SettingsBackupTest {
|
public class SettingsBackupTest {
|
||||||
@@ -177,6 +178,7 @@ public class SettingsBackupTest {
|
|||||||
Settings.Global.DNS_RESOLVER_MIN_SAMPLES,
|
Settings.Global.DNS_RESOLVER_MIN_SAMPLES,
|
||||||
Settings.Global.DNS_RESOLVER_SAMPLE_VALIDITY_SECONDS,
|
Settings.Global.DNS_RESOLVER_SAMPLE_VALIDITY_SECONDS,
|
||||||
Settings.Global.DNS_RESOLVER_SUCCESS_THRESHOLD_PERCENT,
|
Settings.Global.DNS_RESOLVER_SUCCESS_THRESHOLD_PERCENT,
|
||||||
|
Settings.Global.DNS_TLS_DISABLED,
|
||||||
Settings.Global.DOCK_SOUNDS_ENABLED_WHEN_ACCESSIBILITY,
|
Settings.Global.DOCK_SOUNDS_ENABLED_WHEN_ACCESSIBILITY,
|
||||||
Settings.Global.DOWNLOAD_MAX_BYTES_OVER_MOBILE,
|
Settings.Global.DOWNLOAD_MAX_BYTES_OVER_MOBILE,
|
||||||
Settings.Global.DOWNLOAD_RECOMMENDED_MAX_BYTES_OVER_MOBILE,
|
Settings.Global.DOWNLOAD_RECOMMENDED_MAX_BYTES_OVER_MOBILE,
|
||||||
|
|||||||
@@ -505,6 +505,12 @@
|
|||||||
<!-- [CHAR LIMIT=NONE] Label for displaying Bluetooth Audio Codec Parameters while streaming -->
|
<!-- [CHAR LIMIT=NONE] Label for displaying Bluetooth Audio Codec Parameters while streaming -->
|
||||||
<string name="bluetooth_select_a2dp_codec_streaming_label">Streaming: <xliff:g id="streaming_parameter">%1$s</xliff:g></string>
|
<string name="bluetooth_select_a2dp_codec_streaming_label">Streaming: <xliff:g id="streaming_parameter">%1$s</xliff:g></string>
|
||||||
|
|
||||||
|
<!-- Title of the developer option for DNS over TLS. -->
|
||||||
|
<string name="dns_tls">DNS over TLS</string>
|
||||||
|
<!-- Summary to explain the developer option for DNS over TLS. This allows the user to
|
||||||
|
request that the system attempt TLS with all DNS servers, or none. -->
|
||||||
|
<string name="dns_tls_summary">If enabled, attempt DNS over TLS on port 853.</string>
|
||||||
|
|
||||||
<!-- setting Checkbox summary whether to show options for wireless display certification -->
|
<!-- setting Checkbox summary whether to show options for wireless display certification -->
|
||||||
<string name="wifi_display_certification_summary">Show options for wireless display certification</string>
|
<string name="wifi_display_certification_summary">Show options for wireless display certification</string>
|
||||||
<!-- Setting Checkbox summary whether to enable Wifi verbose Logging [CHAR LIMIT=80] -->
|
<!-- Setting Checkbox summary whether to enable Wifi verbose Logging [CHAR LIMIT=80] -->
|
||||||
|
|||||||
@@ -1980,7 +1980,8 @@ public class NetworkManagementService extends INetworkManagementService.Stub
|
|||||||
|
|
||||||
final String[] domainStrs = domains == null ? new String[0] : domains.split(" ");
|
final String[] domainStrs = domains == null ? new String[0] : domains.split(" ");
|
||||||
final int[] params = { sampleValidity, successThreshold, minSamples, maxSamples };
|
final int[] params = { sampleValidity, successThreshold, minSamples, maxSamples };
|
||||||
final boolean useTls = false;
|
final boolean useTls = Settings.Global.getInt(resolver,
|
||||||
|
Settings.Global.DNS_TLS_DISABLED, 0) == 0;
|
||||||
final String tlsHostname = "";
|
final String tlsHostname = "";
|
||||||
final String[] tlsFingerprints = new String[0];
|
final String[] tlsFingerprints = new String[0];
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user