a3xelte: Add NFC configuration
[GitHub/LineageOS/android_device_samsung_a3xelte.git] / device.mk
1 #
2 # Copyright (C) 2018 The LineageOS 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 LOCAL_PATH := device/samsung/a3xelte
18
19 $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
20
21 # Audio
22 PRODUCT_COPY_FILES += \
23 $(LOCAL_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_0.xml
24
25 # Boot animation
26 TARGET_BOOTANIMATION_PRELOAD := true
27 TARGET_BOOTANIMATION_TEXTURE_CACHE := true
28 TARGET_SCREEN_HEIGHT := 1080
29 TARGET_SCREEN_WIDTH := 720
30
31 # Bluetooth
32 PRODUCT_COPY_FILES += \
33 $(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf
34
35 PRODUCT_PACKAGES += \
36 android.hardware.bluetooth@1.0-service
37
38 # GPS
39 PRODUCT_COPY_FILES += \
40 $(LOCAL_PATH)/configs/gps/gps.conf:system/etc/gps.conf \
41 $(LOCAL_PATH)/configs/gps/gps.xml:system/etc/gps.xml
42
43 # HIDL Manifest
44 PRODUCT_COPY_FILES += \
45 $(LOCAL_PATH)/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml
46
47 # Keylayouts
48 PRODUCT_COPY_FILES += \
49 $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl \
50 $(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl
51
52 # NFC
53 PRODUCT_COPY_FILES += \
54 $(LOCAL_PATH)/configs/nfc/libnfc-sec-hal.conf:system/etc/libnfc-sec-hal.conf \
55 $(LOCAL_PATH)/configs/nfc/libnfc-sec.conf:system/etc/libnfc-brcm.conf \
56 $(LOCAL_PATH)/configs/nfc/nfcee_access.xml:system/etc/nfcee_access.xml
57
58 PRODUCT_PACKAGES += \
59 libnfc-nci \
60 libnfc_nci_jni \
61 NfcNci \
62 Tag \
63 com.android.nfc_extras \
64 android.hardware.nfc@1.0-impl
65
66 PRODUCT_PROPERTY_OVERRIDES += \
67 ro.nfc.sec_hal=true
68
69 # Permissions
70 PRODUCT_COPY_FILES += \
71 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
72 frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
73 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
74 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
75 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
76 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
77 frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml \
78 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
79 frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
80 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
81 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
82 frameworks/native/data/etc/android.hardware.sensor.heartrate.xml:system/etc/permissions/android.hardware.sensor.heartrate.xml \
83 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
84 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
85 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
86 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
87 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
88 frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml
89
90 # Ramdisk
91 PRODUCT_PACKAGES += \
92 init.target.rc
93
94 # Radio
95 PRODUCT_PACKAGES += \
96 libprotobuf-cpp-full \
97 libsecril-client \
98 modemloader \
99 libxml2 \
100 rild \
101 libril \
102 libreference-ril \
103 libsecril-client-sap \
104 android.hardware.radio@1.1 \
105 android.hardware.radio.deprecated@1.0
106
107 PRODUCT_COPY_FILES += \
108 device/samsung/universal7580-common/configs/init/rild.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/rild.rc
109
110 # Wi-fi
111 PRODUCT_COPY_FILES += \
112 $(LOCAL_PATH)/configs/wifi/cred.conf:system/etc/wifi/cred.conf \
113 $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
114 $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
115 $(LOCAL_PATH)/configs/wifi/filter_ie:system/etc/wifi/filter_ie
116
117 # Properties
118 -include $(LOCAL_PATH)/system_prop.mk
119
120 # Inherit from universal7580-common
121 $(call inherit-product, device/samsung/universal7580-common/device-common.mk)
122
123 # Call the proprietary setup
124 $(call inherit-product, vendor/samsung/a3xelte/a3xelte-vendor.mk)