diff options
| author | 2019-10-24 11:35:24 +0000 | |
|---|---|---|
| committer | 2019-10-24 11:35:24 +0000 | |
| commit | 7e9642ed022f191b405dc6e6375e690258a71686 (patch) | |
| tree | 4ec5237f489a9b6b41e89341fb7b9ee1a65e328e | |
| parent | c1de45a93b599e9dc17900a6816a3b4096614125 (diff) | |
| parent | fde28690ff2b2d6866f5c8dc2bb8aa7baa6db595 (diff) | |
Merge "Added functionality to select type of certificate to be installed from the Settings app"
| -rw-r--r-- | core/proto/android/app/settings_enums.proto | 5 | ||||
| -rw-r--r-- | keystore/java/android/security/Credentials.java | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/core/proto/android/app/settings_enums.proto b/core/proto/android/app/settings_enums.proto index ef73de78ca63..97dae599f5c2 100644 --- a/core/proto/android/app/settings_enums.proto +++ b/core/proto/android/app/settings_enums.proto @@ -2431,4 +2431,9 @@ enum PageId { // and under gesture navigation mode. DIALOG_TOGGLE_SCREEN_MAGNIFICATION_GESTURE_NAVIGATION = 1802; + // OPEN: Settings > Security & screen lock -> Encryption & credentials > Install a certificate + // CATEGORY: SETTINGS + // OS: R + INSTALL_CERTIFICATE_FROM_STORAGE = 1803; + } diff --git a/keystore/java/android/security/Credentials.java b/keystore/java/android/security/Credentials.java index 54995ac9d050..f25910beb537 100644 --- a/keystore/java/android/security/Credentials.java +++ b/keystore/java/android/security/Credentials.java @@ -71,6 +71,15 @@ public class Credentials { /** Key containing suffix of lockdown VPN profile. */ public static final String LOCKDOWN_VPN = "LOCKDOWN_VPN"; + /** Name of CA certificate usage. */ + public static final String CERTIFICATE_USAGE_CA = "ca"; + + /** Name of User certificate usage. */ + public static final String CERTIFICATE_USAGE_USER = "user"; + + /** Name of WIFI certificate usage. */ + public static final String CERTIFICATE_USAGE_WIFI = "wifi"; + /** Data type for public keys. */ public static final String EXTRA_PUBLIC_KEY = "KEY"; @@ -91,6 +100,11 @@ public class Credentials { public static final String EXTRA_INSTALL_AS_UID = "install_as_uid"; /** + * Intent extra: type of the certificate to install + */ + public static final String EXTRA_CERTIFICATE_USAGE = "certificate_install_usage"; + + /** * Intent extra: name for the user's key pair. */ public static final String EXTRA_USER_KEY_ALIAS = "user_key_pair_name"; |