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
This commit is contained in:
Kenny Root
2013-03-21 14:21:50 -07:00
parent e4679750c5
commit 5f1d965f7d
3 changed files with 42 additions and 14 deletions

View File

@@ -287,9 +287,9 @@ public class KeyStore {
}
}
public boolean migrate(String key, int uid) {
public boolean duplicate(String srcKey, int srcUid, String destKey, int destUid) {
try {
return mBinder.migrate(key, uid) == NO_ERROR;
return mBinder.duplicate(srcKey, srcUid, destKey, destUid) == NO_ERROR;
} catch (RemoteException e) {
Log.w(TAG, "Cannot connect to keystore", e);
return false;