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