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