a5xelte: copy manifest.xml via DEVICE_MANIFEST_FILE
[GitHub/LineageOS/android_device_samsung_a5xelte.git] / device.mk
CommitLineData
b7e14c05
DW
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
17LOCAL_PATH := device/samsung/a5xelte
18
19$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
20
79d6b470
DW
21# Audio
22PRODUCT_COPY_FILES += \
23 $(LOCAL_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_0.xml
24
562312cb
CH
25
26PRODUCT_PACKAGES += \
27 libtfa98xx \
28 audio_amplifier.universal7580 \
29 libtinycompress
30
5a6ea125
DW
31# Boot animation
32TARGET_BOOTANIMATION_PRELOAD := true
33TARGET_BOOTANIMATION_TEXTURE_CACHE := true
34TARGET_SCREEN_HEIGHT := 1920
35TARGET_SCREEN_WIDTH := 1080
36
217472c8
DW
37# Bluetooth
38PRODUCT_COPY_FILES += \
39 $(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf
40
41PRODUCT_PACKAGES += \
42 android.hardware.bluetooth@1.0-service
531bc8dc 43
21e067f2
DW
44# Fingerprint
45PRODUCT_PACKAGES += \
6f659032 46 libbauthtzcommon_shim \
2911a227 47 android.hardware.biometrics.fingerprint@2.1-service.samsung
21e067f2 48
8c4ad635
S
49# Camera
50PRODUCT_PACKAGES += \
6072514d 51 camera.universal7580 \
8c4ad635
S
52 Snap
53
e841652f
S
54# hardware/samsung/AdvancedDisplay (MDNIE)
55PRODUCT_PACKAGES += \
56 AdvancedDisplay
57
ec8de909
S
58# Graphics
59# Device uses high-density artwork where available
60PRODUCT_AAPT_CONFIG := xlarge
61PRODUCT_AAPT_PREF_CONFIG := xhdpi
62# A list of dpis to select prebuilt apk, in precedence order.
63PRODUCT_AAPT_PREBUILT_DPI := hdpi mdpi
64
531bc8dc
DW
65# Keylayouts
66PRODUCT_COPY_FILES += \
67 $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl \
68 $(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl
69
f237b697
DW
70# NFC
71PRODUCT_COPY_FILES += \
72 $(LOCAL_PATH)/configs/nfc/libnfc-sec-hal.conf:system/etc/libnfc-sec-hal.conf \
b88062e8 73 $(LOCAL_PATH)/configs/nfc/libnfc-sec.conf:system/etc/libnfc-nci.conf \
f237b697
DW
74 $(LOCAL_PATH)/configs/nfc/nfcee_access.xml:system/etc/nfcee_access.xml
75
76PRODUCT_PACKAGES += \
77 libnfc-nci \
78 libnfc_nci_jni \
79 NfcNci \
80 Tag \
81 com.android.nfc_extras \
82 android.hardware.nfc@1.0-impl
83
a6562810
DW
84# Permissions
85PRODUCT_COPY_FILES += \
6efdf6fc
JA
86 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
87 frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml \
88 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
89 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
90 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
91 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
92 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
93 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
94 frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \
95 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
96 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
97 frameworks/native/data/etc/android.hardware.sensor.heartrate.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.heartrate.xml \
98 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
99 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
100 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml \
101 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
102 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
103 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
104 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
999eb7b6
L
105 $(LOCAL_PATH)/configs/permissions/com.samsung.permission.HRM_EXT.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.HRM_EXT.xml \
106 $(LOCAL_PATH)/configs/permissions/com.samsung.permission.SSENSOR.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.SSENSOR.xml
a6562810 107
b7e14c05
DW
108# Ramdisk
109PRODUCT_PACKAGES += \
110 init.target.rc
111
1475f6e2
DW
112# Radio
113PRODUCT_PACKAGES += \
114 libprotobuf-cpp-full \
115 libsecril-client \
116 modemloader \
117 libxml2 \
118 rild \
119 libril \
120 libreference-ril \
121 libsecril-client-sap \
122 android.hardware.radio@1.1 \
123 android.hardware.radio.deprecated@1.0
124
125PRODUCT_COPY_FILES += \
e4c7be7a 126 device/samsung/universal7580-common/configs/init/rild.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/rild.legacy.rc
1475f6e2 127
66e80d19
DW
128# Overlays
129DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
130
22907477 131# Vendor security patch level (vendor blobs from A510FXXS8CSF3)
3f1443c3 132PRODUCT_PROPERTY_OVERRIDES += \
22907477 133 ro.lineage.build.vendor_security_patch=2019-07-01
3f1443c3 134
e9809dea
DW
135# Wi-fi
136PRODUCT_COPY_FILES += \
137 $(LOCAL_PATH)/configs/wifi/cred.conf:system/etc/wifi/cred.conf \
6efdf6fc
JA
138 $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
139 $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
e9809dea
DW
140 $(LOCAL_PATH)/configs/wifi/filter_ie:system/etc/wifi/filter_ie
141
d169aa35
DW
142# Properties
143-include $(LOCAL_PATH)/system_prop.mk
144
b7e14c05
DW
145# Inherit from universal7580-common
146$(call inherit-product, device/samsung/universal7580-common/device-common.mk)
1475f6e2 147
06776d45
DW
148# Call the proprietary setup
149$(call inherit-product, vendor/samsung/a5xelte/a5xelte-vendor.mk)