Merge "Add a developer option for controlling DNS over TLS" am: c8207de343
am: ed97eaeb4a
am: 1fd46833ef
Change-Id: I30f6c28acc3825ff51190d1d54494cac5d774497
This commit is contained in:
@@ -270,6 +270,11 @@
|
|||||||
android:entries="@array/bluetooth_a2dp_codec_ldac_playback_quality_titles"
|
android:entries="@array/bluetooth_a2dp_codec_ldac_playback_quality_titles"
|
||||||
android:entryValues="@array/bluetooth_a2dp_codec_ldac_playback_quality_values" />
|
android:entryValues="@array/bluetooth_a2dp_codec_ldac_playback_quality_values" />
|
||||||
|
|
||||||
|
<SwitchPreference
|
||||||
|
android:key="dns_tls"
|
||||||
|
android:title="@string/dns_tls"
|
||||||
|
android:summary="@string/dns_tls_summary" />
|
||||||
|
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
|
|
||||||
<PreferenceCategory android:key="debug_input_category"
|
<PreferenceCategory android:key="debug_input_category"
|
||||||
|
@@ -223,6 +223,8 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
|||||||
private static final String BLUETOOTH_SELECT_A2DP_CHANNEL_MODE_KEY = "bluetooth_select_a2dp_channel_mode";
|
private static final String BLUETOOTH_SELECT_A2DP_CHANNEL_MODE_KEY = "bluetooth_select_a2dp_channel_mode";
|
||||||
private static final String BLUETOOTH_SELECT_A2DP_LDAC_PLAYBACK_QUALITY_KEY = "bluetooth_select_a2dp_ldac_playback_quality";
|
private static final String BLUETOOTH_SELECT_A2DP_LDAC_PLAYBACK_QUALITY_KEY = "bluetooth_select_a2dp_ldac_playback_quality";
|
||||||
|
|
||||||
|
private static final String DNS_TLS_KEY = "dns_tls";
|
||||||
|
|
||||||
private static final String INACTIVE_APPS_KEY = "inactive_apps";
|
private static final String INACTIVE_APPS_KEY = "inactive_apps";
|
||||||
|
|
||||||
private static final String IMMEDIATELY_DESTROY_ACTIVITIES_KEY
|
private static final String IMMEDIATELY_DESTROY_ACTIVITIES_KEY
|
||||||
@@ -300,6 +302,8 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
|||||||
private ListPreference mBluetoothSelectA2dpChannelMode;
|
private ListPreference mBluetoothSelectA2dpChannelMode;
|
||||||
private ListPreference mBluetoothSelectA2dpLdacPlaybackQuality;
|
private ListPreference mBluetoothSelectA2dpLdacPlaybackQuality;
|
||||||
|
|
||||||
|
private SwitchPreference mDnsTls;
|
||||||
|
|
||||||
private SwitchPreference mOtaDisableAutomaticUpdate;
|
private SwitchPreference mOtaDisableAutomaticUpdate;
|
||||||
private SwitchPreference mWifiAllowScansWithTraffic;
|
private SwitchPreference mWifiAllowScansWithTraffic;
|
||||||
private SwitchPreference mStrictMode;
|
private SwitchPreference mStrictMode;
|
||||||
@@ -525,6 +529,8 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
|||||||
mBluetoothSelectA2dpLdacPlaybackQuality = addListPreference(BLUETOOTH_SELECT_A2DP_LDAC_PLAYBACK_QUALITY_KEY);
|
mBluetoothSelectA2dpLdacPlaybackQuality = addListPreference(BLUETOOTH_SELECT_A2DP_LDAC_PLAYBACK_QUALITY_KEY);
|
||||||
initBluetoothConfigurationValues();
|
initBluetoothConfigurationValues();
|
||||||
|
|
||||||
|
mDnsTls = findAndInitSwitchPref(DNS_TLS_KEY);
|
||||||
|
|
||||||
mWindowAnimationScale = addListPreference(WINDOW_ANIMATION_SCALE_KEY);
|
mWindowAnimationScale = addListPreference(WINDOW_ANIMATION_SCALE_KEY);
|
||||||
mTransitionAnimationScale = addListPreference(TRANSITION_ANIMATION_SCALE_KEY);
|
mTransitionAnimationScale = addListPreference(TRANSITION_ANIMATION_SCALE_KEY);
|
||||||
mAnimatorDurationScale = addListPreference(ANIMATOR_DURATION_SCALE_KEY);
|
mAnimatorDurationScale = addListPreference(ANIMATOR_DURATION_SCALE_KEY);
|
||||||
@@ -856,6 +862,8 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
|||||||
updateBluetoothDisableAbsVolumeOptions();
|
updateBluetoothDisableAbsVolumeOptions();
|
||||||
updateBluetoothEnableInbandRingingOptions();
|
updateBluetoothEnableInbandRingingOptions();
|
||||||
updateBluetoothA2dpConfigurationValues();
|
updateBluetoothA2dpConfigurationValues();
|
||||||
|
updateSwitchPreference(mDnsTls, Settings.Global.getInt(cr,
|
||||||
|
Settings.Global.DNS_TLS_DISABLED, 0) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void resetDangerousOptions() {
|
private void resetDangerousOptions() {
|
||||||
@@ -2582,6 +2590,10 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
|||||||
writeBluetoothDisableAbsVolumeOptions();
|
writeBluetoothDisableAbsVolumeOptions();
|
||||||
} else if (preference == mBluetoothEnableInbandRinging) {
|
} else if (preference == mBluetoothEnableInbandRinging) {
|
||||||
writeBluetoothEnableInbandRingingOptions();
|
writeBluetoothEnableInbandRingingOptions();
|
||||||
|
} else if (preference == mDnsTls) {
|
||||||
|
Settings.Global.putInt(getActivity().getContentResolver(),
|
||||||
|
Settings.Global.DNS_TLS_DISABLED,
|
||||||
|
mDnsTls.isChecked() ? 0 : 1);
|
||||||
} else if (SHORTCUT_MANAGER_RESET_KEY.equals(preference.getKey())) {
|
} else if (SHORTCUT_MANAGER_RESET_KEY.equals(preference.getKey())) {
|
||||||
resetShortcutManagerThrottling();
|
resetShortcutManagerThrottling();
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user