j7elte: Add device hardware key layout
[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 # GPS
37 PRODUCT_COPY_FILES += \
38 $(LOCAL_PATH)/configs/gps/gps.conf:system/etc/gps.conf \
39 $(LOCAL_PATH)/configs/gps/gps.xml:system/etc/gps.xml
40
41 # HIDL Manifest
42 PRODUCT_COPY_FILES += \
43 $(LOCAL_PATH)/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml
44
45 # Keylayouts
46 PRODUCT_COPY_FILES += \
47 $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl \
48 $(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl
49
50 # Permissions
51 PRODUCT_COPY_FILES += \
52 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
53 frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
54 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
55 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
56 frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
57 frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml \
58 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
59 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
60 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
61 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
62
63 # Properties
64 -include $(LOCAL_PATH)/system_prop.mk
65
66 # Radio
67 PRODUCT_PACKAGES += \
68 libprotobuf-cpp-full \
69 libsecril-client \
70 modemloader \
71 libxml2 \
72 rild \
73 libril \
74 libreference-ril \
75 libsecril-client-sap \
76 android.hardware.radio@1.1 \
77 android.hardware.radio.deprecated@1.0
78
79 PRODUCT_COPY_FILES += \
80 device/samsung/universal7580-common/configs/init/rild.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/rild.rc
81
82 # Ramdisk
83 PRODUCT_PACKAGES += \
84 init.target.rc
85
86 # Wi-fi
87 PRODUCT_COPY_FILES += \
88 $(LOCAL_PATH)/configs/wifi/cred.conf:system/etc/wifi/cred.conf \
89 $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
90 $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
91 $(LOCAL_PATH)/configs/wifi/filter_ie:system/etc/wifi/filter_ie
92
93 # Inherit from universal7580-common
94 $(call inherit-product, device/samsung/universal7580-common/device-common.mk)
95
96 # Call the proprietary setup
97 $(call inherit-product, vendor/samsung/j7elte/j7elte-vendor.mk)