Use the correct package name for CHOOSER

Bug: 13013106
Change-Id: I1f715de18e7108274f5a98234376d48c2d329438
This commit is contained in:
Kenny Root
2014-03-17 16:21:53 -07:00
parent 946bb3cef9
commit a365906e67

View File

@@ -88,6 +88,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
*/
@@ -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);