mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sdm710-common
synced 2026-01-27 18:28:08 +00:00
sdm710-common: Guard NFC
* sirius doesn't have NFC Signed-off-by: Alex Damaratski <alexeydomoratsky1@gmail.com> Change-Id: I8a144edacb9a6d8bc979fffa8db611b7e1d5c8f2
This commit is contained in:
committed by
Sebastiano Barezzi
parent
f52058f936
commit
12dc3d5c43
@@ -139,6 +139,9 @@ BOARD_AVB_RECOVERY_ROLLBACK_INDEX_LOCATION := 1
|
||||
|
||||
# VINTF
|
||||
DEVICE_MANIFEST_FILE += $(COMMON_PATH)/manifest.xml
|
||||
ifeq ($(TARGET_HAS_NFC),true)
|
||||
DEVICE_MANIFEST_FILE += $(COMMON_PATH)/manifest_nfc.xml
|
||||
endif
|
||||
DEVICE_MATRIX_FILE += $(COMMON_PATH)/compatibility_matrix.xml
|
||||
|
||||
# VNDK
|
||||
|
||||
@@ -71,6 +71,7 @@ if [ -z "${ONLY_TARGET}" ]; then
|
||||
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}"
|
||||
|
||||
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
|
||||
extract "${MY_DIR}/proprietary-files-nfc.txt" "${SRC}" "${KANG}" --section "${SECTION}"
|
||||
fi
|
||||
|
||||
if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then
|
||||
|
||||
11
manifest.xml
11
manifest.xml
@@ -77,11 +77,6 @@
|
||||
<transport>hwbinder</transport>
|
||||
<fqname>@1.0::IMemtrack/default</fqname>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.nfc</name>
|
||||
<transport>hwbinder</transport>
|
||||
<fqname>@1.2::INfc/default</fqname>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.power</name>
|
||||
<transport>hwbinder</transport>
|
||||
@@ -109,7 +104,6 @@
|
||||
<name>android.hardware.secure_element</name>
|
||||
<transport>hwbinder</transport>
|
||||
<fqname>@1.0::ISecureElement/SIM1</fqname>
|
||||
<fqname>@1.0::ISecureElement/eSE1</fqname>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.sensors</name>
|
||||
@@ -171,11 +165,6 @@
|
||||
<transport>hwbinder</transport>
|
||||
<fqname>@2.0::IPictureAdjustment/default</fqname>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>vendor.nxp.nxpnfc</name>
|
||||
<transport>hwbinder</transport>
|
||||
<fqname>@1.0::INxpNfc/default</fqname>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>vendor.qti.data.factory</name>
|
||||
<transport>hwbinder</transport>
|
||||
|
||||
17
manifest_nfc.xml
Normal file
17
manifest_nfc.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<manifest version="2.0" type="device">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.nfc</name>
|
||||
<transport>hwbinder</transport>
|
||||
<fqname>@1.2::INfc/default</fqname>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.secure_element</name>
|
||||
<transport>hwbinder</transport>
|
||||
<fqname>@1.0::ISecureElement/eSE1</fqname>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>vendor.nxp.nxpnfc</name>
|
||||
<transport>hwbinder</transport>
|
||||
<fqname>@1.0::INxpNfc/default</fqname>
|
||||
</hal>
|
||||
</manifest>
|
||||
10
proprietary-files-nfc.txt
Normal file
10
proprietary-files-nfc.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
# Secure element
|
||||
vendor/bin/hw/vendor.qti.secure_element@1.0-service
|
||||
vendor/etc/init/vendor.qti.secure_element@1.0-service.rc
|
||||
vendor/lib64/hw/android.hardware.secure_element@1.0-impl.so
|
||||
|
||||
# Secure element (power manager)
|
||||
vendor/bin/hw/vendor.qti.esepowermanager@1.0-service
|
||||
vendor/etc/init/vendor.qti.esepowermanager@1.0-service.rc
|
||||
vendor/lib64/hw/vendor.qti.esepowermanager@1.0-impl.so
|
||||
vendor/lib64/vendor.qti.esepowermanager@1.0.so
|
||||
@@ -258,12 +258,6 @@ vendor/etc/seccomp_policy/vendor.qti.hardware.dsp.policy
|
||||
vendor/lib/vendor.qti.hardware.dsp@1.0.so
|
||||
vendor/lib64/vendor.qti.hardware.dsp@1.0.so
|
||||
|
||||
# Embedded Secure Element power manager
|
||||
vendor/bin/hw/vendor.qti.esepowermanager@1.0-service
|
||||
vendor/etc/init/vendor.qti.esepowermanager@1.0-service.rc
|
||||
vendor/lib64/hw/vendor.qti.esepowermanager@1.0-impl.so
|
||||
vendor/lib64/vendor.qti.esepowermanager@1.0.so
|
||||
|
||||
# Graphics (Adreno)
|
||||
vendor/lib/egl/eglSubDriverAndroid.so
|
||||
vendor/lib/egl/libEGL_adreno.so
|
||||
@@ -777,11 +771,6 @@ vendor/lib64/vendor.qti.hardware.scve.panorama@1.0.so
|
||||
# SECCOMP policy
|
||||
vendor/etc/seccomp_policy/mediacodec.policy
|
||||
|
||||
# Secure element
|
||||
vendor/bin/hw/vendor.qti.secure_element@1.0-service
|
||||
vendor/etc/init/vendor.qti.secure_element@1.0-service.rc
|
||||
vendor/lib64/hw/android.hardware.secure_element@1.0-impl.so
|
||||
|
||||
# Soter
|
||||
-app/SoterService/SoterService.apk
|
||||
vendor/bin/hw/vendor.qti.hardware.soter@1.0-service
|
||||
|
||||
24
sdm710.mk
24
sdm710.mk
@@ -26,13 +26,7 @@ PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml \
|
||||
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
|
||||
frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
|
||||
frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
|
||||
frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
|
||||
frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
|
||||
frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
|
||||
frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
|
||||
frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
|
||||
frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
|
||||
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
|
||||
frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
|
||||
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
|
||||
@@ -57,8 +51,6 @@ PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
|
||||
frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml \
|
||||
frameworks/native/data/etc/android.software.vulkan.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml \
|
||||
frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
|
||||
frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml
|
||||
|
||||
# APEX
|
||||
PRODUCT_COMPRESSED_APEX := false
|
||||
@@ -250,9 +242,9 @@ PRODUCT_PACKAGES += \
|
||||
android.hardware.neuralnetworks@1.3.vendor
|
||||
|
||||
# NFC
|
||||
ifeq ($(TARGET_HAS_NFC),true)
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.nfc@1.2-service \
|
||||
android.hardware.secure_element@1.2.vendor \
|
||||
com.android.nfc_extras \
|
||||
libchrome.vendor \
|
||||
NfcNci \
|
||||
@@ -262,6 +254,20 @@ PRODUCT_PACKAGES += \
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/nfc/libnfc-nxp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
|
||||
frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
|
||||
frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
|
||||
frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
|
||||
frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
|
||||
frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
|
||||
frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
|
||||
frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml
|
||||
endif
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.secure_element@1.2.vendor
|
||||
|
||||
# OMX
|
||||
PRODUCT_PACKAGES += \
|
||||
libOmxAacEnc \
|
||||
|
||||
@@ -30,6 +30,10 @@ write_headers "grus pyxis sirius vela"
|
||||
# The standard common blobs
|
||||
write_makefiles "${MY_DIR}/proprietary-files.txt" true
|
||||
|
||||
printf "\n%s\n" "ifeq (\$(TARGET_HAS_NFC),true)" >> "${PRODUCTMK}"
|
||||
write_makefiles "${MY_DIR}/proprietary-files-nfc.txt" true
|
||||
echo "endif" >> "${PRODUCTMK}"
|
||||
|
||||
# Finish
|
||||
write_footers
|
||||
|
||||
|
||||
Reference in New Issue
Block a user