summaryrefslogtreecommitdiffstats
path: root/keystore
diff options
context:
space:
mode:
authorChad Brubaker <cbrubaker@google.com>2015-01-13 17:41:22 -0800
committerChad Brubaker <cbrubaker@google.com>2015-01-13 18:29:15 -0800
commit7a2c973db7756a60f1cdd6cf67411115c1576081 (patch)
tree16da25774e868e346368f4d61d3d8e3d0967584b /keystore
parent21454aa27643f69a0ee9377ae09a01e96af3718f (diff)
downloadframeworks_base-7a2c973db7756a60f1cdd6cf67411115c1576081.zip
frameworks_base-7a2c973db7756a60f1cdd6cf67411115c1576081.tar.gz
frameworks_base-7a2c973db7756a60f1cdd6cf67411115c1576081.tar.bz2
Generate IKeystoreService using aidl
This replaces IKeystoreService.java with IKeystoreService.aidl and changes the methods that passed down a byte[][] to instead pass down a KeystoreArguments which is currently a thin parcelable wrapper around a byte[][]. Change-Id: I6367bcf57562f41a27aab14f1903b74995cb65c2
Diffstat (limited to 'keystore')
-rw-r--r--keystore/java/android/security/KeyStore.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/keystore/java/android/security/KeyStore.java b/keystore/java/android/security/KeyStore.java
index 1dbdbfb..797067e 100644
--- a/keystore/java/android/security/KeyStore.java
+++ b/keystore/java/android/security/KeyStore.java
@@ -205,7 +205,8 @@ public class KeyStore {
public boolean generate(String key, int uid, int keyType, int keySize, int flags,
byte[][] args) {
try {
- return mBinder.generate(key, uid, keyType, keySize, flags, args) == NO_ERROR;
+ return mBinder.generate(key, uid, keyType, keySize, flags,
+ new KeystoreArguments(args)) == NO_ERROR;
} catch (RemoteException e) {
Log.w(TAG, "Cannot connect to keystore", e);
return false;