a7xelte: Add device hardware key layout
[GitHub/LineageOS/android_device_samsung_a7xelte.git] / device.mk
CommitLineData
318eac2f
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/a7xelte
18
19$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
20
9c199338
DW
21# Audio
22PRODUCT_COPY_FILES += \
23 $(LOCAL_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_0.xml
24
85a78b61
CH
25
26PRODUCT_PACKAGES += \
27 libtfa98xx \
28 audio_amplifier.universal7580 \
29 libtinycompress
30
90886336
DW
31# Boot animation
32TARGET_BOOTANIMATION_PRELOAD := true
33TARGET_BOOTANIMATION_TEXTURE_CACHE := true
34TARGET_SCREEN_HEIGHT := 1920
35TARGET_SCREEN_WIDTH := 1080
36
6d65e77e
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
7edd0756 43
ecece76e
DW
44# GPS
45PRODUCT_COPY_FILES += \
46 $(LOCAL_PATH)/configs/gps/gps.conf:system/etc/gps.conf \
47 $(LOCAL_PATH)/configs/gps/gps.xml:system/etc/gps.xml
6d65e77e 48
522165c0
DW
49# HIDL Manifest
50PRODUCT_COPY_FILES += \
51 $(LOCAL_PATH)/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml
52
7edd0756
DW
53# Keylayouts
54PRODUCT_COPY_FILES += \
55 $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl \
56 $(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl
57
7902124f
DW
58# Permissions
59PRODUCT_COPY_FILES += \
60 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
61 frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
62 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
63 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
64 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
65 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
66 frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml \
67 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
68 frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
69 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
70 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
71 frameworks/native/data/etc/android.hardware.sensor.heartrate.xml:system/etc/permissions/android.hardware.sensor.heartrate.xml \
72 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
73 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
74 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
75 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
76 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
77 frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml
78
318eac2f
DW
79# Ramdisk
80PRODUCT_PACKAGES += \
81 init.target.rc
82
f5829732
DW
83# Radio
84PRODUCT_PACKAGES += \
85 libprotobuf-cpp-full \
86 libsecril-client \
87 modemloader \
88 libxml2 \
89 rild \
90 libril \
91 libreference-ril \
92 libsecril-client-sap \
93 android.hardware.radio@1.1 \
94 android.hardware.radio.deprecated@1.0
95
96PRODUCT_COPY_FILES += \
97 device/samsung/universal7580-common/configs/init/rild.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/rild.rc
98
6391a6c2
DW
99# Wi-fi
100PRODUCT_COPY_FILES += \
101 $(LOCAL_PATH)/configs/wifi/cred.conf:system/etc/wifi/cred.conf \
102 $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
103 $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
104 $(LOCAL_PATH)/configs/wifi/filter_ie:system/etc/wifi/filter_ie
105
e820d3bb
DW
106# Properties
107-include $(LOCAL_PATH)/system_prop.mk
108
318eac2f
DW
109# Inherit from universal7580-common
110$(call inherit-product, device/samsung/universal7580-common/device-common.mk)
f5829732 111
1d6309ec
DW
112# Call the proprietary setup
113$(call inherit-product, vendor/samsung/a7xelte/a7xelte-vendor.mk)