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