This is part of the changes to improve the UX and language for installing certificates.
Previously, the different types of certificate used the same installation flow.
Due to concerns around users installing CA certificates without understanding the conseqences,
this CL introduces a new warning dialog when a CA certificate is installed from settings.
Bug: 139173976
Test: Atest com.android.settings.security
      manual testing from Settings by selecting the certificate type
	preference and ensuring the installation flow still worked as expected.
Screenshot of the screen: https://hsv.googleplex.com/5046848484016128
Change-Id: If95bffd1e68f14734fb20e8cc4b60eeb1c372358
		
	
		
			
				
	
	
		
			56 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?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> |