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