-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnfc_vendor_product.mk
30 lines (27 loc) · 1.53 KB
/
nfc_vendor_product.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Enable build support for NFC open source vendor modules
ifeq ($(strip $(TARGET_USES_ST_AIDL_NFC)),true)
ST_VENDOR_NFC += android.hardware.nfc-service.st
else
ST_VENDOR_NFC += [email protected]
endif
ST_VENDOR_NFC += nfc_nci.st21nfc.default
ifneq ($(TARGET_NFC_SKU),)
NFC_PERMISSIONS_DIR := $(TARGET_COPY_OUT_ODM)/etc/permissions/sku_$(TARGET_NFC_SKU)
else
NFC_PERMISSIONS_DIR := $(TARGET_COPY_OUT_VENDOR)/etc/permissions
endif
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(NFC_PERMISSIONS_DIR)/android.hardware.nfc.ese.xml \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(NFC_PERMISSIONS_DIR)/android.hardware.nfc.hce.xml \
frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(NFC_PERMISSIONS_DIR)/android.hardware.nfc.hcef.xml \
frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(NFC_PERMISSIONS_DIR)/android.hardware.nfc.uicc.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:$(NFC_PERMISSIONS_DIR)/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(NFC_PERMISSIONS_DIR)/android.hardware.se.omapi.ese.xml \
frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(NFC_PERMISSIONS_DIR)/android.hardware.se.omapi.uicc.xml \
frameworks/native/data/etc/com.android.nfc_extras.xml:$(NFC_PERMISSIONS_DIR)/com.android.nfc_extras.xml
ifeq ($(strip $(TARGET_USES_ST_AIDL_NFC)),true)
ifeq ($(TARGET_NFC_SKU),)
ST_VENDOR_NFC += nfc-service-default.xml
endif
endif
PRODUCT_PACKAGES += $(ST_VENDOR_NFC)