From e6657935e8fb1025ecc36345d0f15c5a71c8459d Mon Sep 17 00:00:00 2001 From: Shawn Willden Date: Thu, 4 Jan 2018 12:21:13 -0700 Subject: [PATCH] Restore KM4 reference HAL. This is temporary, until we get the hardware implementation from Qualcomm. When we do, this reference implementation will be replaced. Until then, keystore will notice this implementation when starting up, but favor the hardware keymaster 3.0 implementation. Engineers who wish to do testing and development with the KM4 reference HAL on wahoo can simply remove the hardware 3.0 implementation from the device.mk file. Keystore will then find no HW implementation and will load the SW implementation. Test: Boot and run KM4 VTS tests. Change-Id: I1b7183b221041b55792200a2aa3e0ed974da2e0b --- device.mk | 4 ++++ manifest.xml | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/device.mk b/device.mk index 0132e1ba..c32b08ad 100755 --- a/device.mk +++ b/device.mk @@ -178,6 +178,10 @@ PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \ android.hardware.health@2.0-service +# Keymaster 4 (software only) +PRODUCT_PACKAGES += \ + android.hardware.keymaster@4.0-service + # Audio fluence, ns, aec property, voice and media volume steps PRODUCT_PROPERTY_OVERRIDES += \ ro.qc.sdk.audio.fluencetype=fluencepro \ diff --git a/manifest.xml b/manifest.xml index 961b0644..d065341f 100644 --- a/manifest.xml +++ b/manifest.xml @@ -167,6 +167,15 @@ default + + android.hardware.keymaster + hwbinder + 4.0 + + IKeymasterDevice + default + + android.hardware.light hwbinder