diff options
author | Kenny Root <kroot@google.com> | 2013-04-01 15:59:59 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2013-04-03 11:32:52 -0700 |
commit | d72317abd79ddf95d48c8f35bf1070900ff55b5e (patch) | |
tree | d07ab26ca8e840bd98811223315bc2ad773e0418 /keystore/java/android | |
parent | 688c33448572fa3879b1486d8fa1bf16cd946211 (diff) | |
download | frameworks_base-d72317abd79ddf95d48c8f35bf1070900ff55b5e.zip frameworks_base-d72317abd79ddf95d48c8f35bf1070900ff55b5e.tar.gz frameworks_base-d72317abd79ddf95d48c8f35bf1070900ff55b5e.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.
(cherry picked from commit 95e3ee3971915b323e5c13dcfe3b12a4180850cd)
Bug: 3020069
Change-Id: I374258ccc103f8cb3e238f2bf0d1afda0659db94
Diffstat (limited to 'keystore/java/android')
-rw-r--r-- | keystore/java/android/security/KeyStore.java | 9 |
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; } |