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