1# 2# Copyright (C) 2016 The Android Open-Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17# 18# This makefile should be included by devices that use Trusty TEE 19# to pull in the baseline set of Trusty specific modules. 20# 21 22# For gatekeeper, we include the generic -service and -impl to use legacy 23# HAL loading of gatekeeper.trusty. 24 25$(call inherit-product, system/core/trusty/keymint/trusty-keymint.mk) 26 27ifeq ($(SECRETKEEPER_ENABLED),true) 28 LOCAL_SECRETKEEPER_PRODUCT_PACKAGE := android.hardware.security.secretkeeper.trusty 29else 30 LOCAL_SECRETKEEPER_PRODUCT_PACKAGE := 31endif 32 33PRODUCT_PACKAGES += \ 34 $(LOCAL_SECRETKEEPER_PRODUCT_PACKAGE) \ 35 android.hardware.gatekeeper-service.trusty \ 36 trusty_apploader \ 37 38PRODUCT_PROPERTY_OVERRIDES += \ 39 ro.hardware.keystore_desede=true \ 40 ro.hardware.keystore=trusty \ 41 ro.hardware.gatekeeper=trusty 42 43PRODUCT_COPY_FILES += \ 44 frameworks/native/data/etc/android.hardware.keystore.app_attest_key.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.keystore.app_attest_key.xml 45