68c7ddd375d5f5c42859c337e78a29afc3e620c5
[GitHub/LineageOS/android_device_samsung_a7xelte.git] / device.mk
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
17 LOCAL_PATH := device/samsung/a7xelte
18
19 $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
20
21 # Audio
22 PRODUCT_COPY_FILES += \
23 $(LOCAL_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_0.xml
24
25
26 PRODUCT_PACKAGES += \
27 libtfa98xx \
28 audio_amplifier.universal7580 \
29 libtinycompress
30
31 # Boot animation
32 TARGET_BOOTANIMATION_PRELOAD := true
33 TARGET_BOOTANIMATION_TEXTURE_CACHE := true
34 TARGET_SCREEN_HEIGHT := 1920
35 TARGET_SCREEN_WIDTH := 1080
36
37 # Bluetooth
38 PRODUCT_COPY_FILES += \
39 $(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf
40
41 PRODUCT_PACKAGES += \
42 android.hardware.bluetooth@1.0-service
43
44 # GPS
45 PRODUCT_COPY_FILES += \
46 $(LOCAL_PATH)/configs/gps/gps.conf:system/etc/gps.conf \
47 $(LOCAL_PATH)/configs/gps/gps.xml:system/etc/gps.xml
48
49 # HIDL Manifest
50 PRODUCT_COPY_FILES += \
51 $(LOCAL_PATH)/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml
52
53 # Ramdisk
54 PRODUCT_PACKAGES += \
55 init.target.rc
56
57 # Radio
58 PRODUCT_PACKAGES += \
59 libprotobuf-cpp-full \
60 libsecril-client \
61 modemloader \
62 libxml2 \
63 rild \
64 libril \
65 libreference-ril \
66 libsecril-client-sap \
67 android.hardware.radio@1.1 \
68 android.hardware.radio.deprecated@1.0
69
70 PRODUCT_COPY_FILES += \
71 device/samsung/universal7580-common/configs/init/rild.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/rild.rc
72
73 # Wi-fi
74 PRODUCT_COPY_FILES += \
75 $(LOCAL_PATH)/configs/wifi/cred.conf:system/etc/wifi/cred.conf \
76 $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
77 $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
78 $(LOCAL_PATH)/configs/wifi/filter_ie:system/etc/wifi/filter_ie
79
80 # Properties
81 -include $(LOCAL_PATH)/system_prop.mk
82
83 # Inherit from universal7580-common
84 $(call inherit-product, device/samsung/universal7580-common/device-common.mk)
85
86 # Call the proprietary setup
87 $(call inherit-product, vendor/samsung/a7xelte/a7xelte-vendor.mk)