From 03a117bcfaf7c3628da8f2fe57d9be69056dcdf1 Mon Sep 17 00:00:00 2001 From: Samuel Tan Date: Thu, 21 Jan 2016 18:17:17 -0800 Subject: [PATCH] Display warning if users does not provide CA cert in EAP config Display an explicit warning in the WiFi configuration menu if the user selects the option to not validate the EAP server (i.e. does not provide a CA certificate) in an EAP configuration. BUG: 26686071 Change-Id: I73620b60defdcf40865f8c67d5de24b5dad636f8 TEST: Warning appears when the abovementioned option is selected. --- res/layout/wifi_dialog.xml | 12 ++++++++++++ res/values/strings.xml | 2 ++ res/values/styles.xml | 8 ++++++++ .../android/settings/wifi/WifiConfigController.java | 13 +++++++++++++ 4 files changed, 35 insertions(+) diff --git a/res/layout/wifi_dialog.xml b/res/layout/wifi_dialog.xml index 2becae64090..28ceee0311f 100644 --- a/res/layout/wifi_dialog.xml +++ b/res/layout/wifi_dialog.xml @@ -145,6 +145,18 @@ android:prompt="@string/wifi_eap_ca_cert" /> + + + + Do not provide Do not validate + + No certificate specified. Your connection will not be private. WPS available diff --git a/res/values/styles.xml b/res/values/styles.xml index 387acf529a5..46ef73c3326 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -204,6 +204,14 @@ ?android:attr/textColorSecondary + +