## HIDL
DEVICE_MANIFEST_FILE := $(COMMON_PATH)/manifest.xml
+ifneq ($(TARGET_HAS_TEE),false)
+DEVICE_MANIFEST_FILE += $(COMMON_PATH)/manifest-tee.xml
+endif
DEVICE_MATRIX_FILE := $(COMMON_PATH)/compatibility_matrix.xml
## Kernel
setup_vendor "${DEVICE_COMMON}" "${VENDOR_COMMON}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}"
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
+ extract "${MY_DIR}/proprietary-files-tee.txt" "${SRC}" "${KANG}" --section "${SECTION}"
fi
if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../../${VENDOR_DEVICE}/${DEVICE}/proprietary-files.txt" ]; then
libpuresoftkeymasterdevice.vendor \
libsoft_attestation_cert.vendor
+ifeq ($(TARGET_HAS_TEE),false)
+PRODUCT_PACKAGES += \
+ android.hardware.keymaster@4.1-service
+endif
+
## Logo
PRODUCT_HOST_PACKAGES += \
res_packer
--- /dev/null
+<manifest version="2.0" type="device" target-level="4">
+ <hal format="hidl">
+ <name>android.hardware.keymaster</name>
+ <transport>hwbinder</transport>
+ <version>4.1</version>
+ <interface>
+ <name>IKeymasterDevice</name>
+ <instance>default</instance>
+ </interface>
+ <fqname>@4.1::IKeymasterDevice/default</fqname>
+ </hal>
+</manifest>
</interface>
<fqname>@2.0::IHealth/default</fqname>
</hal>
- <hal format="hidl">
- <name>android.hardware.keymaster</name>
- <transport>hwbinder</transport>
- <version>4.1</version>
- <interface>
- <name>IKeymasterDevice</name>
- <instance>default</instance>
- </interface>
- <fqname>@4.1::IKeymasterDevice/default</fqname>
- </hal>
<hal format="hidl">
<name>android.hardware.media.omx</name>
<transport>hwbinder</transport>
--- /dev/null
+### All blobs from this list, unless pinned and noted as otherwise,
+## are from adt3-user 11 RTT1.200909.003.A2 6832896 release-keys.
+
+## TEE/Keymaster
+vendor/bin/hw/android.hardware.keymaster@4.1-service.amlogic
+vendor/etc/init/android.hardware.keymaster@4.1-service.amlogic.rc
+vendor/lib/libtee_load_video_fw.so
+vendor/lib/libteec.so
+vendor/lib/libsecmem.so
+vendor/bin/tee-supplicant
+vendor/bin/tee_preload_fw
+vendor/etc/init/tee-supplicant.rc
+vendor/etc/init/tee_preload_fw.rc
vendor/bin/hw/android.hardware.dumpstate@1.0-service.droidlogic
vendor/bin/hw/android.hardware.graphics.composer@2.4-service.droidlogic
vendor/bin/hw/android.hardware.health@2.0-service.droidlogic
-vendor/bin/hw/android.hardware.keymaster@4.1-service.amlogic
vendor/bin/hw/android.hardware.oemlock@1.0-service.droidlogic
vendor/bin/hw/android.hardware.thermal@2.0-service.droidlogic
vendor/bin/hw/android.hardware.usb.gadget@1.1-service.droidlogic
vendor/bin/oemcrypto_test_aml
vendor/bin/remotecfg
vendor/bin/systemcontrol
-vendor/bin/tee-supplicant
-vendor/bin/tee_preload_fw
vendor/etc/audio_effects.conf
vendor/etc/bluetooth/4343.hcd
vendor/etc/bluetooth/BCM20702.hcd
vendor/etc/init/android.hardware.graphics.allocator@3.0-service.rc
vendor/etc/init/android.hardware.graphics.composer@2.4-service.droidlogic.rc
vendor/etc/init/android.hardware.health@2.0-service.droidlogic.rc
-vendor/etc/init/android.hardware.keymaster@4.1-service.amlogic.rc
vendor/etc/init/android.hardware.oemlock@1.0-service.droidlogic.rc
vendor/etc/init/android.hardware.thermal@2.0-service.droidlogic.rc
vendor/etc/init/android.hardware.usb.gadget@1.1-service.droidlogic.rc
vendor/etc/init/irblaster1.rc
vendor/etc/init/sysfs_permissions.rc
vendor/etc/init/systemcontrol.rc
-vendor/etc/init/tee-supplicant.rc
-vendor/etc/init/tee_preload_fw.rc
vendor/etc/mesondisplay.cfg
vendor/etc/permissions/android.software.cant_save_state.xml
vendor/etc/permissions/droidlogic.software.core.xml
vendor/lib/libsecmem.so
vendor/lib/libstagefrighthw.so
vendor/lib/libsystemcontrolservice.so
-vendor/lib/libtee_load_video_fw.so
-vendor/lib/libteec.so
vendor/lib/libthreadworker_alt.so
vendor/lib/libtvbinder.so
vendor/lib/libvideotunnel.so
# The standard common blobs
write_makefiles "${MY_DIR}/proprietary-files.txt" true
+# The BSP blobs - we put a conditional in case the BSP
+# is actually being built
+printf '\n%s\n' 'ifneq ($(TARGET_HAS_TEE),false)' >> "$PRODUCTMK"
+
+write_makefiles "${MY_DIR}/proprietary-files-tee.txt" true
+
+printf '%s\n' 'endif' >> "$PRODUCTMK"
+
# Finish
write_footers