diff options
author | Kenny Root <kroot@google.com> | 2013-03-21 14:21:50 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2013-03-21 14:24:19 -0700 |
commit | 5f1d965f7d7e1df50981ffed8faa11fbcc17ca22 (patch) | |
tree | b4449ba12d8e3da7e8c70edcd2b313f4798cd76c /core/java/android/security | |
parent | e4679750c538e982bb81f4eea2343e8bede3e118 (diff) | |
download | frameworks_base-5f1d965f7d7e1df50981ffed8faa11fbcc17ca22.zip frameworks_base-5f1d965f7d7e1df50981ffed8faa11fbcc17ca22.tar.gz frameworks_base-5f1d965f7d7e1df50981ffed8faa11fbcc17ca22.tar.bz2 |
KeyStore: change migrate to duplicate
After discussion, it was determined that duplicate would be less
disruptive and it still fit in the current HAL model.
Change-Id: I2f9cae48d38ec7146511e876450fa39fc92cda55
Diffstat (limited to 'core/java/android/security')
-rw-r--r-- | core/java/android/security/IKeystoreService.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/core/java/android/security/IKeystoreService.java b/core/java/android/security/IKeystoreService.java index 2ae3c64..a890d9b 100644 --- a/core/java/android/security/IKeystoreService.java +++ b/core/java/android/security/IKeystoreService.java @@ -407,15 +407,18 @@ public interface IKeystoreService extends IInterface { } @Override - public int migrate(String name, int targetUid) throws RemoteException { + public int duplicate(String srcKey, int srcUid, String destKey, int destUid) + throws RemoteException { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); int _result; try { _data.writeInterfaceToken(DESCRIPTOR); - _data.writeString(name); - _data.writeInt(targetUid); - mRemote.transact(Stub.TRANSACTION_migrate, _data, _reply, 0); + _data.writeString(srcKey); + _data.writeInt(srcUid); + _data.writeString(destKey); + _data.writeInt(destUid); + mRemote.transact(Stub.TRANSACTION_duplicate, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { @@ -448,7 +451,7 @@ public interface IKeystoreService extends IInterface { static final int TRANSACTION_grant = IBinder.FIRST_CALL_TRANSACTION + 17; static final int TRANSACTION_ungrant = IBinder.FIRST_CALL_TRANSACTION + 18; static final int TRANSACTION_getmtime = IBinder.FIRST_CALL_TRANSACTION + 19; - static final int TRANSACTION_migrate = IBinder.FIRST_CALL_TRANSACTION + 20; + static final int TRANSACTION_duplicate = IBinder.FIRST_CALL_TRANSACTION + 20; /** * Cast an IBinder object into an IKeystoreService interface, generating @@ -534,5 +537,6 @@ public interface IKeystoreService extends IInterface { public long getmtime(String name) throws RemoteException; - public int migrate(String name, int targetUid) throws RemoteException; + public int duplicate(String srcKey, int srcUid, String destKey, int destUid) + throws RemoteException; } |