blob: f7e35af0d8bf0334be5861fdf2d055a1bdd3ee77 [file] [log] [blame]
Alex Johnston7659e532019-10-14 17:50:21 +01001<!--
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"
Edgar Wang0934bab2020-02-06 11:40:42 +080020 android:title="@string/credentials_install">
Alex Johnston7659e532019-10-14 17:50:21 +010021
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
Alex Johnstonc0c75a32019-10-18 14:20:27 +010030 android:targetPackage="com.android.settings"
31 android:targetClass="com.android.settings.security.InstallCaCertificateWarning">
Alex Johnston7659e532019-10-14 17:50:21 +010032 </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
Alex Johnston7659e532019-10-14 17:50:21 +010064 </PreferenceCategory>
65
Victor Hsiehcef970c2020-02-14 10:23:57 -080066</PreferenceScreen>