libkeymaster1 split to libkeymaster and _portable
authorJanis Danisevskis <jdanis@google.com>
Wed, 26 Apr 2017 22:05:37 +0000 (15:05 -0700)
committerJae Shin <jaeshin@google.com>
Mon, 16 Oct 2017 00:51:05 +0000 (00:51 +0000)
libkeyamster1 was split into libkeymaster and
libkeymaster_portable.
Also removed UniquePtr usage from keymaster hal.

Bug: 37467707
Test: keymaster vts test and keystore cts test
Merged-In: Ic660586d3d9cfd20022a9c694f276da89e796e5d
(cherry picked from commit 85e15db31987daa6ca36f3f34f13944836822f1b)

Change-Id: I8652f28ac3da1999a774be5e1110c7d2efac5339

keymaster/3.0/default/Android.mk
keymaster/3.0/default/KeymasterDevice.cpp

index 9df5bf830775130e455d67e0e40d80c3fccc42af..2dbb2000ac89481e4e6b16ad400de0be88259118 100644 (file)
@@ -11,7 +11,8 @@ LOCAL_SHARED_LIBRARIES := \
     liblog \
     libsoftkeymasterdevice \
     libcrypto \
-    libkeymaster1 \
+    libkeymaster_portable \
+    libkeymaster \
     libhidlbase \
     libhidltransport \
     libutils \
index fcdd32981e54a460ad2bb5bdbe0789c7b4ab6fc9..d83963fcc4511442ff32b04fa5f6e382099fc759 100644 (file)
@@ -64,7 +64,7 @@ static int keymaster0_device_initialize(const hw_module_t* mod, keymaster2_devic
     assert(mod->module_api_version < KEYMASTER_MODULE_API_VERSION_1_0);
     ALOGI("Found keymaster0 module %s, version %x", mod->name, mod->module_api_version);
 
-    UniquePtr<SoftKeymasterDevice> soft_keymaster(new SoftKeymasterDevice);
+    std::unique_ptr<SoftKeymasterDevice> soft_keymaster(new SoftKeymasterDevice);
     keymaster0_device_t* km0_device = NULL;
     keymaster_error_t error = KM_ERROR_OK;
 
@@ -107,7 +107,7 @@ static int keymaster1_device_initialize(const hw_module_t* mod, keymaster2_devic
     assert(mod->module_api_version >= KEYMASTER_MODULE_API_VERSION_1_0);
     ALOGI("Found keymaster1 module %s, version %x", mod->name, mod->module_api_version);
 
-    UniquePtr<SoftKeymasterDevice> soft_keymaster(new SoftKeymasterDevice);
+    std::unique_ptr<SoftKeymasterDevice> soft_keymaster(new SoftKeymasterDevice);
     keymaster1_device_t* km1_device = nullptr;
     keymaster_error_t error = KM_ERROR_OK;