Merge "Added a warning dialog when installing a CA certificate"
This commit is contained in:
committed by
Android (Google) Code Review
commit
8ec3dbe1ea
BIN
res/drawable-hdpi/ic_warning_googred_48dp.png
Normal file
BIN
res/drawable-hdpi/ic_warning_googred_48dp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 603 B |
56
res/layout/ca_certificate_warning_dialog.xml
Normal file
56
res/layout/ca_certificate_warning_dialog.xml
Normal file
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2019 The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
<com.google.android.setupdesign.GlifLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/setup_wizard_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
style="@style/SudContentFrame"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/sud_layout_icon"
|
||||
style="@style/SudGlifIcon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:src="@drawable/ic_warning_googred_48dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sud_layout_title"
|
||||
style="@style/SudGlifHeaderTitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="@string/ca_certificate_warning_title"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sud_layout_description"
|
||||
style="@style/SudDescription.Glif"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/ca_certificate_warning_description"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</com.google.android.setupdesign.GlifLayout>
|
@@ -5880,6 +5880,16 @@
|
||||
<string name="user_certificate">VPN & app user certificate</string>
|
||||
<!-- Title of Wi-Fi certificate [CHAR LIMIT=30] -->
|
||||
<string name="wifi_certificate">Wi\u2011Fi certificate</string>
|
||||
<!-- Title of warning shown to the user before they can install a CA certificate [CHAR LIMIT=NONE] -->
|
||||
<string name="ca_certificate_warning_title">Your privacy is at risk</string>
|
||||
<!-- Description of warning shown to the user before they can install a CA certificate [CHAR LIMIT=NONE] -->
|
||||
<string name="ca_certificate_warning_description">CA certificates are used by websites, apps, and VPNs for encryption. Only install CA certificates from organizations you trust. \n\n If you install a CA certificate, the certificate owner could access your information, such as passwords, messages, or credit card details, from websites you visit or apps you use - even if that information is encrypted.</string>
|
||||
<!-- Label for button to not install a CA certificate [CHAR_LIMIT=50] -->
|
||||
<string name="ca_certificate_warning_dont_install">Don\u2019t install</string>
|
||||
<!-- Label for button to continue installing a CA certificate [CHAR_LIMIT=50] -->
|
||||
<string name="ca_certificate_warning_install_anyway">Install anyways</string>
|
||||
<!-- Toast message that a certificate was not installed -->
|
||||
<string name="cert_not_installed">Certificate not installed</string>
|
||||
|
||||
<!-- Sound settings screen, setting check box label -->
|
||||
<string name="emergency_tone_title">Emergency dialing signal</string>
|
||||
|
@@ -28,11 +28,8 @@
|
||||
android:title="@string/ca_certificate">
|
||||
|
||||
<intent
|
||||
android:action="android.credentials.INSTALL"
|
||||
android:targetPackage="com.android.certinstaller"
|
||||
android:targetClass="com.android.certinstaller.CertInstallerMain">
|
||||
<!-- Same value as CERTIFICATE_USAGE_CA in keystore/java/android/security/Credentials.java -->
|
||||
<extra android:name="certificate_install_usage" android:value="ca"/>
|
||||
android:targetPackage="com.android.settings"
|
||||
android:targetClass="com.android.settings.security.InstallCaCertificateWarning">
|
||||
</intent>
|
||||
|
||||
</Preference>
|
||||
|
Reference in New Issue
Block a user