From a365906e670c89674fb3383b5bcb33e682910c29 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Mon, 17 Mar 2014 16:21:53 -0700 Subject: Use the correct package name for CHOOSER Bug: 13013106 Change-Id: I1f715de18e7108274f5a98234376d48c2d329438 --- keystore/java/android/security/KeyChain.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'keystore/java/android/security/KeyChain.java') diff --git a/keystore/java/android/security/KeyChain.java b/keystore/java/android/security/KeyChain.java index 6f8292d..9d6d76e 100644 --- a/keystore/java/android/security/KeyChain.java +++ b/keystore/java/android/security/KeyChain.java @@ -89,6 +89,11 @@ public final class KeyChain { public static final String ACCOUNT_TYPE = "com.android.keychain"; /** + * Package name for KeyChain chooser. + */ + private static final String KEYCHAIN_PACKAGE = "com.android.keychain"; + + /** * Action to bring up the KeyChainActivity */ private static final String ACTION_CHOOSER = "com.android.keychain.CHOOSER"; @@ -272,7 +277,7 @@ public final class KeyChain { throw new NullPointerException("response == null"); } Intent intent = new Intent(ACTION_CHOOSER); - intent.setPackage(CERT_INSTALLER_PACKAGE); + intent.setPackage(KEYCHAIN_PACKAGE); intent.putExtra(EXTRA_RESPONSE, new AliasResponse(response)); intent.putExtra(EXTRA_HOST, host); intent.putExtra(EXTRA_PORT, port); -- cgit v1.1