Michael Ryleev | 826c2d2 | 2016-02-18 12:50:08 -0800 | [diff] [blame] | 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 | |
Matthew Maurer | b0a8c95 | 2019-03-07 17:03:29 -0800 | [diff] [blame] | 22 | # For gatekeeper, we include the generic -service and -impl to use legacy |
| 23 | # HAL loading of gatekeeper.trusty. |
| 24 | |
Alice Wang | d694b61 | 2024-09-02 13:03:48 +0000 | [diff] [blame] | 25 | $(call inherit-product, system/core/trusty/keymint/trusty-keymint.mk) |
David Drysdale | 719d4a8 | 2022-12-05 10:24:51 +0000 | [diff] [blame] | 26 | |
David Drysdale | 0731338 | 2024-01-30 16:46:45 +0000 | [diff] [blame] | 27 | ifeq ($(SECRETKEEPER_ENABLED),true) |
David Drysdale | 8e1c267 | 2023-11-10 19:12:18 +0000 | [diff] [blame] | 28 | LOCAL_SECRETKEEPER_PRODUCT_PACKAGE := android.hardware.security.secretkeeper.trusty |
David Drysdale | 0731338 | 2024-01-30 16:46:45 +0000 | [diff] [blame] | 29 | else |
| 30 | LOCAL_SECRETKEEPER_PRODUCT_PACKAGE := |
David Drysdale | 8e1c267 | 2023-11-10 19:12:18 +0000 | [diff] [blame] | 31 | endif |
| 32 | |
Michael Ryleev | 826c2d2 | 2016-02-18 12:50:08 -0800 | [diff] [blame] | 33 | PRODUCT_PACKAGES += \ |
David Drysdale | 8e1c267 | 2023-11-10 19:12:18 +0000 | [diff] [blame] | 34 | $(LOCAL_SECRETKEEPER_PRODUCT_PACKAGE) \ |
David Drysdale | d0149e8 | 2023-02-03 18:25:03 +0000 | [diff] [blame] | 35 | android.hardware.gatekeeper-service.trusty \ |
Inseob Kim | ed67349 | 2022-09-16 20:54:03 +0900 | [diff] [blame] | 36 | trusty_apploader \ |
Michael Ryleev | 826c2d2 | 2016-02-18 12:50:08 -0800 | [diff] [blame] | 37 | |
| 38 | PRODUCT_PROPERTY_OVERRIDES += \ |
Armelle Laine | bd1dbe2 | 2021-07-19 16:14:10 +0000 | [diff] [blame] | 39 | ro.hardware.keystore_desede=true \ |
Michael Ryleev | 826c2d2 | 2016-02-18 12:50:08 -0800 | [diff] [blame] | 40 | ro.hardware.keystore=trusty \ |
| 41 | ro.hardware.gatekeeper=trusty |
Shawn Willden | b440e0c | 2021-10-29 09:44:01 -0600 | [diff] [blame] | 42 | |
| 43 | PRODUCT_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 |