From d84ca74a667f21ee42341f095f98ff354c9ff0eb Mon Sep 17 00:00:00 2001 From: David Drysdale Date: Mon, 27 Feb 2023 10:14:28 +0000 Subject: [PATCH] Link static version of KeyMint lib in VTS tests Also add transitive `secureclock` dep. Bug: 270492370 Bug: 270484471 Test: VtsHalConfirmationUITargetTest Test: VtsHalGatekeeperTargetTest Change-Id: I5fd7cba8af035fde6d24c076c4e1ed90abb15645 --- confirmationui/aidl/vts/functional/Android.bp | 5 +++-- gatekeeper/aidl/vts/functional/Android.bp | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/confirmationui/aidl/vts/functional/Android.bp b/confirmationui/aidl/vts/functional/Android.bp index 3649c871fa..ac2d53a8b6 100644 --- a/confirmationui/aidl/vts/functional/Android.bp +++ b/confirmationui/aidl/vts/functional/Android.bp @@ -23,7 +23,7 @@ cc_test { name: "VtsHalConfirmationUITargetTest", defaults: [ "VtsHalTargetTestDefaults", - "keymint_use_latest_hal_aidl_ndk_shared", + "keymint_use_latest_hal_aidl_ndk_static", "use_libaidlvintf_gtest_helper_static", ], srcs: [ @@ -31,8 +31,9 @@ cc_test { ], static_libs: [ "android.hardware.confirmationui-V1-ndk", - "libcn-cbor", "android.hardware.confirmationui-support-lib", + "android.hardware.security.secureclock-V1-ndk", + "libcn-cbor", ], shared_libs: [ "libbinder_ndk", diff --git a/gatekeeper/aidl/vts/functional/Android.bp b/gatekeeper/aidl/vts/functional/Android.bp index 2fa80de358..008f25c0a0 100644 --- a/gatekeeper/aidl/vts/functional/Android.bp +++ b/gatekeeper/aidl/vts/functional/Android.bp @@ -24,14 +24,17 @@ cc_test { defaults: [ "VtsHalTargetTestDefaults", "use_libaidlvintf_gtest_helper_static", - "keymint_use_latest_hal_aidl_ndk_shared", + "keymint_use_latest_hal_aidl_ndk_static", ], srcs: ["VtsHalGatekeeperTargetTest.cpp"], shared_libs: [ "libbinder_ndk", "libbase", ], - static_libs: ["android.hardware.gatekeeper-V1-ndk"], + static_libs: [ + "android.hardware.gatekeeper-V1-ndk", + "android.hardware.security.secureclock-V1-ndk", + ], test_suites: [ "general-tests", "vts",