Alex Johnston | 7659e53 | 2019-10-14 17:50:21 +0100 | [diff] [blame] | 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" |
Edgar Wang | 0934bab | 2020-02-06 11:40:42 +0800 | [diff] [blame] | 20 | android:title="@string/credentials_install"> |
Alex Johnston | 7659e53 | 2019-10-14 17:50:21 +0100 | [diff] [blame] | 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 |
Alex Johnston | c0c75a3 | 2019-10-18 14:20:27 +0100 | [diff] [blame] | 30 | android:targetPackage="com.android.settings" |
| 31 | android:targetClass="com.android.settings.security.InstallCaCertificateWarning"> |
Alex Johnston | 7659e53 | 2019-10-14 17:50:21 +0100 | [diff] [blame] | 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 | |
Alex Johnston | 7659e53 | 2019-10-14 17:50:21 +0100 | [diff] [blame] | 64 | </PreferenceCategory> |
| 65 | |
Victor Hsieh | cef970c | 2020-02-14 10:23:57 -0800 | [diff] [blame] | 66 | </PreferenceScreen> |