From 3e7be43e2555bbdfe311dcbd9a36f7f05321a2d8 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Thu, 28 Mar 2013 09:25:51 -0700 Subject: [PATCH] Add ability to install credentials as other UID We need the ability to install from the system UID to wifi UID to explicitly bind WiFi credentials to the WiFi profile. This adds the ability for Wifi Settings to invoke installation of a PKCS12 file for the wifi UID. Bug: 8183258 Change-Id: I652b7e6fa93deda6d6d310be33f224e5a356c787 --- keystore/java/android/security/Credentials.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/keystore/java/android/security/Credentials.java b/keystore/java/android/security/Credentials.java index d8109ce2df999..166849dd8cc1b 100644 --- a/keystore/java/android/security/Credentials.java +++ b/keystore/java/android/security/Credentials.java @@ -49,6 +49,8 @@ public class Credentials { public static final String INSTALL_ACTION = "android.credentials.INSTALL"; + public static final String INSTALL_AS_USER_ACTION = "android.credentials.INSTALL_AS_USER"; + public static final String UNLOCK_ACTION = "com.android.credentials.UNLOCK"; /** Key prefix for CA certificates. */ @@ -82,6 +84,12 @@ public class Credentials { public static final String EXTENSION_CER = ".cer"; public static final String EXTENSION_PFX = ".pfx"; + /** + * Intent extra: install the certificate bundle as this UID instead of + * system. + */ + public static final String EXTRA_INSTALL_AS_UID = "install_as_uid"; + /** * Intent extra: name for the user's private key. */