From e57319ff880c43b44aaab4905dc8997d97827520 Mon Sep 17 00:00:00 2001 From: Selim Gurun Date: Fri, 17 Feb 2012 14:35:18 -0800 Subject: [PATCH] Make the credential storage change action public. Bug: 6009802 When the credential storage changes, (adding/removing certs, resetting the storage, enabling/disabling trusted CAs, etc), the applications that use the storage has to be made aware of the fact that the storage changed, so they can clear any cached state, close connections or take any other actions. Internally, this applies to webview. However, applications, potentially including 3rd party browsers, also need this information. Change-Id: I765b97a3f38f45247ee3f6e127b490388d373847 --- api/current.txt | 1 + keystore/java/android/security/KeyChain.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/api/current.txt b/api/current.txt index d034b89c9d5c7..208c6e615008f 100644 --- a/api/current.txt +++ b/api/current.txt @@ -18780,6 +18780,7 @@ package android.security { method public static android.content.Intent createInstallIntent(); method public static java.security.cert.X509Certificate[] getCertificateChain(android.content.Context, java.lang.String) throws java.lang.InterruptedException, android.security.KeyChainException; method public static java.security.PrivateKey getPrivateKey(android.content.Context, java.lang.String) throws java.lang.InterruptedException, android.security.KeyChainException; + field public static final java.lang.String ACTION_STORAGE_CHANGED = "android.security.STORAGE_CHANGED"; field public static final java.lang.String EXTRA_CERTIFICATE = "CERT"; field public static final java.lang.String EXTRA_NAME = "name"; field public static final java.lang.String EXTRA_PKCS12 = "PKCS12"; diff --git a/keystore/java/android/security/KeyChain.java b/keystore/java/android/security/KeyChain.java index 0fe7bd88dad18..edbd16391efd9 100644 --- a/keystore/java/android/security/KeyChain.java +++ b/keystore/java/android/security/KeyChain.java @@ -169,7 +169,6 @@ public final class KeyChain { /** - * @hide TODO This is temporary and will be removed * Broadcast Action: Indicates the trusted storage has changed. Sent when * one of this happens: *