From 33cde5dbeee934269f16d72e26e651d56a13733e Mon Sep 17 00:00:00 2001 From: Arc Wang Date: Fri, 31 Jul 2020 10:28:04 +0800 Subject: [PATCH] [Wi-Fi] Remove 'Do not validate' option in CA certificate spinner "Do not validate" is not secure and must not be used in any production network. R Suggestions API already does not allow connections with no Root CA certificate. Bug: 162466484 Test: make RunSettingsRoboTests ROBOTEST_FILTER=WifiConfigControllerTest make RunSettingsRoboTests ROBOTEST_FILTER=WifiConfigController2Test Manually add or edit an EAP method Wi-Fi network and observe CA certificate spinner options. Change-Id: Ica5ecf8805c51d7cdce7b16e02e0dd79d5f64754 Merged-In: Icf97199967faa2e359b0120a8c989bd1df2c6cea --- res/layout/wifi_dialog.xml | 12 ----- res/values/strings.xml | 2 - .../settings/wifi/WifiConfigController.java | 45 +++++++------------ .../settings/wifi/WifiConfigController2.java | 45 +++++++------------ 4 files changed, 32 insertions(+), 72 deletions(-) diff --git a/res/layout/wifi_dialog.xml b/res/layout/wifi_dialog.xml index 45ecd610e7e..a0f49e4b35a 100644 --- a/res/layout/wifi_dialog.xml +++ b/res/layout/wifi_dialog.xml @@ -196,18 +196,6 @@ android:entries="@array/eap_ocsp_type" /> - - - - Do not provide Do not validate - - No certificate specified. Your connection will not be private. Network name is too long.