j7elte: Move graphics composer to hwbinder
[GitHub/LineageOS/android_device_samsung_j7elte.git] / device.mk
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
15 LOCAL_PATH := device/samsung/j7elte
16
17 $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
18
19 # Audio
20 PRODUCT_COPY_FILES += \
21 $(LOCAL_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_0.xml
22
23 # Bluetooth
24 PRODUCT_COPY_FILES += \
25 $(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf
26
27 PRODUCT_PACKAGES += \
28 android.hardware.bluetooth@1.0-service
29
30 # Boot animation
31 TARGET_BOOTANIMATION_PRELOAD := true
32 TARGET_BOOTANIMATION_TEXTURE_CACHE := true
33 TARGET_SCREEN_HEIGHT := 1280
34 TARGET_SCREEN_WIDTH := 720
35
36 # Camera
37 PRODUCT_PACKAGES += \
38 camera.universal7580 \
39 Snap
40
41 # Display
42 TARGET_SCREEN_DENSITY := 320
43
44 # Graphics
45 PRODUCT_AAPT_CONFIG := normal
46 PRODUCT_AAPT_PREF_CONFIG := xhdpi
47 PRODUCT_AAPT_PREBUILT_DPI := hdpi mdpi
48
49 # Keylayouts
50 PRODUCT_COPY_FILES += \
51 $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl \
52 $(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl
53
54 # Overlays
55 DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
56
57 # Permissions
58 PRODUCT_COPY_FILES += \
59 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
60 frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml \
61 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
62 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
63 frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \
64 frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
65 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
66 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
67 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
68 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
69 $(LOCAL_PATH)/configs/permissions/com.samsung.permission.HRM_EXT.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.HRM_EXT.xml \
70 $(LOCAL_PATH)/configs/permissions/com.samsung.permission.SSENSOR.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.SSENSOR.xml
71
72 # Properties
73 -include $(LOCAL_PATH)/system_prop.mk
74
75 # Radio
76 PRODUCT_PACKAGES += \
77 libprotobuf-cpp-full \
78 libsecril-client \
79 modemloader \
80 libxml2 \
81 rild \
82 libril \
83 libreference-ril \
84 libsecril-client-sap \
85 android.hardware.radio@1.1 \
86 android.hardware.radio.deprecated@1.0
87
88 PRODUCT_COPY_FILES += \
89 device/samsung/universal7580-common/configs/init/rild.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/rild.legacy.rc
90
91 # Ramdisk
92 PRODUCT_PACKAGES += \
93 init.target.rc
94
95 # Vendor security patch level
96 PRODUCT_PROPERTY_OVERRIDES += \
97 ro.lineage.build.vendor_security_patch=2018-04-01
98
99 # Wi-fi
100 PRODUCT_COPY_FILES += \
101 $(LOCAL_PATH)/configs/wifi/cred.conf:system/etc/wifi/cred.conf \
102 $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
103 $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
104 $(LOCAL_PATH)/configs/wifi/filter_ie:system/etc/wifi/filter_ie
105
106 # Inherit from universal7580-common
107 $(call inherit-product, device/samsung/universal7580-common/device-common.mk)
108
109 # Call the proprietary setup
110 $(call inherit-product, vendor/samsung/j7elte/j7elte-vendor.mk)