summaryrefslogtreecommitdiffstats
path: root/keystore/java
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2013-04-01 15:59:59 -0700
committerKenny Root <kroot@google.com>2013-04-02 11:50:16 -0700
commit95e3ee3971915b323e5c13dcfe3b12a4180850cd (patch)
tree233169c1fc19155ec6fa7d0b408838ac051ce426 /keystore/java
parentb7aca350e4c46bbc431f2ecaa4d8cee87915fe8b (diff)
downloadframeworks_base-95e3ee3971915b323e5c13dcfe3b12a4180850cd.zip
frameworks_base-95e3ee3971915b323e5c13dcfe3b12a4180850cd.tar.gz
frameworks_base-95e3ee3971915b323e5c13dcfe3b12a4180850cd.tar.bz2
Remove keystore entries when package removed
Add a hook into PackageManagerService so that when app IDs are completely removed, we erase all entries from keystore for those UIDs that have gone away. Bug: 3020069 Change-Id: Id4b1d51a5fa4c418865055635a84bebcf5b65ec8
Diffstat (limited to 'keystore/java')
-rw-r--r--keystore/java/android/security/KeyStore.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/keystore/java/android/security/KeyStore.java b/keystore/java/android/security/KeyStore.java
index 2037472..852f0bb 100644
--- a/keystore/java/android/security/KeyStore.java
+++ b/keystore/java/android/security/KeyStore.java
@@ -305,6 +305,15 @@ public class KeyStore {
}
}
+ public boolean clearUid(int uid) {
+ try {
+ return mBinder.clear_uid(uid) == NO_ERROR;
+ } catch (RemoteException e) {
+ Log.w(TAG, "Cannot connect to keystore", e);
+ return false;
+ }
+ }
+
public int getLastError() {
return mError;
}