summaryrefslogtreecommitdiffstats
path: root/keystore/java/android/security/KeyChain.java
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2014-03-17 16:21:53 -0700
committerKenny Root <kroot@google.com>2014-03-17 16:21:56 -0700
commita365906e670c89674fb3383b5bcb33e682910c29 (patch)
tree6eaa177219777d844522491689ec9a65324142b3 /keystore/java/android/security/KeyChain.java
parent946bb3cef9137cb12e2200cd286713aa1d74fb48 (diff)
downloadframeworks_base-a365906e670c89674fb3383b5bcb33e682910c29.zip
frameworks_base-a365906e670c89674fb3383b5bcb33e682910c29.tar.gz
frameworks_base-a365906e670c89674fb3383b5bcb33e682910c29.tar.bz2
Use the correct package name for CHOOSER
Bug: 13013106 Change-Id: I1f715de18e7108274f5a98234376d48c2d329438
Diffstat (limited to 'keystore/java/android/security/KeyChain.java')
-rw-r--r--keystore/java/android/security/KeyChain.java7
1 files changed, 6 insertions, 1 deletions
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);