j7elte: mixer: Reduce speaker gains
[GitHub/LineageOS/android_device_samsung_j7elte.git] / device.mk
CommitLineData
fd684260
DT
1# Copyright (C) 2017-2020 The LineageOS Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := device/samsung/j7elte
16
17$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
18
56283fcd
DT
19# Audio
20PRODUCT_COPY_FILES += \
356c01d3
DW
21 $(LOCAL_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_0.xml \
22 $(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml
56283fcd 23
9427e63c
DW
24# Bluetooth
25PRODUCT_COPY_FILES += \
26 $(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf
27
28PRODUCT_PACKAGES += \
29 android.hardware.bluetooth@1.0-service
30
12452abf
DT
31# Boot animation
32TARGET_BOOTANIMATION_PRELOAD := true
33TARGET_BOOTANIMATION_TEXTURE_CACHE := true
34TARGET_SCREEN_HEIGHT := 1280
35TARGET_SCREEN_WIDTH := 720
36
88d59c52
S
37# Camera
38PRODUCT_PACKAGES += \
c4d0a3c0 39 camera.universal7580 \
88d59c52
S
40 Snap
41
0c975bb7
AH
42# Display
43TARGET_SCREEN_DENSITY := 320
44
b0ba2fcb
DT
45# Graphics
46PRODUCT_AAPT_CONFIG := normal
47PRODUCT_AAPT_PREF_CONFIG := xhdpi
67f09f87 48PRODUCT_AAPT_PREBUILT_DPI := xhdpi hdpi
b0ba2fcb 49
aaf02026
DW
50# Keylayouts
51PRODUCT_COPY_FILES += \
52 $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl \
53 $(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl
54
a58d6963
DT
55# Overlays
56DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
57
d3708b05
DT
58# Permissions
59PRODUCT_COPY_FILES += \
e60bbd22
JA
60 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
61 frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml \
62 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
63 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
64 frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \
65 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
66 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
67 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
68 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
69 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
37acd0f5
L
70 $(LOCAL_PATH)/configs/permissions/com.samsung.permission.HRM_EXT.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.HRM_EXT.xml \
71 $(LOCAL_PATH)/configs/permissions/com.samsung.permission.SSENSOR.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.SSENSOR.xml
d3708b05 72
12371f36
DT
73# Properties
74-include $(LOCAL_PATH)/system_prop.mk
75
bf4ad9d9
DW
76# Radio
77PRODUCT_PACKAGES += \
78 libprotobuf-cpp-full \
79 libsecril-client \
80 modemloader \
81 libxml2 \
82 rild \
83 libril \
84 libreference-ril \
85 libsecril-client-sap \
86 android.hardware.radio@1.1 \
87 android.hardware.radio.deprecated@1.0
88
89PRODUCT_COPY_FILES += \
be30f2c4 90 device/samsung/universal7580-common/configs/init/rild.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/rild.legacy.rc
bf4ad9d9 91
fd684260
DT
92# Ramdisk
93PRODUCT_PACKAGES += \
94 init.target.rc
95
80b500f9
DT
96# Vendor security patch level
97PRODUCT_PROPERTY_OVERRIDES += \
98 ro.lineage.build.vendor_security_patch=2018-04-01
99
d4994ca2
DW
100# Wi-fi
101PRODUCT_COPY_FILES += \
102 $(LOCAL_PATH)/configs/wifi/cred.conf:system/etc/wifi/cred.conf \
e60bbd22
JA
103 $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
104 $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
d4994ca2
DW
105 $(LOCAL_PATH)/configs/wifi/filter_ie:system/etc/wifi/filter_ie
106
fd684260
DT
107# Inherit from universal7580-common
108$(call inherit-product, device/samsung/universal7580-common/device-common.mk)
776859ba
DW
109
110# Call the proprietary setup
111$(call inherit-product, vendor/samsung/j7elte/j7elte-vendor.mk)