a3xelte: Correct bootanimation height to 1280px
[GitHub/LineageOS/android_device_samsung_a3xelte.git] / device.mk
CommitLineData
58309e5e
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/a3xelte
18
19$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
20
d894092f
DW
21# Audio
22PRODUCT_COPY_FILES += \
5b242a86
DW
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
d894092f 25
8da9a22f
DW
26# Boot animation
27TARGET_BOOTANIMATION_PRELOAD := true
28TARGET_BOOTANIMATION_TEXTURE_CACHE := true
6a9c9cfa 29TARGET_SCREEN_HEIGHT := 1280
8da9a22f
DW
30TARGET_SCREEN_WIDTH := 720
31
a69ea8d7
DW
32# Bluetooth
33PRODUCT_COPY_FILES += \
34 $(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf
35
36PRODUCT_PACKAGES += \
37 android.hardware.bluetooth@1.0-service
9e26a487 38
733051d9
S
39# Camera
40PRODUCT_PACKAGES += \
dfc7d5b2 41 camera.universal7580 \
733051d9
S
42 Snap
43
e3b62bcf
S
44# hardware/samsung/AdvancedDisplay (MDNIE)
45PRODUCT_PACKAGES += \
46 AdvancedDisplay
47
ee299d4f
S
48# Graphics
49# Device uses high-density artwork where available
50PRODUCT_AAPT_CONFIG := xlarge
51PRODUCT_AAPT_PREF_CONFIG := xhdpi
52# A list of dpis to select prebuilt apk, in precedence order.
53PRODUCT_AAPT_PREBUILT_DPI := hdpi mdpi
54
9e26a487
DW
55# Keylayouts
56PRODUCT_COPY_FILES += \
57 $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl \
58 $(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl
59
e70cd97f
DT
60# Livedisplay
61PRODUCT_PACKAGES += \
62 vendor.lineage.livedisplay@2.0-service.samsung-exynos
63
c270cb97
DW
64# NFC
65PRODUCT_COPY_FILES += \
66 $(LOCAL_PATH)/configs/nfc/libnfc-sec-hal.conf:system/etc/libnfc-sec-hal.conf \
5000f2de 67 $(LOCAL_PATH)/configs/nfc/libnfc-sec.conf:system/etc/libnfc-nci.conf \
c270cb97
DW
68 $(LOCAL_PATH)/configs/nfc/nfcee_access.xml:system/etc/nfcee_access.xml
69
70PRODUCT_PACKAGES += \
71 libnfc-nci \
72 libnfc_nci_jni \
73 NfcNci \
74 Tag \
75 com.android.nfc_extras \
76 android.hardware.nfc@1.0-impl
77
0b3edefc
DW
78# Permissions
79PRODUCT_COPY_FILES += \
219c02c3
JA
80 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
81 frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml \
82 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
83 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
84 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
85 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
86 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
87 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
88 frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \
89 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
90 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
91 frameworks/native/data/etc/android.hardware.sensor.heartrate.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.heartrate.xml \
92 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
93 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
94 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml \
95 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
96 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
498fd51f
L
97 frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
98 $(LOCAL_PATH)/configs/permissions/com.samsung.permission.HRM_EXT.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.HRM_EXT.xml \
99 $(LOCAL_PATH)/configs/permissions/com.samsung.permission.SSENSOR.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.SSENSOR.xml
0b3edefc 100
58309e5e
DW
101# Ramdisk
102PRODUCT_PACKAGES += \
103 init.target.rc
104
26b7ac7d
DW
105# Radio
106PRODUCT_PACKAGES += \
107 libprotobuf-cpp-full \
108 libsecril-client \
109 modemloader \
110 libxml2 \
111 rild \
112 libril \
113 libreference-ril \
114 libsecril-client-sap \
115 android.hardware.radio@1.1 \
116 android.hardware.radio.deprecated@1.0
117
118PRODUCT_COPY_FILES += \
6bd493ab 119 device/samsung/universal7580-common/configs/init/rild.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/rild.legacy.rc
26b7ac7d 120
90eb1a7f
DW
121# Overlays
122DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
123
c3161781 124# Vendor security patch level (vendor blobs from A310FXXU5CSI1)
aa598a12 125PRODUCT_PROPERTY_OVERRIDES += \
c3161781 126 ro.lineage.build.vendor_security_patch=2019-08-01
aa598a12 127
e2c4401d
DW
128# Wi-fi
129PRODUCT_COPY_FILES += \
130 $(LOCAL_PATH)/configs/wifi/cred.conf:system/etc/wifi/cred.conf \
219c02c3
JA
131 $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
132 $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
e2c4401d
DW
133 $(LOCAL_PATH)/configs/wifi/filter_ie:system/etc/wifi/filter_ie
134
807da357
DW
135# Properties
136-include $(LOCAL_PATH)/system_prop.mk
137
58309e5e
DW
138# Inherit from universal7580-common
139$(call inherit-product, device/samsung/universal7580-common/device-common.mk)
26b7ac7d 140
3b1e3674
DW
141# Call the proprietary setup
142$(call inherit-product, vendor/samsung/a3xelte/a3xelte-vendor.mk)