a3xelte: build Snap instead of Camera2
[GitHub/LineageOS/android_device_samsung_a3xelte.git] / device.mk
CommitLineData
58309e5e
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/a3xelte
18
19$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
20
d894092f
DW
21# Audio
22PRODUCT_COPY_FILES += \
23 $(LOCAL_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_0.xml
24
8da9a22f
DW
25# Boot animation
26TARGET_BOOTANIMATION_PRELOAD := true
27TARGET_BOOTANIMATION_TEXTURE_CACHE := true
28TARGET_SCREEN_HEIGHT := 1080
29TARGET_SCREEN_WIDTH := 720
30
a69ea8d7
DW
31# Bluetooth
32PRODUCT_COPY_FILES += \
33 $(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf
34
35PRODUCT_PACKAGES += \
36 android.hardware.bluetooth@1.0-service
9e26a487 37
733051d9
S
38# Camera
39PRODUCT_PACKAGES += \
40 Snap
41
0829adfd
DW
42# GPS
43PRODUCT_COPY_FILES += \
44 $(LOCAL_PATH)/configs/gps/gps.conf:system/etc/gps.conf \
45 $(LOCAL_PATH)/configs/gps/gps.xml:system/etc/gps.xml
a69ea8d7 46
15d924c6
DW
47# HIDL Manifest
48PRODUCT_COPY_FILES += \
49 $(LOCAL_PATH)/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml
50
9e26a487
DW
51# Keylayouts
52PRODUCT_COPY_FILES += \
53 $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl \
54 $(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl
55
c270cb97
DW
56# NFC
57PRODUCT_COPY_FILES += \
58 $(LOCAL_PATH)/configs/nfc/libnfc-sec-hal.conf:system/etc/libnfc-sec-hal.conf \
59 $(LOCAL_PATH)/configs/nfc/libnfc-sec.conf:system/etc/libnfc-brcm.conf \
60 $(LOCAL_PATH)/configs/nfc/nfcee_access.xml:system/etc/nfcee_access.xml
61
62PRODUCT_PACKAGES += \
63 libnfc-nci \
64 libnfc_nci_jni \
65 NfcNci \
66 Tag \
67 com.android.nfc_extras \
68 android.hardware.nfc@1.0-impl
69
70PRODUCT_PROPERTY_OVERRIDES += \
71 ro.nfc.sec_hal=true
72
0b3edefc
DW
73# Permissions
74PRODUCT_COPY_FILES += \
75 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
76 frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
77 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
78 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
79 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
80 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
81 frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml \
82 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
83 frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
84 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
85 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
86 frameworks/native/data/etc/android.hardware.sensor.heartrate.xml:system/etc/permissions/android.hardware.sensor.heartrate.xml \
87 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
88 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
89 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
90 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
91 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
498fd51f
L
92 frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
93 $(LOCAL_PATH)/configs/permissions/com.samsung.permission.HRM_EXT.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.HRM_EXT.xml \
94 $(LOCAL_PATH)/configs/permissions/com.samsung.permission.SSENSOR.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.SSENSOR.xml
0b3edefc 95
58309e5e
DW
96# Ramdisk
97PRODUCT_PACKAGES += \
98 init.target.rc
99
26b7ac7d
DW
100# Radio
101PRODUCT_PACKAGES += \
102 libprotobuf-cpp-full \
103 libsecril-client \
104 modemloader \
105 libxml2 \
106 rild \
107 libril \
108 libreference-ril \
109 libsecril-client-sap \
110 android.hardware.radio@1.1 \
111 android.hardware.radio.deprecated@1.0
112
113PRODUCT_COPY_FILES += \
114 device/samsung/universal7580-common/configs/init/rild.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/rild.rc
115
90eb1a7f
DW
116# Overlays
117DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
118
aa598a12
DW
119# Vendor security patch level (vendor blobs from A310FXXU4CRG2)
120PRODUCT_PROPERTY_OVERRIDES += \
121 ro.lineage.build.vendor_security_patch=2018-07-30
122
e2c4401d
DW
123# Wi-fi
124PRODUCT_COPY_FILES += \
125 $(LOCAL_PATH)/configs/wifi/cred.conf:system/etc/wifi/cred.conf \
126 $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
127 $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
128 $(LOCAL_PATH)/configs/wifi/filter_ie:system/etc/wifi/filter_ie
129
807da357
DW
130# Properties
131-include $(LOCAL_PATH)/system_prop.mk
132
58309e5e
DW
133# Inherit from universal7580-common
134$(call inherit-product, device/samsung/universal7580-common/device-common.mk)
26b7ac7d 135
3b1e3674
DW
136# Call the proprietary setup
137$(call inherit-product, vendor/samsung/a3xelte/a3xelte-vendor.mk)