a5xelte: bluetooth: Disable eSCO commands to fix bluetooth calling
[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
8c4ad635
S
44# Camera
45PRODUCT_PACKAGES += \
46 Snap
47
876113c7
DW
48# GPS
49PRODUCT_COPY_FILES += \
50 $(LOCAL_PATH)/configs/gps/gps.conf:system/etc/gps.conf \
51 $(LOCAL_PATH)/configs/gps/gps.xml:system/etc/gps.xml
217472c8 52
e841652f
S
53# hardware/samsung/AdvancedDisplay (MDNIE)
54PRODUCT_PACKAGES += \
55 AdvancedDisplay
56
ec8de909
S
57# Graphics
58# Device uses high-density artwork where available
59PRODUCT_AAPT_CONFIG := xlarge
60PRODUCT_AAPT_PREF_CONFIG := xhdpi
61# A list of dpis to select prebuilt apk, in precedence order.
62PRODUCT_AAPT_PREBUILT_DPI := hdpi mdpi
63
7268c650
DW
64# HIDL Manifest
65PRODUCT_COPY_FILES += \
66 $(LOCAL_PATH)/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml
67
531bc8dc
DW
68# Keylayouts
69PRODUCT_COPY_FILES += \
70 $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl \
71 $(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl
72
f237b697
DW
73# NFC
74PRODUCT_COPY_FILES += \
75 $(LOCAL_PATH)/configs/nfc/libnfc-sec-hal.conf:system/etc/libnfc-sec-hal.conf \
76 $(LOCAL_PATH)/configs/nfc/libnfc-sec.conf:system/etc/libnfc-brcm.conf \
77 $(LOCAL_PATH)/configs/nfc/nfcee_access.xml:system/etc/nfcee_access.xml
78
79PRODUCT_PACKAGES += \
80 libnfc-nci \
81 libnfc_nci_jni \
82 NfcNci \
83 Tag \
84 com.android.nfc_extras \
85 android.hardware.nfc@1.0-impl
86
87PRODUCT_PROPERTY_OVERRIDES += \
88 ro.nfc.sec_hal=true
89
a6562810
DW
90# Permissions
91PRODUCT_COPY_FILES += \
92 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
93 frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
94 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
95 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
96 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
97 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
98 frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml \
99 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
100 frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
101 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
102 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
103 frameworks/native/data/etc/android.hardware.sensor.heartrate.xml:system/etc/permissions/android.hardware.sensor.heartrate.xml \
104 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
105 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
106 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
107 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
108 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
999eb7b6
L
109 frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.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
a6562810 112
b7e14c05
DW
113# Ramdisk
114PRODUCT_PACKAGES += \
115 init.target.rc
116
1475f6e2
DW
117# Radio
118PRODUCT_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
130PRODUCT_COPY_FILES += \
131 device/samsung/universal7580-common/configs/init/rild.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/rild.rc
132
66e80d19
DW
133# Overlays
134DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
135
3f1443c3
DW
136# Vendor security patch level (vendor blobs from A510FXXS8CSC1)
137PRODUCT_PROPERTY_OVERRIDES += \
138 ro.lineage.build.vendor_security_patch=2019-04-01
139
e9809dea
DW
140# Wi-fi
141PRODUCT_COPY_FILES += \
142 $(LOCAL_PATH)/configs/wifi/cred.conf:system/etc/wifi/cred.conf \
143 $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
144 $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
145 $(LOCAL_PATH)/configs/wifi/filter_ie:system/etc/wifi/filter_ie
146
d169aa35
DW
147# Properties
148-include $(LOCAL_PATH)/system_prop.mk
149
b7e14c05
DW
150# Inherit from universal7580-common
151$(call inherit-product, device/samsung/universal7580-common/device-common.mk)
1475f6e2 152
06776d45
DW
153# Call the proprietary setup
154$(call inherit-product, vendor/samsung/a5xelte/a5xelte-vendor.mk)