You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.4 KiB
69 lines
2.4 KiB
#
|
|
# Copyright 2021 Rockchip Limited
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
#for enable optee support
|
|
ifeq ($(strip $(PRODUCT_HAVE_OPTEE)),true)
|
|
|
|
# Use keymint 1.0 to support app_attest_key
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.keystore.app_attest_key.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.keystore.app_attest_key.xml
|
|
|
|
ifeq ($(strip $(BUILD_WITH_GOOGLE_MARKET)),true)
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.software.device_id_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_id_attestation.xml \
|
|
frameworks/native/data/etc/android.hardware.device_unique_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.device_unique_attestation.xml
|
|
endif
|
|
|
|
PRODUCT_PACKAGES += \
|
|
tee-supplicant \
|
|
android.hardware.gatekeeper-service.optee \
|
|
android.hardware.security.keymint-service.optee \
|
|
android.hardware.weaver-service.optee
|
|
|
|
ifneq ($(filter rk312x rk322x rk3288 rk3328 rk322xh rk3368 rk3399 rk3399pro, $(strip $(TARGET_BOARD_PLATFORM))), )
|
|
|
|
PRODUCT_PACKAGES += \
|
|
0b82bae5-0cd0-49a5-9521516dba9c43ba.ta \
|
|
258be795-f9ca-40e6-a8699ce6886c5d5d.ta \
|
|
481a57df-aec8-47ad-92f5eb9fc24f64a6.ta
|
|
#v1 set rpmb as default
|
|
PRODUCT_PROPERTY_OVERRIDES += ro.vendor.storage_type=1
|
|
else
|
|
|
|
PRODUCT_PACKAGES += \
|
|
0b82bae5-0cd0-49a5-9521-516dba9c43ba.ta \
|
|
258be795-f9ca-40e6-a869-9ce6886c5d5d.ta \
|
|
481a57df-aec8-47ad-92f5-eb9fc24f64a6.ta
|
|
#v2 set secure storage as default
|
|
PRODUCT_PROPERTY_OVERRIDES += ro.vendor.storage_type=0
|
|
#Choose TEE storage type
|
|
#auto (storage type decide by storage chip emmc:rpmb nand:rkss)
|
|
#rpmb
|
|
#rkss
|
|
PRODUCT_PROPERTY_OVERRIDES += ro.tee.storage=rkss
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.keymaster@4.0-service \
|
|
android.hardware.gatekeeper@1.0-service.software
|
|
|
|
DEVICE_MANIFEST_FILE += device/rockchip/common/manifests/android.hardware.keymaster@4.0-service.xml
|
|
|
|
endif
|