1<!-- 2 ~ Copyright (C) 2019 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 --> 16 17<PreferenceScreen 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:settings="http://schemas.android.com/apk/res-auto" 20 android:title="@string/credentials_install"> 21 22 <PreferenceCategory 23 android:key="certificate_types"> 24 25 <Preference 26 android:key="install_ca_certificate" 27 android:title="@string/ca_certificate"> 28 29 <intent 30 android:targetPackage="com.android.settings" 31 android:targetClass="com.android.settings.security.InstallCaCertificateWarning"> 32 </intent> 33 34 </Preference> 35 36 <Preference 37 android:key="install_user_certificate" 38 android:title="@string/user_certificate"> 39 40 <intent 41 android:action="android.credentials.INSTALL" 42 android:targetPackage="com.android.certinstaller" 43 android:targetClass="com.android.certinstaller.CertInstallerMain"> 44 <!-- Same value as CERTIFICATE_USAGE_USER in keystore/java/android/security/Credentials.java --> 45 <extra android:name="certificate_install_usage" android:value="user"/> 46 </intent> 47 48 </Preference> 49 50 <Preference 51 android:key="install_wifi_certificate" 52 android:title="@string/wifi_certificate"> 53 54 <intent 55 android:action="android.credentials.INSTALL" 56 android:targetPackage="com.android.certinstaller" 57 android:targetClass="com.android.certinstaller.CertInstallerMain"> 58 <!-- Same value as CERTIFICATE_USAGE_WIFI in keystore/java/android/security/Credentials.java --> 59 <extra android:name="certificate_install_usage" android:value="wifi"/> 60 </intent> 61 62 </Preference> 63 64 </PreferenceCategory> 65 66</PreferenceScreen>